【发布时间】:2011-02-09 11:57:47
【问题描述】:
我有一个自定义对话框,在下面显示一些文本和图像。
文本由几行组成,尽管将所有 XML 布局的东西弄乱了数百万次,但底部的图像总是与文本的一半/部分重叠。如何调整它以使其在文本完成后出现在下方?
<ImageView android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
/>
<ScrollView android:id="@+id/ScrollView01"
android:layout_width="wrap_content"
android:layout_below="@+id/image"
android:layout_height="200px">
<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFF"
/>
</ScrollView>
<ImageView android:id="@+id/image2"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_centerHorizontal="true"
android1:layout_alignParentBottom="true"/>
项目在 RelativeLayout 设置中设置。
【问题讨论】:
-
如果你添加你的xml布局会更容易帮助你。
标签: java android xml layout dialog