首页实现_旅游直播实现
来源:互联网 发布:淘宝流量来源怎么获取? 编辑:程序博客网 时间:2024/05/17 06:40
fragment_main.xml
<?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:orientation="vertical"> <android.support.v4.view.ViewPager android:id="@+id/vpager_main_header_ad" android:layout_width="match_parent" android:layout_height="120dp"></android.support.v4.view.ViewPager> <include layout="@layout/main_search" android:layout_width="match_parent" android:layout_height="wrap_content"></include> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_marginTop="80dp" android:src="@mipmap/nav_header_index" /> <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/vpager_main_header_ad" android:layout_marginTop="10dp"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v7.widget.RecyclerView android:id="@+id/recycleview_main_menu" android:layout_width="match_parent" android:layout_height="wrap_content"> </android.support.v7.widget.RecyclerView> <View android:id="@+id/view1" android:layout_width="match_parent" android:layout_height="1dp" android:layout_below="@+id/recycleview_main_menu" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="10dp" android:background="#d8dde1" /> <android.support.v7.widget.RecyclerView android:id="@+id/recycleview_second_menu" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/view1"> </android.support.v7.widget.RecyclerView> <View android:id="@+id/view2" android:layout_width="match_parent" android:layout_height="1dp" android:layout_below="@+id/recycleview_second_menu" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="10dp" android:background="#d8dde1" /> <!--旅游热讯--> <LinearLayout android:id="@+id/main_tra_hot_info" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/view2" android:layout_marginTop="10dp" android:gravity="center" android:orientation="horizontal"> <ImageView android:layout_width="100dp" android:layout_height="30dp" android:src="@mipmap/main_hot_news" /> <TextView android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="秋天真的来了,吃火锅就按这个火锅地图走" android:textColor="#000000" /> </LinearLayout> <!--特价区域--> <LinearLayout android:id="@+id/main_sail" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/main_tra_hot_info" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:layout_marginTop="10dp" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:layout_width="wrap_content" android:layout_height="120dp" android:layout_weight="1.5" android:src="@mipmap/main_spread1" /> <ImageView android:layout_width="wrap_content" android:layout_height="120dp" android:layout_marginLeft="5dp" android:layout_weight="1" android:src="@mipmap/main_spread2" /> <ImageView android:layout_width="wrap_content" android:layout_height="120dp" android:layout_marginLeft="1dp" android:layout_weight="1" android:src="@mipmap/main_spread3" /> </LinearLayout> <ImageView android:layout_width="match_parent" android:layout_height="120dp" android:layout_marginTop="5dp" android:background="@mipmap/main_spread4" /> </LinearLayout> <RelativeLayout android:id="@+id/main_online" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/main_sail" android:layout_marginLeft="10dp" android:gravity="center"> <ImageView android:id="@+id/img_online_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:src="@mipmap/main_travle_online" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_toRightOf="@+id/img_online_icon" android:text="旅行直播" android:textColor="#000000" /> </RelativeLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/main_online" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="10dp" android:orientation="horizontal"> <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:layout_weight="1"> <ImageView android:layout_width="match_parent" android:layout_height="120dp" android:background="@mipmap/main_travle_online_pic" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:gravity="center" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="发现美国好东西" android:textColor="#ffffff" android:textSize="20sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:text="资深老师解析,互动发红包" android:textColor="#ffffff" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:src="@mipmap/main_travle_online_play" /> </LinearLayout> </RelativeLayout> <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:layout_marginLeft="2dp" android:layout_weight="1"> <ImageView android:layout_width="match_parent" android:layout_height="120dp" android:background="@mipmap/main_travle_online_pic2" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:gravity="center" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="SPC首次直播" android:textColor="#ffffff" android:textSize="20sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:text="北京长安酒店,耀动帝都" android:textColor="#ffffff" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:src="@mipmap/main_travle_online_play" /> </LinearLayout> </RelativeLayout> </LinearLayout> </RelativeLayout> </ScrollView></RelativeLayout>
阅读全文
0 0
- 首页实现_旅游直播实现
- DIV+CSS实现旅游网站首页
- 首页实现_主菜单实现
- 首页实现_特价区域实现
- 视频直播技术_直播如何实现低延迟
- 首页实现_头部搜索框
- 首页实现_头部广告页
- 玩转【斗鱼直播APP】系列之首页布局分析实现
- 小码哥-玩转【斗鱼直播APP】系列之首页布局分析实现
- 组团旅游问题优化实现
- iphone直播的实现
- android 实现 rtsp 直播
- live555实现直播
- live555实现264直播
- 阿里云 直播实现
- h5页面实现直播
- RTMP直播效果实现
- 视频直播的实现
- PHP基础教程-25 自动化编程
- HDU 6144 Arithmetic of Bomb(模拟)
- 搜索方式的优缺比较
- 数据结构之排序,归并求逆序数
- 根据经纬度算距离 | SQL
- 首页实现_旅游直播实现
- 欧拉函数(一)
- JavaScript权威指南读书笔记——第十五章 脚本化文档
- Sublime Text 3 快捷键
- POJ 1466 Girls and Boys(二分图最大独立集)
- 11.MapReduce第1部分
- 交换数据表两个字段值 | SQL
- 利用tensorflow object detection训练ssd_mobilenets
- 17.8.12B组总结