首页 > 学院 > 开发设计 > 正文

ScrollView

2019-11-07 23:37:17
字体:
来源:转载
供稿:网友
<!--滚动功能列表--> <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:background="#ffffff"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center"> <ImageView android:layout_width="48dp" android:layout_height="48dp" android:src="@mipmap/list_my_menu" android:layout_marginLeft="10dp"/> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp"> <TextView android:id="@+id/tv_my_menu" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="我的订单" android:textSize="20sp" android:layout_marginTop="18dp"/> <!--细线可以用一个View来实现--> <View android:layout_width="match_parent" android:layout_height="1dp" android:background="#d8dde1" android:layout_below="@id/tv_my_menu" android:layout_marginTop="10dp" android:layout_marginRight="20dp"> </View> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center"> <ImageView android:layout_width="48dp" android:layout_height="48dp" android:src="@mipmap/list_save" android:layout_marginLeft="10dp"/> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp"> <TextView android:id="@+id/tv_my_save" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="我的收藏" android:textSize="20sp" android:layout_marginTop="18dp"/> <View android:layout_width="match_parent" android:layout_height="1dp" android:background="#d8dde1" android:layout_below="@id/tv_my_save" android:layout_marginTop="10dp" android:layout_marginRight="20dp"> </View> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center"> <ImageView android:layout_width="48dp" android:layout_height="48dp" android:src="@mipmap/list_pwd" android:layout_marginLeft="10dp"/> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp"> <TextView android:id="@+id/tv_my_pwd" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="我的口令" android:textSize="20sp" android:layout_marginTop="18dp"/> <View android:layout_width="match_parent" android:layout_height="1dp" android:background="#d8dde1" android:layout_below="@id/tv_my_pwd" android:layout_marginTop="10dp" android:layout_marginRight="20dp"> </View> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center"> <ImageView android:layout_width="48dp" android:layout_height="48dp" android:src="@mipmap/list_my" android:layout_marginLeft="10dp"/> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp"> <TextView android:id="@+id/tv_my" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="我的锦囊" android:textSize="20sp" android:layout_marginTop="18dp"/> <View android:layout_width="match_parent" android:layout_height="1dp" android:background="#d8dde1" android:layout_below="@id/tv_my" android:layout_marginTop="10dp" android:layout_marginRight="20dp"> </View> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center"> <ImageView android:layout_width="48dp" android:layout_height="48dp" android:src="@mipmap/list_safe_center" android:layout_marginLeft="10dp"/> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp"> <TextView android:id="@+id/tv_my_safe" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="安全中心" android:textSize="20sp" android:layout_marginTop="18dp"/> <View android:layout_width="match_parent" android:layout_height="1dp" android:background="#d8dde1" android:layout_below="@id/tv_my_safe" android:layout_marginTop="10dp" android:layout_marginRight="20dp"> </View> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center"> <ImageView android:layout_width="48dp" android:layout_height="48dp" android:src="@mipmap/list_address" android:layout_marginLeft="10dp"/> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp"> <TextView android:id="@+id/tv_my_address" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="常用地址" android:textSize="20sp" android:layout_marginTop="18dp"/> <View android:layout_width="match_parent" android:layout_height="1dp" android:background="#d8dde1" android:layout_below="@id/tv_my_address" android:layout_marginTop="10dp" android:layout_marginRight="20dp"> </View> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center"> <ImageView android:layout_width="48dp" android:layout_height="48dp" android:src="@mipmap/list_service" android:layout_marginLeft="10dp"/> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp"> <TextView android:id="@+id/tv_service" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="客服中心" android:textSize="20sp" android:layout_marginTop="18dp"/> <View android:layout_width="match_parent" android:layout_height="1dp" android:background="#d8dde1" android:layout_below="@id/tv_service" android:layout_marginTop="10dp" android:layout_marginRight="20dp"> </View> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center"> <ImageView android:layout_width="48dp" android:layout_height="48dp" android:src="@mipmap/list_sug" android:layout_marginLeft="10dp"/> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp"> <TextView android:id="@+id/tv_sug" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="意见反馈" android:textSize="20sp" android:layout_marginTop="18dp"/> <View android:layout_width="match_parent" android:layout_height="1dp" android:background="#d8dde1" android:layout_below="@id/tv_sug" android:layout_marginTop="10dp" android:layout_marginRight="20dp"> </View> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center"> <ImageView android:layout_width="48dp" android:layout_height="48dp" android:src="@mipmap/list_setting" android:layout_marginLeft="10dp"/> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp"> <TextView android:id="@+id/tv_setting" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="设置" android:textSize="20sp" android:layout_marginTop="18dp"/> <View android:layout_width="match_parent" android:layout_height="1dp" android:background="#d8dde1" android:layout_below="@id/tv_setting" android:layout_marginTop="10dp" android:layout_marginRight="20dp"> </View> </RelativeLayout> </LinearLayout> </LinearLayout> </ScrollView>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表