- 浏览: 497938 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (200)
- java基础 (30)
- ajax (19)
- 乱写 (5)
- groovy (2)
- db (8)
- gwt (0)
- jee (2)
- 我关注的开源 (1)
- RIA AIR (1)
- spring (11)
- lucene (0)
- 工具 (10)
- 百科 (2)
- linux (6)
- android (40)
- 移动开发 (21)
- 代码片断 (15)
- tomcat (1)
- css (1)
- html5 (2)
- jquery (2)
- playframework (3)
- web (2)
- nio (3)
- design (1)
- nosql (3)
- 日志 (12)
- mysql (4)
- 图表 (1)
- python (3)
- ruby (1)
- git (0)
- hibernate (1)
- springboot (1)
- guava (1)
- mybatis (0)
- 工作问题 (3)
- php (1)
最新评论
-
linzm1990:
踩了很多坑啊。。。。
hibernate @Nofound 与@ManyToOne fetch lazy的问题 -
Ccccrrrrrr:
...
转: Spring boot 文件上传 -
rmzdb:
兄弟,你这个东西,在ie内核的浏览器,貌似不识别 文件名
工作问题:http下载文件,中文文件名在firefox下乱码问题 -
107x:
问题解决了,谢谢!
工作问题:http下载文件,中文文件名在firefox下乱码问题 -
klxqljq:
额鹅鹅鹅
android布局实现头尾固定, 中间多余内容可以滚动
要实现
也就是布局中头尾固定, 中间多余的内容可以滚动. 其实很简单, 也就是应用margins的一点小技巧.
ScrollView 要用正数给layout_marginBottom, 在ScrollView下面的元素要用负责数layout_marginTop.
具体参见下面的例子:
也就是布局中头尾固定, 中间多余的内容可以滚动. 其实很简单, 也就是应用margins的一点小技巧.
ScrollView 要用正数给layout_marginBottom, 在ScrollView下面的元素要用负责数layout_marginTop.
具体参见下面的例子:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_height="wrap_content" android:layout_width="fill_parent"> <TextView android:id="@+id/TextView01" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="This text view should act as header " /> <ScrollView android:layout_marginBottom="50dip" android:id="@+id/ScrollView01" android:layout_height="wrap_content" android:layout_width="fill_parent"> <RadioGroup android:id="@+id/RadioGroup01" android:layout_width="wrap_content" android:layout_height="wrap_content"> <RadioButton android:id="@+id/RadioButton01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> <RadioButton android:id="@+id/RadioButton11" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Radio Button....." /> </RadioGroup> </ScrollView> <RelativeLayout android:layout_marginTop="-50dip" android:gravity="bottom" android:layout_height="wrap_content" android:layout_width="fill_parent"> <Button android:id="@+id/Button01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:text="A button that should always be at the bottom"/> </RelativeLayout> </LinearLayout>
评论
3 楼
klxqljq
2014-05-29
- 额鹅鹅鹅
2 楼
klxqljq
2014-05-29
1 楼
klxqljq
2014-05-29
[list][list] [*][list] [*][*][list] [*][*][*][list] [*][*][*][*][list] [*][*][*][*][*][list] [*][*][*][*][*][*][list] [*][*][*][*][*][*][*][list] [*][*][*][*][*][*][*][*][list] [*][*][*][*][*][*][*][*][*][list] [*][*][*][*][*][*][[*][*][*][list] [*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][*][/list] [*][*][*][*][*][*][*][*][*][/list] [*][*][*][*][*][*][*][*][/list] [*][*][*][*][*][*][*][/list] [*][*][*][*][*][*][/list] [*][*][*][*][*][/list] [*][*][*][*][/list] [*][*][*][/list] [*][*][/list] [*][/list] [/list] [/list]
*]
发表评论
-
米聊所采用的一些技术
2012-01-31 09:52 2042nginx upstream fallback 设置 up ... -
演化理解 Android 异步加载图片
2011-11-09 09:55 860LinearLayout 布局,其下放了5个ImageView ... -
dialog,activity 屏蔽Home键详解
2011-11-03 09:39 0http://www.iteye.com/topic/1116 ... -
android SlidingDrawer example
2011-11-03 09:35 0http://disanji.net/2010/12/16/a ... -
play flash swf file in android with webview
2011-11-03 09:34 0http://androidforums.com/applic ... -
AnimationDrawable 在Dialog中不能动画的原因(转)
2011-11-03 09:33 1263原来在dialog的onCreate onStart调用的时候 ... -
Free Android UI library & component roundup
2011-11-03 09:27 1113http://java.dzone.com/articles/ ... -
Android Fundamentals: Scheduling Recurring Tasks
2011-11-03 09:26 946http://mobile.tutsplus.com/tuto ... -
Android ListView pull up to refresh 改造(转)
2011-11-03 09:25 2061转自: http://dengyin2000.iteye.co ... -
view的setTag() 和 getTag()应用
2011-10-31 12:19 29883View中的setTag(Onbect)表示给View添加一个 ... -
使用getIdentifier()获取资源Id
2011-10-31 12:15 8383使用getIdentifier()获取资源Id int i ... -
ListView的长按菜单___源码分析
2011-10-24 09:28 2562ListView的长按菜单___源码分析 Android的l ... -
让你的Android程序兼容多种分辨率
2011-10-24 09:20 989http://www.android123.com.cn/an ... -
andr菜单
2011-10-24 09:18 1167Android 菜单 菜单分为两种:系统菜单和上下文菜单。 ... -
Android 长按显示上下文菜单代码
2011-10-24 09:14 5888Android 长按显示上下文 ... -
Android线程优先级设置方法
2011-08-19 10:14 1067对于Android平台上的线程优先级设置来说可以处理很多并发线 ... -
android.resource://这个Uri
2011-08-19 10:11 1257如何访问平时APK文件Res目录下的内容呢? 如果直接访问Ap ... -
GestureDetector
2011-08-17 22:22 0http://edison-cool911.iteye.com ... -
强制保持Android Activity状态
2011-08-17 22:15 2130有的时候我们的Android在应用运行时,可能需要临时退出,比 ... -
Android缩略图类源代码
2011-08-17 22:00 1391Android 2.2开始新增的缩略图类ThumbnailUt ...
相关推荐
相信做过后台管理界面的同学,都非常清楚这个布局。最直观的方式是框架这个我不想多写费话,因为我们的重心不在这里。如果有不了解的同学可以百度、google。这里我不得不吐下槽!!百度实在让我这个“粉丝”失望。就...
Android RecycleView 任意头尾布局 拖拽换位 拖拽删除demo
先上效果图可能会更明了些: 左右滚动时,两列固定,头尾中间部分跟着滚动。 上下滚动时,头尾固定,第一列和最后一列中间部分跟着滚动。 思路: 思考了很久发现,如果单纯的用表格基本很难实现,上下滚动的...
Android RecycleView+任意头尾布局+拖拽换位+拖拽删除demo
本文档实现了css3盒子模型头尾固定的功能。 1 头部固定高度,宽度100%自适应父容器; 2 底部固定高度,宽度100%自适应父容器; 3 中间是主体部分,自动填满,浏览器可视区域剩余部分,内容超出则中间部分出现流动...
js文字滚动特效,到头尾停止,基于jquery4.1以上
Android RecycleView+任意头尾布局+拖拽换位+拖拽删除demo Android sql练习合集 Android 仿12306 Android 优秀计步器 Android 体重计算源码 Android 使用Gallery_tabhost实现标签效果图源码 Android 例子源码根据CPU...
c#的自定义函数getSubString,用于获取字符串中指定头尾间的内容的函数。 用法: astr="文字范例:我是头我是身子我是尾结束"; getSubString(astr,"我是头","我是尾"); //返回: 我是身子 getSubString(astr,"我是头...
C语言实现广义表的头尾链表存储表示
主要关于RecyclerView的介绍,简单使用,添加分割线,流式布局,长按拖拽,侧滑删除等.广播和服务的简单练习.
Android端操作读取excel表格内容生成html5并提交到打印机,要求必须适配A4纸的大小,并且打印出来的内容每页必须有固定的表头和表尾。
c#的自定义函数getSubStringLoop2ArrayList,用于循环获取字符串中指定头尾间的内容的函数。是getSubString的增强版。 用法: string astr="文字范例:我是头我是身子1我是尾,我是头我是身子2我是尾,我是头我是...
绝对好用 部分代码如下: <script> var speed=30 demo2.innerHTML=demo1.innerHTML function Marquee(){ if(demo2.offsetTop-
666-弹性盒+固定头尾.html
RecycleView+任意头尾布局+拖拽换位+拖拽删除demo Forty'7
listview展示的新闻类,上拉加载下拉刷新+本地缓存+简单的头尾布局
纯代码实现边框滚动如gif图片边框一样,如百度编辑器最下方合作部分的边框相同。http://ueditor.baidu.com/website/ 本代码含头尾共60行。用极少的代码实现了相当NB的效果