android界面:上下固定且中间内容滚动的页面制作
来源:互联网 发布:mac 鼠标右键 编辑:程序博客网 时间:2024/05/16 07:57
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/common_bg" android:orientation="vertical" > <RelativeLayout android:layout_width="match_parent" android:layout_height="@dimen/height_top_bar" android:background="@color/top_bar_normal_bg" android:gravity="start|center_vertical" > <TextView android:id="@+id/live_detail" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:text="@string/live" android:textColor="#fff" android:textSize="18sp" /> </RelativeLayout> <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent" android:scrollbars="vertical" android:fadingEdge="vertical" android:layout_weight="1"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/common_bg" android:orientation="vertical" > <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="220dp"> <ImageView android:src="@drawable/ee_1" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/livepic" android:scaleType="fitXY"/> </LinearLayout> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> <TableRow android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:layout_marginLeft="20dp" android:layout_marginRight="20dp"> <TextView android:text="测试标题" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/livetitle" android:textSize="18sp" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="5dp" android:layout_marginLeft="20dp" android:layout_marginRight="20dp"> <TextView android:text="开播时间:" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="14sp" android:textColor="@color/voip_interface_text_color" /> <TextView android:text="2017-07-10" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/livestrattime" android:textSize="14sp" android:textColor="@color/voip_interface_text_color" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="10dp" android:background="@color/main_huise" android:layout_marginTop="20dp" android:layout_marginBottom="20dp"/> <TableRow android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="5dp" android:layout_marginLeft="20dp" android:layout_marginRight="20dp"> <TextView android:text="主讲人:" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18sp" /> <TextView android:text="测试人员" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/speaker" android:textSize="18sp" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="2dp" android:background="@color/main_huise" android:layout_marginTop="20dp" android:layout_marginBottom="10dp"/> <TableRow android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="20dp" android:layout_marginRight="20dp"> <TextView android:text="直播简介" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18sp" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="5dp" android:layout_marginLeft="20dp" android:layout_marginRight="20dp"> <TextView android:text="测试测试测试测试。。。。。。。。。。。。。。。。。。。。。。。" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/content" android:textSize="16sp" android:textColor="@color/voip_interface_text_color"/> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="2dp" android:background="@color/main_huise" android:layout_marginTop="20dp" android:layout_marginBottom="10dp"/> <TableRow android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="5dp" android:layout_marginLeft="20dp" android:layout_marginRight="20dp"> <TextView android:text="播放码:" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18sp" /> <TextView android:text="11111" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/livecode" android:textSize="18sp" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="5dp" android:layout_marginLeft="20dp" android:layout_marginRight="20dp"> <TextView android:text="直播地址" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18sp" /> <TextView android:text="http://www.xerllent.cn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/url" android:textSize="18sp" /> </TableRow> </LinearLayout> </LinearLayout> </ScrollView> <Button android:gravity="center" android:text="开启直播" android:id="@+id/beginlive" android:layout_width="match_parent" android:layout_alignParentBottom ="true" android:layout_height="46dp" android:textColor="@color/font_color_normal" android:background="@color/orange"> </Button></LinearLayout>
效果图:
阅读全文
0 0
- android界面:上下固定且中间内容滚动的页面制作
- 上下固定,中间可滚动
- flex上下固定中间滚动布局
- android实现顶部底部标题栏固定 中间可滚动,仿QQ空间的主界面布局
- 上下固定,中间自适应的方法
- android 页面文字上下滚动
- 头部和底部固定,中间内容可滚动
- 基于flex弹性布局实现“头尾固定,中间滚动”的页面(纯CSS实现)
- 基于flex弹性布局实现“头尾固定,中间滚动”的页面(纯CSS实现)
- 上下DIV固定,中间DIV自适应的HTML+CSS实现
- web纯CSS固定表头滚动内容且表头对齐 - 附自动内容滚动javascript
- table的表头固定--上下滚动表头固定,左右滚动跟随滚动
- Android 输入表单实例--上下固定,中部滚动布局
- Android 输入表单实例--上下固定,中部滚动布局
- 宽度一定且使背景图片不变形的情况下,背景图片不随内容滚动(固定)
- 上下固定,中部滚动布局
- Axure怎么制作页面滚动时菜单固定在顶部的
- css布局(上下固定,中间自适应)
- Android 异步查询框架AsyncQueryHandler分析
- BITSET用法详解
- JNDI到底是什么?
- 神经网络浅讲:从神经元到深度学习
- 大数据开源处理工具汇总
- android界面:上下固定且中间内容滚动的页面制作
- caffe 学习汇总
- TensorFlow升级到1.2.0后带来的问题
- 关于this、getContext()、getActivity()、getApplication()、getApplicationContext()的区别
- 对PopupWindow的封装
- MySql视图原理讲解与使用大全
- Mysql 遇到的各种问题
- JAVA调用GDAL实现影像格式转换,以tif to jpg为例
- Spring学习笔记(一)