代码之家  ›  专栏  ›  技术社区  ›  Khemraj Sharma

禁用版面宽度和高度自动导入功能和建议

  •  1
  • Khemraj Sharma  · 技术社区  · 6 年前

    如何禁用Android Studio布局编辑器的自动导入功能 android:layout_width android:layout_height ?

    comes

    1. 这就是我想要的

    want

    我想要这个是因为-

    例如 每个父元素都有高度和宽度 match_parent ,所以我只是设定了我的风格 ViewParent

    1 回复  |  直到 6 年前
        1
  •  2
  •   letner    6 年前

    转到Android Studio首选项 -> Editor -> General -> Smart Keys .

    Insert required attributes on tag completion

    enter image description here