设为首页 加入收藏

TOP

Android button 居中
2014-11-24 03:27:11 来源: 作者: 【 】 浏览:0
Tags:Android button 居中

图示结果如下:


Android button 居中



可以看到Button 与Gallery的对齐方式是居中对齐,也即Button 与Parent居中对齐。
另外,
android:gravity="CENTER_VERTICAL“:Place object in the vertical center of its container, not changing its size. 这个是垂直居中对齐
android:gravity="BOTTOM”:Push object to the bottom of its container, not changing its size.放在容器的底部
android:gravity="CENTER“ :Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.放在容器的中心


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Linux下Driver开发 下一篇Android Marker Click 处理

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·常用meta整理 | 菜鸟 (2025-12-25 01:21:52)
·SQL HAVING 子句:深 (2025-12-25 01:21:47)
·SQL CREATE INDEX 语 (2025-12-25 01:21:45)
·Shell 传递参数 (2025-12-25 00:50:45)
·Linux echo 命令 - (2025-12-25 00:50:43)