我有一个相对复杂的布局,我想成为Android中ListView的“行”,但是我很难让最右边的元素显示在每一行上.
该行应如下所示:
左侧有一个图标(50dip x 50dip),右侧有一个图标(9 x 13).图标应左右对齐,中间带有可变文本.
问题是使用我当前的XML布局将我最右边的图标(9 x 13)推离可见区域,而我尝试的修复全部失败.
建议?
![替代文字] [1]
[1]:
android:layout_width="fill_parent" android:padding="5dip">
android:gravity="center" android:layout_width="fill_parent"
android:layout_height="60dip">
android:layout_width="fill_parent" android:minHeight="55dip"
android:padding="5dip" android:layout_height="fill_parent">
android:layout_height="50dip" android:layout_marginRight="6dip" />
android:id="@+id/ttt" android:textSize="18sp" android:gravity="center_vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent" />
android:layout_width="fill_parent" android:id="@+id/disclosure" />