【发布时间】:2014-12-30 18:18:58
【问题描述】:
我认为我在使用 LinearLayout 容器时遇到了一些问题。我不知道如何解决这些问题:
我是 XML 的初学者,但我认为问题出在第二个 LinearLayout 中。我希望有人可以帮助我。
代码如下:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical">
<TextView
android:layout_height="match_parent"
android:layout_width="match_parent"
/>
**<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
andriod:orientation="horizontal" >
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>**
<Button
android:layout_height="match_parent"
android:layout_width="match_parent"
/>
</LinearLayout>
【问题讨论】:
-
你根本没有描述你的问题......
-
我们需要知道您希望它如何布局(最好是图像)以及它是如何布局的(最好是屏幕截图)。我知道你还不能发布图片,所以只需链接到它们