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

眉间皱痕 提交于 2020-03-06 02:41:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!