Search code examples
androidandroid-studioandroid-gravity

gravity and layout:gravity properties not showing up in Android Studio 2.3


I have a LinearLayout inside of which I have a textView. When I click on textView in component tree I don't see it's gravity property in Properties menu on the right side. I also don't see layout:gravity property.

Properties

Even after manually adding those properties in xml, I still don't see them.


Solution

  • You need to click on the "two arrows" at the top of the Properties menu to see all the properties

    enter image description here

    If you want to see them in the base list, you can add them as "favorite attributes" by clicking on the star that appears when you hover your mouse over the left side of a property name.

    enter image description here