I have 3 'groups' of items in my layout:
Button
+TextView
(should be on the right side)ImageView
+ImageView
+TextView
(should be in center)TextView
+Button
(should be on the left side)
It's like a footer for tablet. But all my items are next to each other starting from left side. I tried grouping them to separate layouts but it doesn't help.
Here is my code:
<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>