Set position by percent - Android DisplayMetrics

后端 未结 1 1823
名媛妹妹
名媛妹妹 2021-01-24 14:23

I like to use percents for all position in my apps . I always use same system. I am new at android programming.

This is the class :

pu         


        
相关标签:
1条回答
  • 2021-01-24 14:39

    The best answer is: Don't use percentages. It wont work out. Use RelativeLayout and properties like layout_gravity center_vertical and such things.

    0 讨论(0)
提交回复
热议问题