У меня есть представление списка с двумя текстовыми метками и тремя кнопками изображения в каждой строке. Визуально, я хочу, чтобы каждый ряд выглядит следующим образом:Как создать элемент списка listview
Но я не могу получить эту работу в моем макете. Это то, что я сейчас делаю. Несмотря на то, что эти две метки отображаются нормально, кнопки не отображаются, как я хочу.
Вопрос
Как выровнять кнопки, как в макете?
<TextView
android:id="@+id/color_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="15dip"
android:paddingLeft="5dip"
android:paddingTop="15dip"
android:textColor="#000000"
android:textSize="16dip"
android:layout_toRightOf="@+id/track_no"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignLeft="@id/shade_count"
android:layout_below="@id/shade_count"
android:gravity="center_vertical"
android:orientation="horizontal" >
<TextView
android:id="@+id/shade_count"
style="@style/ListSubtitleText"
android:textColor="#ff868686"
android:layout_width="0dp"
android:layout_weight="1"
android:paddingLeft="5dip"
android:singleLine="true" />
</LinearLayout>
<ImageButton
android:id="@+id/star"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/star"/>
<ImageButton
android:id="@+id/share"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#000000"
android:src="@drawable/share"/>
<ImageButton
android:id="@+id/delete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/delete" />