android布局 listview,安卓布局如何让 listview 和listview上的布局一起滚动
xml布局如下 但是不能实现我说的listview 和上面布局一起滚动
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="#fff">
android:id="@+id/roll_view_pager"
android:layout_width="match_parent"
android:layout_height="100dp"
app:rollviewpager_play_delay="3000"/>
android:layout_width="match_parent"
android:layout_height="170dp"
android:background="#fff"
android:orientation="vertical"
android:layout_marginBottom="10dp">
android:layout_width="match_parent"
android:layout_height="85dp"
android:background="#fff"
android:orientation="horizontal">
android:id="@+id/home_menu_cyms"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:clickable="true"
android:background="@drawable/me_selecter"
android:orientation="vertical">
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="15dp"
android:src="@drawable/cyms"/>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1"
android:textSize="13dp"
android:text="餐饮美食"/>
android:id="@+id/home_menu_xxyl"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:clickable="true"
android:background="@drawable/me_selecter"
android:orientation="vertical">
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="15dp"
android:src="@drawable/ylxx"/>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:textSize="13dp"
android:text="休闲娱乐"/>
android:id="@+id/home_menu_jdzs"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:clickable="true"
android:background="@drawable/me_selecter"
android:orientation="vertical">
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="15dp"
android:src="@drawable/jdzs"/>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:textSize="13dp"
android:text="酒店住宿"/>
android:id="@+id/home_menu_qcfw"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:clickable="true"
android:background="@drawable/me_selecter"
android:orientation="vertical">
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="15dp"
android:src="@drawable/qcfw"/>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:textSize="13dp"
android:text="汽车服务"/>
android:layout_width="match_parent"
android:layout_height="85dp"
android:background="#fff"
android:orientation="horizontal">
android:id="@+id/home_menu_lrmy"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:clickable="true"
android:background="@drawable/me_selecter"
android:orientation="vertical">
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:src="@drawable/lrmy"/>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1"
android:textSize="13dp"
android:text="丽人美业"/>
android:id="@+id/home_menu_smfw"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:clickable="true"
android:background="@drawable/me_selecter"
android:orientation="vertical">
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:src="@drawable/shgw"/>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:textSize="13dp"
android:text="生活服务"/>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:clickable="true"
android:layout_marginTop="20dp"
android:orientation="vertical">
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center"
/>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text=""/>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:clickable="true"
android:layout_marginTop="20dp"
android:orientation="vertical">
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center"
/>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text=""/>
android:id="@+id/home_list_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:dividerHeight="0.7dp"
android:divider="#f5f5f5">
android布局 listview,安卓布局如何让 listview 和listview上的布局一起滚动相关推荐
- Android重点笔记,安卓listview 懒加载的实现笔记
1.实现目的与用途 使用懒加载可降低单次访问后台的所获取的数据量,从而提高获取数据的速度,减少流量使用,加快UI界面的响应,提高用户体验度. 2.实现思路 两种实现思路: 1.先设定listview每 ...
- Android学习系列(11)--App列表之拖拽ListView(下)
接着上篇Android学习系列(10)--App列表之拖拽ListView(上)我们继续实现ListView的拖拽效果. 7.重写onTouchEvent()方法. 在这个方法中我们主要是处 ...
- android应用开发全程实录-你有多熟悉listview? .
本文版权归 csdn noTice501 所有,转载请详细标明原作者及出处,以示尊重! 作者:noTice501 原文:http://blog.csdn.net/notice520/article/d ...
- [Android Studio]掌握Android Studio的五种常见控件和五种常见布局
目录 一.View和ViewGroup 二.Android的五种常见控件 2.1 文本控件 2.1.1 TextView 2.1.2 EditText 2.2 按钮控件 2.2.1 Button 2. ...
- Android群英传知识点回顾——第四章:ListView常用优化技巧
Android群英传知识点回顾--第四章:ListView常用优化技巧 知识点目录 4.1 ListView常用优化技巧 4.1.1 使用ViewHolder模式提高效率 4.1.2 设置项目间分割线 ...
- 第52篇 Android Studio实现生命数字游戏(七)ListView与适配器
第52篇 Android Studio实现生命数字游戏(七)ListView与适配器 1.ListView 1.1.适配界面 1.2.适配器 1.ListView 在布局中直接添加. 没有什么好说明, ...
- Android实战简易教程-第五十一枪(ListView实现子控件的动态显示和隐藏、checkbox全选和反选)
前段时间写过一篇文章:Android实战简易教程-第四十七枪(ListView多选-实现点餐系统)有的同学留言建议,可不可以动态控制checkbox的显示和全选反选功能,我研究了一下,发现实现也比较容 ...
- android应用开发全程实录-你有多熟悉listview?
今天给大家带来<android应用开发全程实录>中关于listview和adatper中的部分.包括listview的基本使用,listview的优化等. 我们经常会在应用程序中使用列表的 ...
- android端获取Tomcat服务器端json数据并通过listview显示
大体描述: 大体意思是用eclipse ee创建一个Javaweb项目,该项目能从MySQL数据库中获取user表的数据,将数据封装成json格式,将此项目发布到本地Tomcat服务器,在androi ...
最新文章
- Caffe官方教程翻译(8):Brewing Logistic Regression then Going Deeper
- 信息系统项目管理师-论文专题(二)整体管理论文写作
- SOAP HTTP绑定
- WordPress+Markdown+为知笔记,实现高质量笔记和博客
- 02-线性结构2 一元多项式的乘法与加法运算 (20 分)
- 《C#本质论》读书笔记(十二)构造器 @ Lennon
- C#获取Windows下光标位置(转)
- 华为消息推送 有透传通道吗_求解在推送用透传消息-使用厂商通道(我用的是基座测试) 用手机测试出现了“clientId离线”问题...
- discuz 如何去掉自定义表情
- linux中终止停止进程_如何在Linux中终止进程或停止程序
- 微服务的隔离和熔断机制
- 获取类路径的方法之一
- 最新版android迅雷,迅雷下载2021安卓最新版_手机app官方版免费安装下载_豌豆荚...
- 23位子网掩码是多少_24位子网掩码,多少个IP地址
- linux双显卡配置_linux双显卡配置 linux网络配置
- 小森生活服务器维护公告,小森生活2021年5月11日停服更新公告
- 小学教师计算机个人研修计划,教师信息技术研修计划
- 使用css画太极,CSS画太极阴阳图
- Java媒体框架(JMF)
- 常见链表面试题(下)
热门文章
- 弱电计算机网络系统系统概述,弱电系统一、计算机网络系统.ppt
- java guid_细说Java生成GUID的实现方法
- android电子书App、自定义图表、仿腾讯漫画App、仿淘宝优惠券、3D选择容器等源码
- 阅读APP开发的发展现状
- 首次采用存储程序控制使计算机自动工作,2017职称计算机考试题和答案
- 百胜图Barsetto自助咖啡机畅享咖啡新生活
- 2022年CSP-J组入门级初赛考试题目
- 【移动硬盘】Ubuntu20.04 移动硬盘不能访问
- 【目标检测实战学习】从零开始制作并训练自己的VOC数据集,并使用Retinanet进行目标检测
- MACBOOK 破解wifi密码