У меня есть 3 'группы' элементов в моем макете:Android: Схема выравнивания
Button
+TextView
(должно быть на правой стороне)ImageView
+ImageView
+TextView
(должно быть в центре)TextView
+Button
(должна быть слева)
Это как обув тер для планшета. Но все мои предметы рядом друг с другом, начиная с левой стороны. Я пробовал группировать их для разметки макетов, но это не помогает.
Вот мой код:
<LinearLayout
android:id="@+id/footer"
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal"
android:layout_gravity="bottom"
android:background="@android:color/black">
<Button
android:background="@drawable/arrow_left"
android:layout_width="50dp"
android:layout_height="match_parent"
android:id="@+id/footer_left_arrow"
android:layout_margin="10dp"/>
<TextView
android:text="text"
android:textColor="#FFFFFF"
android:textSize="20sp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/footer_left_text"/>
<ImageView
android:background="@drawable/logo"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:layout_width="50dp"
android:layout_height="20dp"
android:layout_gravity="center"/>
<ImageView
android:background="@drawable/footer_vertical_line"
android:layout_margin="5dp"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
<TextView
android:text="text"
android:textColor="#FFFFFF"
android:textSize="12sp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center" />
<TextView
android:text="text"
android:textColor="#FFFFFF"
android:textSize="20sp"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
<Button
android:background="@drawable/arrow_right"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_margin="10dp" />
</LinearLayout>
Можете ли вы опубликовать свой ожидаемый результат и смородины! –