如题,我需要把屏幕分成4部分。每一部分中都有一个ListView,做了很多次都是错误~
希望大侠们~~帮帮我呀~~最好把代码贴出来~~
希望大侠们~~帮帮我呀~~最好把代码贴出来~~
解决方案 »
- 各位路过的神仙佛祖们,悟空有一问题实在不解,恳求神仙们赐教一二。想用这个setBackgroundResource引用背景的XML文件,无效果啊。
- Android API版本问题(sdk)
- 电池电量是怎么一层层读取的
- 求高手推荐几本Android开发的经典教材
- appwidget
- android xml 怎么设置版本最低和最高!
- 跳过确认界面后台安装apk
- android源码编译问题
- android 反射调用API中@hide的方法失败,请大神指教
- eclipse中较新版本的adt中的layout editor是不是只有一种视图模式了
- 期待高手:关于SQLite创建数据库,查看数据库权限问题
- Android图形界面的分辨率为什么和lcd的分辨率不一样
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<LinearLayout
android:id="@+id/linear1"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="fisrt line"
android:background="#00aa00"
/>
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#0000aa"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/linear2"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_margin="@id/linear1"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="second line"
android:background="#00aa00"
/>
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#0000aa"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/linear3"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_margin="@id/linear2"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="third line"
android:background="#00aa00"
/>
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#0000aa"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/linear4"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_margin="@id/linear3"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="fourth line"
android:background="#00aa00"
/>
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#0000aa"
/>
</LinearLayout>
</LinearLayout>结贴是种美德