Conversion to AppCompat drawable resource calls
Add compatibility prefix to layouts (app:srcCompat)
This commit is contained in:
parent
ca4e77a334
commit
d34590c158
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item>
|
||||
<shape android:shape="rectangle" android:padding="10dp" >
|
||||
<solid android:color="#D0000000"/>
|
||||
|
@ -8,7 +9,7 @@
|
|||
<item>
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:gravity="center"
|
||||
android:src="@drawable/menutile"
|
||||
app:srcCompat="@drawable/menutile"
|
||||
android:tileMode="repeat" />
|
||||
</item>
|
||||
</layer-list>
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
@ -160,7 +161,7 @@
|
|||
android:gravity="center_vertical" >
|
||||
|
||||
<ImageView
|
||||
android:src="@drawable/mic_icon"
|
||||
app:srcCompat="@drawable/mic_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_centerInParent="true"
|
||||
|
@ -221,7 +222,7 @@
|
|||
android:layout_height="48dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/controller_text_a"
|
||||
|
@ -303,7 +304,7 @@
|
|||
android:layout_height="48dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/controller_text_b"
|
||||
|
@ -385,7 +386,7 @@
|
|||
android:layout_height="48dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/controller_text_c"
|
||||
|
@ -467,7 +468,7 @@
|
|||
android:layout_height="48dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/controller_text_d"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
@ -153,7 +154,7 @@
|
|||
android:id="@+id/a_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/a_button_key"
|
||||
|
@ -204,7 +205,7 @@
|
|||
android:id="@+id/b_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/b_button_key"
|
||||
|
@ -255,7 +256,7 @@
|
|||
android:id="@+id/x_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/x_button_key"
|
||||
|
@ -306,7 +307,7 @@
|
|||
android:id="@+id/y_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/y_button_key"
|
||||
|
@ -357,7 +358,7 @@
|
|||
android:id="@+id/l_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/l_button_key"
|
||||
|
@ -408,7 +409,7 @@
|
|||
android:id="@+id/r_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/r_button_key"
|
||||
|
@ -611,7 +612,7 @@
|
|||
android:id="@+id/start_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/start_button_key"
|
||||
|
@ -662,7 +663,7 @@
|
|||
android:id="@+id/select_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/select_button_key"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/child_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
@ -29,7 +30,7 @@
|
|||
android:layout_marginRight="2dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/gdi" />
|
||||
app:srcCompat="@drawable/gdi" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/item_name"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/child_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -24,7 +25,7 @@
|
|||
android:layout_marginRight="6dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/gdi" />
|
||||
app:srcCompat="@drawable/gdi" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/item_name"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/change"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -23,7 +24,7 @@
|
|||
android:layout_width="60dip"
|
||||
android:layout_height="60dip"
|
||||
android:gravity="center"
|
||||
android:src="@drawable/ic_github" />
|
||||
app:srcCompat="@drawable/ic_github" />
|
||||
</LinearLayout>
|
||||
<!-- Main Commit Content -->
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -43,6 +44,6 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="cloudImg"
|
||||
android:src="@drawable/cloud_big" />
|
||||
app:srcCompat="@drawable/cloud_big" />
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/list_selector"
|
||||
|
@ -23,7 +24,7 @@
|
|||
android:layout_width="60dip"
|
||||
android:layout_height="60dip"
|
||||
android:gravity="center"
|
||||
android:src="@drawable/ic_launcher" />
|
||||
app:srcCompat="@drawable/ic_launcher" />
|
||||
</LinearLayout>
|
||||
<!-- Main Item Content -->
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/child_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
@ -29,7 +30,7 @@
|
|||
android:layout_marginRight="2dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/gdi" />
|
||||
app:srcCompat="@drawable/gdi" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/item_name"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
@ -160,7 +161,7 @@
|
|||
android:gravity="center_vertical" >
|
||||
|
||||
<ImageView
|
||||
android:src="@drawable/mic_icon"
|
||||
app:srcCompat="@drawable/mic_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_centerInParent="true"
|
||||
|
@ -221,7 +222,7 @@
|
|||
android:layout_height="48dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/controller_text_a"
|
||||
|
@ -303,7 +304,7 @@
|
|||
android:layout_height="48dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/controller_text_b"
|
||||
|
@ -385,7 +386,7 @@
|
|||
android:layout_height="48dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/controller_text_c"
|
||||
|
@ -467,7 +468,7 @@
|
|||
android:layout_height="48dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/controller_text_d"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
@ -153,7 +154,7 @@
|
|||
android:id="@+id/a_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/a_button_key"
|
||||
|
@ -204,7 +205,7 @@
|
|||
android:id="@+id/b_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/b_button_key"
|
||||
|
@ -255,7 +256,7 @@
|
|||
android:id="@+id/x_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/x_button_key"
|
||||
|
@ -306,7 +307,7 @@
|
|||
android:id="@+id/y_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/y_button_key"
|
||||
|
@ -357,7 +358,7 @@
|
|||
android:id="@+id/l_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/l_button_key"
|
||||
|
@ -408,7 +409,7 @@
|
|||
android:id="@+id/r_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/r_button_key"
|
||||
|
@ -611,7 +612,7 @@
|
|||
android:id="@+id/start_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/start_button_key"
|
||||
|
@ -662,7 +663,7 @@
|
|||
android:id="@+id/select_button_icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/input" />
|
||||
app:srcCompat="@drawable/input" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/select_button_key"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/drawer_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
@ -34,13 +34,13 @@
|
|||
android:id="@+id/header_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/ic_drawer" />
|
||||
app:srcCompat="@drawable/ic_drawer" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/header_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/ic_launcher" />
|
||||
app:srcCompat="@drawable/ic_launcher" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
|
Loading…
Reference in New Issue