问题
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.
Even after manually adding those properties in xml, I still don't see them.
回答1:
You need to click on the "two arrows" at the top of the Properties menu to see all the properties
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.
回答2:
Click on View All Property (above two blue arrow icon) to open all property attributes.
来源:https://stackoverflow.com/questions/42927675/gravity-and-layoutgravity-properties-not-showing-up-in-android-studio-2-3