我有一个有 3 个按钮的布局。我想为每个图像视图定位两个文本视图。我怎样才能实现这个布局?AbsoluteLayout 是否足以满足我的需求?
这是我的布局部分。
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:layout_gravity="center_horizontal"
android:weightSum="2" >
<ImageView
android:id="@+id/btn1"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/gray" />
<ImageView
android:id="@+id/btn2"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/gray" />
<ImageView
android:id="@+id/btn3"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/gray" />
</LinearLayout>
我想实现这个布局。框是图像视图。 一只忙碌的猫 http://img824.imageshack.us/img824/2385/layoutrq.jpg