Use compound drawable in About dialog.

This commit is contained in:
Isira Seneviratne 2020-07-05 08:04:36 +05:30
parent e2163f6f53
commit 8c0ba89455
1 changed files with 12 additions and 28 deletions

View File

@ -22,37 +22,21 @@
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
<TextView
android:id="@+id/title"
style="@style/ActionBarDayNight"
android:layout_width="fill_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:padding="10dp"
android:layout_marginBottom="10dp"
android:gravity="center_vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_baseline_info_white"
android:background="@android:color/transparent"
android:contentDescription="@string/menu_about"/>
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:background="@android:color/transparent"
android:singleLine="true"
android:text="@string/about_title"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@android:color/white"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
android:singleLine="true"
android:text="@string/about_title"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@android:color/white"
android:textSize="20sp"
android:textStyle="bold"
app:drawableLeftCompat="@drawable/ic_baseline_info_white"
app:drawableStartCompat="@drawable/ic_baseline_info_white" />
<TextView
android:layout_width="fill_parent"