android实现顶部底部固定 中间可滑动
2012-07-04 15:49
555 查看
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" > <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" /> </LinearLayout> <ListView android:id="@+id/listView1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@id/bottom" android:layout_below="@id/linearLayout1" > </ListView> <LinearLayout android:id="@+id/bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" > <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" /> </LinearLayout> </RelativeLayout> </LinearLayout>
相关文章推荐
- android ScrollView 固定顶部、底部 滑动中间部分
- Android界面,固定顶部、底部导航。中间可滑动
- Android模仿实现微博详情页滑动固定顶部栏的效果实例
- android窗体动画:activity启动从底部向上滑动出现,关闭的时候从顶部向下滑动消失的动画实现【转】
- android窗体动画:activity启动从底部向上滑动出现,关闭的时候从顶部向下滑动消失的动画实现
- android窗体动画:activity启动从底部向上滑动出现,关闭的时候从顶部向下滑动消失的动画实现
- Android实现弹出输入法时顶部固定中间部分上移的效果
- Android实现弹出输入法时,顶部固定,中间部分上移的效果
- android窗体动画:activity启动从底部向上滑动出现,关闭的时候从顶部向下滑动消失的动画实现
- Android实现弹出输入法时,顶部固定,中间部分上移的效果
- Android TabLayout、ViewPager实现顶部和底部Tab导航 点击滑动切换Tab页面
- Activity启动从底部向上滑动出现,关闭的时候从顶部向下滑动消失的动画实现---Android提高篇
- android里,addContentView()动态增加view控件,并实现控件的顶部,中间,底部布局
- android里,addContentView()动态增加view控件,并实现控件的顶部,中间,底部布局
- Android中判断listview是否滑动到顶部和底部的实现方法
- Android实现弹出输入法时,顶部固定,中间部分上移的效果
- Android实现弹出输入法时,顶部固定,中间部分上移的效果
- 【Android UI设计与开发】第15期:顶部标题栏(六)实现悬浮式顶部和底部标题栏效果
- Android——UI篇:使用pinnedheaderlistview实现联系人头部滑动到顶部定住的功能
- Android开发实现 回到底部和返回顶部(其一)