Я пытаюсь использовать XML для создания пользовательского интерфейса, который выглядит следующим образом.Android - Как создать строки между linearlayouts
Кнопка «Синий галочка» и «Текстовое изображение» выровнены с LinearLayout, расположенным вертикально, поэтому в Relative Layout имеется в общей сложности 3 LinearLayouts. Теперь мне нужно добавить строку, которая находится между каждой кнопкой тика, с выравниванием, которое выглядит так.
изображение выглядит следующим образом:
Что раскладка я могу идти об использовании для достижения этой цели?
Это мой текущий код: (РАСТВОР)
Я изменил свое решение, основанное на условии решения @Piyush Гупты! Спасибо всем за помощь!
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp" >
<LinearLayout
android:id="@+id/linearlayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:weightSum="3" >
<ImageButton
android:id="@+id/button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/button" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="1dp"
android:layout_weight="1"
android:background="#000"
android:src="@android:color/transparent" />
<ImageButton
android:id="@+id/button02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/button" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="1dp"
android:layout_weight="1"
android:background="#000"
android:src="@android:color/transparent" />
<ImageButton
android:id="@+id/button03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/button" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearlayout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/linearlayout1"
android:orientation="horizontal" >
<TextView
android:id="@+id/textView1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:gravity="left"
android:text="TextView" />
<TextView
android:id="@+id/textView2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:gravity="center"
android:text="TextView" />
<TextView
android:id="@+id/textView3"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:gravity="right"
android:text="TextView" />
</LinearLayout>
</RelativeLayout>
Спасибо за помощь! – cokeby190