android > 布局尺寸
16lz
2021-01-25
top 和 footer背景图片的高度 尽量 70 - 80 px , 74可好。 70 尚可
top , footer bar条例的 button 按钮 尽量45 - 50 , 47 好了
top bar -title 大小22 DIP 左右margin 5dip
满屏 大小 641 * 961
** 配置页面的适当布局
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="9" android:background="@drawable/contrl_top_bar_bg" android:paddingLeft="5dip" android:paddingRight="5dip" > <ImageButton android:id="@+id/back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/contrl_index_back" android:layout_centerVertical="true" android:layout_alignParentLeft="true" android:background="@android:color/transparent" /> <TextView android:id="@+id/title_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:textSize="23dip" android:textColor="#ffffff" android:text="配置" /> <ImageButton android:id="@+id/save" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/contrl_index_save" android:layout_centerVertical="true" android:layout_alignParentRight="true" android:background="@android:color/transparent" /> </RelativeLayout> <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:background="#E7E3DE" android:paddingLeft="15dip" android:paddingRight="15dip" > <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="3dip" > <!-- top1 start --> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:background="@drawable/info_setting_circle" android:padding="1dip"android:layout_marginTop="10dip" > <!-- top2 start --> <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content"android:padding="8dip" > <TextView android:id="@+id/iv_icon_set" android:layout_width="wrap_content" android:layout_height="wrap_content"android:layout_centerVertical="true"android:layout_alignParentLeft="true"android:text="帮助与反馈"android:paddingLeft="8dip" /> <ImageButton android:id="@+id/back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/contrl_list_go" android:layout_centerVertical="true" android:layout_alignParentRight="true" android:paddingRight="8dip" android:background="@android:color/transparent" /> </RelativeLayout> <!-- top2 end --> <View android:layout_width="fill_parent" android:layout_height="1px" android:background="?android:attr/listDivider" /> <!-- top2 start --> <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content"android:padding="8dip" > <TextView android:id="@+id/iv_icon_set" android:layout_width="wrap_content" android:layout_height="wrap_content"android:layout_centerVertical="true"android:layout_alignParentLeft="true"android:text="关于"android:paddingLeft="8dip" /> <ImageButton android:id="@+id/back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/contrl_list_go" android:layout_centerVertical="true" android:layout_alignParentRight="true" android:paddingRight="8dip" android:background="@android:color/transparent" /> </RelativeLayout> <!-- top2 end --> </LinearLayout><!-- top1 end --> </LinearLayout> </ScrollView> </LinearLayout>
其中 @drawable/info_setting_circle
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="1dip" android:color="#B5B2B5" /> <corners android:radius="8dip" /> <solid android:color="#FFFFFF" /> </shape>
contrl_list_go.png
show:
布局尺寸" width="485" height="482">
更多相关文章
- Android(安卓)UI 之 ListView
- CoordinatorLayout 的使用
- android 全透明式状态栏
- Android如何设置App字体大小不跟随系统字体调整而变化
- 使用Dialog实现PopupWindow效果
- Android(安卓)GestureDetector滑动监听事件
- android > ListView > 加载res图标
- Android关于布局的经典面试题及解答(一)
- 灵活使用Android中ActionBar和ViewPager切换页面