有人知道这样的布局如何实现,要能自动适配屏幕的。
也就是顶部固定高度的LinearLayout,底部是一个LinearLayout,中间的ScrollView高度是自动适配的,就是中间的那个属性该要怎么设置?
想了好久没有想出来。有做UI的大侠知道一下嘛?
解决方案 »
- java获取adb命令返回信息问题
- 求一个tab导航样式的UI,高分跪求!
- 打开浏览器之后,在退出浏览器的时候弹出AlertDialog,怎么显示?
- dispatchKeyEvent问题
- 如何将PopupWindow的现实位置设置在某一组件下边?
- Android 为拨号盘定制DTMF的问题
- 真机不能访问,模拟机能够访问webservice程序
- 为什么总说我这个intent方法有错呢
- android中webservice的错误
- 请问android 的service 在手机休眠时不能正常运行,手机唤醒或者连接电源线时恢复正常,怎么解决呀
- 如何用微博账号登陆自己开发的应用
- android中可以增删条目的控件
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout
android:id="@+id/top"
android:background="#ff303030"
android:layout_width="fill_parent"
android:layout_height="50dp">
</LinearLayout><LinearLayout
android:id="@+id/bottom"
android:background="#ff303030"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true">
</LinearLayout>
<ScrollView
android:id="@+id/center"
android:background="#ffa0a0a0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/top"
android:layout_above="@+id/bottom"
></ScrollView>
</RelativeLayout>试试这个,是否符合需要~~