Use resource alias for launcher icon on API 21-25

This commit is contained in:
topjohnwu 2018-12-28 05:29:28 +08:00
parent 496b22026f
commit e6942e0122
4 changed files with 6 additions and 2 deletions

View File

@ -39,7 +39,7 @@
android:padding="16dp"> android:padding="16dp">
<ImageView <ImageView
app:srcCompat="@drawable/ic_launcher" app:srcCompat="@drawable/ic_logo"
android:layout_width="72dp" android:layout_width="72dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="center_vertical" /> android:layout_gravity="center_vertical" />

View File

@ -343,7 +343,7 @@
android:layout_alignParentStart="true" android:layout_alignParentStart="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginEnd="5dp" android:layout_marginEnd="5dp"
app:srcCompat="@drawable/ic_launcher" /> app:srcCompat="@drawable/ic_logo" />
<TextView <TextView
android:id="@+id/install_text" android:id="@+id/install_text"

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<drawable name="ic_launcher">@drawable/ic_logo</drawable>
</resources>