Android--XML页面的编写
五个页面 代码如下: 图片资源链接: https://pan.baidu.com/s/1jIoTDGE
// 第一个
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/bg_main"
- android:padding="10dp" >
- <ImageView
- android:id="@+id/imageView1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:src="@drawable/bt_setting_n" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:orientation="vertical" >
- <RelativeLayout
- android:onClick="onStart"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/main_n"
- android:padding="10dp" >
- <ImageView
- android:id="@+id/iv_add"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:src="@drawable/medical_tijian_iv" />
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="10dp"
- android:layout_toRightOf="@id/iv_add"
- android:orientation="vertical" >
- <TextView
- android:id="@+id/tv_1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="手机体检"
- android:textColor="#fff"
- android:textSize="18sp" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="您已经很长时间没体检了"
- android:textColor="#fff"
- android:textSize="12sp" />
- </LinearLayout>
- </RelativeLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="2dp"
- android:orientation="horizontal" >
- <ImageView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginRight="2dp"
- android:layout_weight="1"
- android:background="@drawable/main_n"
- android:src="@drawable/bt_backgroundm" />
- <ImageView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginRight="2dp"
- android:layout_weight="1"
- android:background="@drawable/main_n"
- android:src="@drawable/bt_injectsms" />
- <ImageView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="@drawable/main_n"
- android:src="@drawable/bt_safesend" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="2dp"
- android:orientation="horizontal" >
- <ImageView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginRight="2dp"
- android:layout_weight="1"
- android:background="@drawable/main_n"
- android:src="@drawable/bt_traffic" />
- <ImageView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginRight="2dp"
- android:layout_weight="1"
- android:background="@drawable/main_n"
- android:src="@drawable/bt_notification" />
- <ImageView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="@drawable/main_n"
- android:src="@drawable/bt_softwarem" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="2dp"
- android:orientation="horizontal" >
- <ImageView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginRight="2dp"
- android:layout_weight="1"
- android:background="@drawable/main_n"
- android:src="@drawable/bt_tools" />
- <ImageView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginRight="2dp"
- android:layout_weight="1"
- android:background="@drawable/main_n"
- android:src="@drawable/bt_protection" />
- <ImageView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1" >
- </ImageView>
- </LinearLayout>
- </LinearLayout>
- </RelativeLayout>
// 第二个
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/metro_default_bg"
- android:padding="20dp" >
- <RelativeLayout
- android:id="@+id/rl"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_alignParentRight="true" >
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/dd_user_default_icon_2x" />
- <ImageView
- android:id="@+id/img_set"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
- android:layout_marginBottom="20dp"
- android:src="@drawable/dd_zaker_setting_nor_2x" />
- <ImageView
- android:id="@+id/img_1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_above="@id/img_set"
- android:layout_centerHorizontal="true"
- android:layout_marginBottom="50dp"
- android:src="@drawable/dd_zaker_rss_nor_2x" />
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_above="@id/img_1"
- android:layout_centerHorizontal="true"
- android:layout_marginBottom="50dp"
- android:src="@drawable/dd_zaker_faver_nor_2x" />
- </RelativeLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginRight="20dp"
- android:layout_toLeftOf="@id/rl"
- android:orientation="vertical" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="20dp"
- android:orientation="horizontal" >
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginRight="20dp"
- android:layout_weight="1"
- android:background="#60cccccc"
- android:clickable="true"
- android:drawablePadding="15dp"
- android:drawableTop="@drawable/module_615532"
- android:gravity="center_horizontal"
- android:padding="30dp"
- android:text="考试动态"
- android:textColor="#fff"
- android:onClick="onStart2"
- android:textSize="15sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="#60cccccc"
- android:drawablePadding="15dp"
- android:drawableTop="@drawable/module_615531"
- android:gravity="center_horizontal"
- android:padding="30dp"
- android:text="提分经验"
- android:textColor="#fff"
- android:textSize="15sp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="20dp"
- android:orientation="horizontal" >
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginRight="20dp"
- android:layout_weight="1"
- android:background="#60cccccc"
- android:drawablePadding="15dp"
- android:drawableTop="@drawable/module_615530"
- android:gravity="center_horizontal"
- android:padding="30dp"
- android:text="学习周边"
- android:textColor="#fff"
- android:textSize="15sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="#60cccccc"
- android:drawablePadding="15dp"
- android:drawableTop="@drawable/module_615535"
- android:gravity="center_horizontal"
- android:padding="30dp"
- android:text="学霸社区"
- android:textColor="#fff"
- android:textSize="15sp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="20dp"
- android:orientation="horizontal" >
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginRight="20dp"
- android:layout_weight="1"
- android:background="#60cccccc"
- android:drawablePadding="15dp"
- android:drawableTop="@drawable/module_615534"
- android:gravity="center_horizontal"
- android:padding="30dp"
- android:text="投稿中心"
- android:textColor="#fff"
- android:textSize="15sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:background="#60cccccc"
- android:drawablePadding="15dp"
- android:drawableTop="@drawable/module_615533"
- android:gravity="center_horizontal"
- android:padding="30dp"
- android:text="天气助手"
- android:textColor="#fff"
- android:textSize="15sp" />
- </LinearLayout>
- </LinearLayout>
- </RelativeLayout>
// 第三、四、五
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/dfr" >
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="50dp"
- android:gravity="center_horizontal" >
- <ImageView
- android:id="@+id/img"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/anq" />
- <TextView
- android:id="@+id/tv_music"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="10dp"
- android:layout_toRightOf="@id/img"
- android:text="酷狗音乐"
- android:textColor="#fff"
- android:textSize="28sp" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignBottom="@id/img"
- android:layout_below="@id/tv_music"
- android:layout_marginLeft="10dp"
- android:layout_toRightOf="@id/img"
- android:gravity="center"
- android:text="不 变 的 只 有 音 乐"
- android:textColor="#fff"
- android:textSize="14sp" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/rl_bottom"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_marginBottom="20dp" >
- <TextView
- android:id="@+id/tv_qq"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_marginLeft="40dp"
- android:layout_marginRight="40dp"
- android:drawablePadding="7dp"
- android:drawableTop="@drawable/b12"
- android:gravity="center"
- android:text="QQ"
- android:textColor="#fff"
- android:textSize="12sp" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_toLeftOf="@id/tv_qq"
- android:drawablePadding="7dp"
- android:drawableTop="@drawable/b10"
- android:gravity="center"
- android:text="微博"
- android:textColor="#fff"
- android:textSize="12sp" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_toRightOf="@id/tv_qq"
- android:drawablePadding="7dp"
- android:drawableTop="@drawable/dfi"
- android:text="微信"
- android:textColor="#fff"
- android:textSize="12sp" />
- </RelativeLayout>
- <LinearLayout
- android:id="@+id/ll"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_above="@id/rl_bottom"
- android:layout_marginBottom="20dp"
- android:orientation="horizontal" >
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_gravity="center"
- android:layout_marginLeft="20dp"
- android:layout_weight="2"
- android:alpha="0.3"
- android:background="@android:color/white" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginLeft="3dp"
- android:layout_marginRight="3dp"
- android:layout_weight="1"
- android:gravity="center"
- android:text="其他登录方式"
- android:textColor="#fff"
- android:textSize="14sp" />
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_gravity="center"
- android:layout_marginRight="20dp"
- android:layout_weight="2"
- android:alpha="0.3"
- android:background="@android:color/white" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_above="@id/ll"
- android:layout_marginBottom="20dp"
- android:gravity="center_horizontal"
- android:orientation="vertical" >
- <ImageView
- android:id="@+id/img_login"
- android:layout_width="wrap_content"
- android:layout_height="0dp"
- android:layout_marginBottom="8dp"
- android:layout_weight="1"
- android:src="@drawable/login" />
- <ImageView
- android:id="@+id/img_register"
- android:layout_width="wrap_content"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:src="@drawable/register" />
- </LinearLayout>
- </RelativeLayout>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:background="@drawable/back"
- android:orientation="vertical" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal" >
- <ImageView
- android:layout_margin="5dp"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:src="@drawable/kugou" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_weight="1"
- android:gravity="center"
- android:text="听"
- android:textColor="#fff"
- android:textSize="18sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_weight="1"
- android:gravity="center"
- android:text="看"
- android:textColor="#fff"
- android:textSize="18sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_weight="1"
- android:gravity="center"
- android:text="唱"
- android:textColor="#fff"
- android:textSize="18sp" />
- <ImageView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_weight="1"
- android:src="@drawable/skin_kg_comm_ic_main_top_search_normal" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:padding="10dp"
- android:layout_height="wrap_content"
- android:orientation="horizontal" >
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:drawableTop="@drawable/skin_kg_navigation_fav_normal"
- android:gravity="center"
- android:text="我喜欢"
- android:textColor="#fff" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:drawableTop="@drawable/skin_kg_navigation_playlist_normal"
- android:gravity="center"
- android:text="歌单"
- android:textColor="#fff" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:drawableTop="@drawable/skin_kg_navigation_download_normal"
- android:gravity="center"
- android:text="下载"
- android:textColor="#fff" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:drawableTop="@drawable/skin_kg_navigation_recent_normal"
- android:gravity="center"
- android:text="最近"
- android:textColor="#fff" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_marginTop="5dp"
- android:alpha="0.5"
- android:background="#ccc" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
- <ImageView
- android:id="@+id/img_phone"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:src="@drawable/skin_kg_navigation_local_music_normal" />
- <TextView
- android:id="@+id/tv_muisc"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="15dp"
- android:layout_toRightOf="@id/img_phone"
- android:text="本地音乐"
- android:textColor="#fff"
- android:textSize="16sp" />
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="10dp"
- android:layout_toRightOf="@id/tv_muisc"
- android:src="@drawable/skin_kg_navigation_random_normal" />
- <ImageView
- android:id="@+id/img_back"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="25dp"
- android:src="@drawable/back_nor" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_toLeftOf="@id/img_back"
- android:text="0首"
- android:textColor="#fff"
- android:textSize="16sp" />
- </RelativeLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="3"
- android:orientation="vertical" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="40dp" >
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:drawablePadding="10dp"
- android:drawableTop="@drawable/skin_kg_navigation_yueku_normal"
- android:gravity="center"
- android:text="乐库"
- android:textSize="16sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:drawablePadding="10dp"
- android:drawableTop="@drawable/skin_kg_navigation_channel_normal"
- android:gravity="center"
- android:text="电台"
- android:textSize="16sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:drawablePadding="10dp"
- android:drawableTop="@drawable/skin_kg_navigation_kuchat_normal"
- android:gravity="center"
- android:text="酷群"
- android:textSize="16sp" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:alpha="0.3"
- android:background="#ccc" />
- <RelativeLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp" >
- <ImageView
- android:id="@+id/img_headset"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="15dp"
- android:src="@drawable/skin_kg_navigation_tool" />
- <TextView
- android:id="@+id/tv_kit"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="10dp"
- android:layout_toRightOf="@id/img_headset"
- android:text="音乐工具"
- android:textSize="14sp" />
- <ImageView
- android:id="@+id/img_back2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/b1p" />
- <ImageView
- android:id="@+id/img_point"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="15dp"
- android:layout_toLeftOf="@id/img_back2"
- android:src="@drawable/point" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginRight="15dp"
- android:layout_toLeftOf="@id/img_point"
- android:text="听歌识曲"
- android:textSize="14sp" />
- </RelativeLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_marginLeft="50dp"
- android:layout_marginRight="10dp"
- android:layout_marginTop="10dp"
- android:alpha="0.3"
- android:background="#ccc" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="#1E93FF"
- android:orientation="horizontal" >
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="12dp"
- android:gravity="center"
- android:text="酷狗账号注册"
- android:textColor="#fff"
- android:textSize="22sp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#E1E1E1"
- android:orientation="vertical" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:background="#FFFFFF"
- android:orientation="horizontal"
- android:gravity="center_vertical"
- android:paddingBottom="10dp"
- android:paddingTop="10dp" >
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="20dp"
- android:text="账号 "
- android:textSize="18sp" />
- <EditText
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="2-10位中文/字母/数字" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="#FFFFFF"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingBottom="10dp" >
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="20dp"
- android:text="密码 "
- android:textSize="18sp" />
- <EditText
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="6_16位字母/数字" />
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/ec5" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="#FFFFFF"
- android:orientation="horizontal"
- android:paddingBottom="10dp" >
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="horizontal" >
- <RadioButton
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="25dp"
- android:layout_marginRight="25dp"
- android:gravity="center_vertical" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:text="帅哥"
- android:textSize="18sp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="horizontal" >
- <View
- android:layout_width="1dp"
- android:layout_height="30dp"
- android:background="#ccc" />
- <RadioButton
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginRight="25dp"
- android:gravity="center_vertical" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:text="美女"
- android:textSize="18sp" />
- </LinearLayout>
- </LinearLayout>
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginTop="20dp"
- android:src="@drawable/login2" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="20dp"
- android:layout_marginTop="25dp"
- android:text="点击完成表示你阅读并同意《用户协议》"
- android:textColor="#C5C5C5"
- android:textSize="16sp" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="20dp"
- android:layout_marginTop="30dp"
- android:text="使用手机注册"
- android:textColor="#30A9D1"
- android:textSize="16sp" />
- </LinearLayout>
- </LinearLayout>
Android--XML页面的编写的更多相关文章
- Android Camera 相机程序编写
Android Camera 相机程序编写 要自己写一个相机应用直接使用相机硬件,首先应用需要一个权限设置,在AndroidManifest.xml中加上使用设备相机的权限: <uses-per ...
- Android实现页面跳转、ListView及其事件
Android实现页面跳转.ListView及其事件 开发工具:Andorid Studio 1.3 运行环境:Android 4.4 KitKat 工程内容 进入主页面后,使用ListView实现特 ...
- Android滚动页面位置指示器:CircleIndicator
Android滚动页面位置指示器:CircleIndicator CircleIndicator是github上的一个开源的用于页面滚动时候的位置指示器,指示当前页面在总的页面中的位置和前后位置 ...
- Android欢迎页面以及引导页面
开发环境:Windows 10 x64,Android Studio 3.0 很多APP都会在启动主界面(MainActivity)之前显示一个短暂的欢迎页面,设置微博,知乎,百度之类APP还是在欢迎 ...
- Android Cordova 插件开发之编写自己定义插件
前言 本文适合Android+web的复合型人才,由于cordova本身就是混合开发,所以在Android开发的基础上,还要懂web相关技术(HTML+CSS+JS).可是也有例外,比方我.仅仅需负责 ...
- Android启动页面的正确打开方式 (转载)
最近由于领导要求写一个手机APP,于是自学开始,不经意间想到使用过的手机APP在打开的时候都是会有一个启动页面,这是如何实现的呢?比较好奇,于是在网上搜到了以下这篇文章,经过个人实验的确可行,不过原文 ...
- 二、Android XML数据解析
XML,可扩展标记语言.可以用来存储数据,可以看做是一个小型的数据库,SharedPreference就是使用XML文件存储数据的,SQLite底层也是一个XML文件,而在网络应用方面,通常作为信息的 ...
- 《!--suppress ALL --> 在Android XML 文件中的用途是什么?
<!--suppress ALL --> 在Android XML 文件中的用途是什么? 警告一次又一次地出现在谷歌地图的 XML 文件中,但是当我使用时,所有警告都被禁用.那么压制所有评 ...
- Drawable实战解析:Android XML shape 标签使用详解(apk瘦身,减少内存好帮手)
Android XML shape 标签使用详解 一个android开发者肯定懂得使用 xml 定义一个 Drawable,比如定义一个 rect 或者 circle 作为一个 View 的背景. ...
- Android xml 格式 随笔
打包的时候Android xml文件会由字符格式(utf-8编码)转换为二进制格式.具体如:http://blog.csdn.net/jiangwei0910410003/article/detail ...
随机推荐
- PAT_A1119 Pre- and Post-order Traversals
Source: PAT A1119 Pre- and Post-order Traversals (30 分) Description: Suppose that all the keys in a ...
- python的自动化测试报告
#coding=utf-8import HTMLTestRunnerimport BeautifulReportimport unittestclass MyTest(unittest.TestCas ...
- android自定义dialog布局
dialog使用系统自带的有时候不是很美观,就想要自己来设计一个dialog界面,以下就是可以设计的dialog界面: public class CustomDialog extends Dialog ...
- sql查询原理
1.单表查询:根据WHERE条件过滤表中的记录,形成中间表(这个中间表对用户是不可见的):然后根据SELECT的选择列选择相应的列进行返回最终结果. 1)简单的单表查询 SELECT 字段 FROM ...
- SpringBoot背景
1.SpringBoot的产生背景:随着spring日益发展,丰富的框架和组件大大简化了java项目开发过程,经过多年的实践,得到了很多人的认可,但是Spring的严重依赖XML配置文件,严重导致项目 ...
- mongodb集群搭建(分片+副本)
原文地址:https://www.cnblogs.com/ityouknow/p/7344005.html 相关概念 先来看一张图: 从图中可以看到有四个组件:mongos.config server ...
- 44.mapping下的数据结构
主要知识点 1.了解es核心的数据类型 2.了解es默认的mapping方式 3.查看mapping 1.核心的数据类型 string,text byte, short,integer ...
- ThinkPHP5.0 模型查询操作
1.获取单个数据 //取出主键为1的数据 $user = User::get(1); echo $user->name; // 使用数组查询 $user = User::get(['name' ...
- 【ACM】poj_1000_A+B_201307271012
A+B ProblemTime Limit: 1000MS Memory Limit: 10000K Total Submissions: 296408 Accepted: 162241 Desc ...
- faster-rcnn代码阅读1
毫无疑问,faster-rcnn是目标检测领域的一个里程碑式的算法.本文主要是本人阅读python版本的faster-rcnn代码的一个记录,算法的具体原理本文也会有介绍,但是为了对该算法有一个整体性 ...