开发者

How to set item centered horizontally and vertically in android?

how can i how can I make it centered verrically and horizontally at the same time?

android:gravity="center_horizontal"
开发者_如何学JAVA


Try this, set android:layout_gravity="center"

https://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html#attr_android:layout_gravity

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜