底部菜单图片加按钮布局文件
2017-12-27 16:47
260 查看
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:clipChildren="false"> <LinearLayout android:id="@+id/ll_bottom" android:layout_width="match_parent" android:layout_height="130dp" android:layout_alignParentBottom="true" android:orientation="horizontal"> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_gravity="bottom" android:layout_weight="1" android:id="@+id/bt"> <ImageView android:id="@+id/dd" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:src="@mipmap/ic_launcher" /> <TextView android:padding="2dp" android:textSize="15sp" android:layout_centerInParent="true" android:text="首页" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/dd"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_gravity="bottom" android:layout_weight="1"> <ImageView android:id="@+id/dd2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:src="@mipmap/ic_launcher" /> <TextView android:padding="2dp" android:textSize="15sp" android:layout_centerInParent="true" android:text="鱼塘" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/dd2"/> </RelativeLayout> <RelativeLayout android:layout_width="100dp" android:layout_height="150dp" android:layout_gravity="bottom" > <ImageView android:id="@+id/dd5" android:layout_width="60dp" android:layout_height="60dp" android:layout_centerInParent="true" android:src="@mipmap/ic_launcher_round" /> <TextView android:padding="2dp" android:textSize="15sp" android:layout_centerInParent="true" android:text="添加" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/dd5"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_gravity="bottom" android:layout_weight="1"> <ImageView android:id="@+id/dd3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:src="@mipmap/ic_launcher" /> <TextView android:textSize="15sp" android:layout_centerInParent="true" android:text="消息" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/dd3"/> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_gravity="bottom" android:layout_weight="1"> <ImageView android:id="@+id/dd4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:src="@mipmap/ic_launcher" /> <TextView android:padding="2dp" android:textSize="15sp" android:layout_centerInParent="true" android:text="我的" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/dd4"/> </RelativeLayout>> </LinearLayout> </RelativeLayout>
相关文章推荐
- 通过xml布局文件实现按钮改变焦点设置背景图片
- HTML 各种按钮,图片按钮,打开文件按钮
- [Android] 底部菜单布局+PopupWindows实现弹出菜单功能(初级篇)
- 软键盘触发后弹起底部布局文件方法
- 小技巧,如何把上传文件的浏览按钮换成其他样式 或者图片
- 通过JSON文件获取图片URL,下载并显示在布局中
- Cocos2d-x -- 图片菜单按钮
- 仿ios底部弹窗菜单按钮
- header+section+footer(底部按钮布局)
- 底部弹出按钮菜单升级版
- 菜单(optinosMenu,Context Menu,SubMenu,IconMenu),布局文件加载进菜单
- iOS_按钮文字图片任意布局,随意定制
- 想要写个布局,底部是两个按钮,其余地方设置成imageview
- 使用XML布局文件和java代码共同控制UI界面做一个简易图片浏览器
- Android之解决布局文件图片太大同步放缩后挤掉其它布局的问题
- 底部弹出按钮菜单升级版
- 怎么简便地去掉html中难看的文件上传按钮并实现图片预览功能?
- Qt中为工程添加资源文件、给按钮添加图片
- android开发布局文件imageview 图片等比例缩放: