<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" > <TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Here is ffdsadasfadsfasdrvey result........" /> <LinearLayout
android:id="@+id/layout2"
android:layout_width="match_parent"
android:layout_height="800dp"
android:orientation="vertical"
android:background="@color/white">
</LinearLayout></LinearLayout>
这个XML文件对应一个AlertDialog的派生类,
当android:layout_height="800dp"为android:layout_height="match_parent"的效果如下:当为android:layout_height="800dp"时,效果如下:现在为不想android:layout_height="800dp"这样设置,我想要layout2自动填充除了textView1的剩余区域。汝之奈何????
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" > <TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Here is ffdsadasfadsfasdrvey result........" /> <LinearLayout
android:id="@+id/layout2"
android:layout_width="match_parent"
android:layout_height="800dp"
android:orientation="vertical"
android:background="@color/white">
</LinearLayout></LinearLayout>
这个XML文件对应一个AlertDialog的派生类,
当android:layout_height="800dp"为android:layout_height="match_parent"的效果如下:当为android:layout_height="800dp"时,效果如下:现在为不想android:layout_height="800dp"这样设置,我想要layout2自动填充除了textView1的剩余区域。汝之奈何????
解决方案 »
- android4.0 如何全屏显示
- android怎么实现后台对按键(KeyDown)事件的监控?
- Activity界面 刷新 状态提示,在线等
- 急急急急急,先谢谢大家了,android开发中怎么如何嵌入flash?
- 新浪微博、腾讯微博android上是采用的什么布局格式
- android 画图问题
- 高分 请熟悉getContentResolver的朋友帮我看一段异常代码!!
- android 反转字符串
- 长连接消息推送如何实现
- win7下的Android studio工程文件在Ubuntu下无法正常安装的问题
- android开发中如何定义一个不规则边界的控件
- android程序运行一段时间后挂掉
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="fill_parent" //这里
android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Here is ffdsadasfadsfasdrvey result........" />
<LinearLayout
<span style="color: #FF00FF;">android:id="@+id/layout2"</span>
android:layout_width="match_parent"
android:layout_height="fill_parent" //这里
android:orientation="vertical"
android:background="@color/white">
</LinearLayout>
</LinearLayout>
看错了。原来是要设置dialog。