Simplify layouts - [1/2]
This commit is contained in:
@@ -22,33 +22,22 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/padding_medium"
|
||||
android:paddingTop="@dimen/padding_xsmall"
|
||||
android:paddingEnd="@dimen/padding_small"
|
||||
android:paddingBottom="@dimen/padding_xsmall">
|
||||
|
||||
<LinearLayout
|
||||
<TextView
|
||||
android:id="@+id/txt_title"
|
||||
style="@style/AuroraTextStyle.Subtitle.Alt"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginTop="@dimen/margin_small"
|
||||
android:layout_toStartOf="@id/img_action"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<View
|
||||
android:layout_width="4dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="@dimen/padding_normal"
|
||||
android:background="?colorAccent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_title"
|
||||
style="@style/AuroraTextStyle.Subtitle.Alt"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/padding_normal"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="1"
|
||||
tools:text="Header" />
|
||||
</LinearLayout>
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
tools:text="Header" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/img_action"
|
||||
@@ -58,8 +47,8 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="@dimen/margin_small"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:padding="@dimen/padding_xsmall"
|
||||
android:contentDescription="@string/expand"
|
||||
android:padding="@dimen/padding_xsmall"
|
||||
app:srcCompat="@drawable/ic_arrow_right"
|
||||
app:tint="?android:textColorPrimary" />
|
||||
</RelativeLayout>
|
||||
|
||||
Reference in New Issue
Block a user