Reputation: 58974
How can I disable Android Studio layout editor feature of auto import android:layout_width
and android:layout_height
?
I want, when I write some new component, it come with no attributes.
I want this because-
Yes all component must have both height and width, I always use my App Custom Styles for every component.
For Example every parent element has both height and width match_parent
, so I just set my style ViewParent
style for all parent element views. and I don't specify height and width everywhere. I use styles for better maintainability.
Upvotes: 1
Views: 318
Reputation: 649
Go to Android Studio preferences -> Editor -> General -> Smart Keys
.
Then uncheck Insert required attributes on tag completion
.
Upvotes: 2