android - 从 XML 导入时如何使命名导入成为默认行为?

标签 android kotlin import xml-namespaces

我的 Activity 中有以下导入 -

import kotlinx.android.synthetic.main.activity_checkout.*
import kotlinx.android.synthetic.main.activity_checkout.checkout_activity_products_recyclerview as productsRecyclerView

我想知道是否可以在 IDE 中配置,当我从 XML 调用 View 名称时,它会自动为我命名我想要的名称,闪烁的下划线等待我输入它的名称?而不是我手动完成?

最佳答案

请在下面找到开始自动导入的屏幕截图

enter image description here

我希望这可以帮助你!

谢谢你。

关于android - 从 XML 导入时如何使命名导入成为默认行为?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59927062/

相关文章:

android - 尝试在空对象引用上调用虚拟方法 'int java.lang.String.length()'[dup]

找不到用于 native react 的 Android SDK

android - Kotlin - 创建连续的 fragment 将数据添加到错误的容器中

database - 在 drupal 中每天更新 10,000 个 cck 字段

android - 在 ViewPager View inflater 实现中找不到 ListView

android - HttpPost 由于 "Cannot retry request with a non-repeatable request entity"而失败

generics - Kotlin 强制可空泛型类型转换为同一泛型类型的不可空泛型?

annotations - Kotlin - 如何获取注释属性值

python - 从 windows 和 linux 中的子文件夹导入函数

import - 批量导入带有附件的笔记 - MIME 类型很重要