Use ripple effect on API 21+
This commit is contained in:
8
app/src/main/res/drawable-v21/listitem_background.xml
Normal file
8
app/src/main/res/drawable-v21/listitem_background.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="?attr/colorControlHighlight">
|
||||
<item android:id="@android:id/mask">
|
||||
<color android:color="@android:color/white"/>
|
||||
</item>
|
||||
<item android:drawable="@drawable/listitem_background_selector"/>
|
||||
</ripple>
|
||||
@@ -1,8 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@color/listitem_selected" android:state_activated="true" />
|
||||
<item android:drawable="@color/listitem_selected" android:state_checked="true" />
|
||||
<item android:drawable="@color/listitem_selected" android:state_pressed="true" />
|
||||
<item android:drawable="@color/listitem_selected" android:state_activated="true"/>
|
||||
<item android:drawable="@color/listitem_selected" android:state_selected="true" />
|
||||
<item android:drawable="@android:color/transparent" />
|
||||
</selector>
|
||||
@@ -1,8 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@color/listitem_pressed" android:state_pressed="true" />
|
||||
<item android:drawable="@color/listitem_selected" android:state_activated="true" />
|
||||
<item android:drawable="@color/listitem_selected" android:state_activated="true"/>
|
||||
<item android:drawable="@color/listitem_selected" android:state_selected="true" />
|
||||
<item android:drawable="@android:color/transparent" />
|
||||
</selector>
|
||||
</selector>
|
||||
@@ -57,7 +57,7 @@
|
||||
android:id="@+id/address_book"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/folder_activated_background">
|
||||
android:background="@drawable/listitem_background">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -85,7 +85,7 @@
|
||||
android:id="@+id/network_status"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/folder_activated_background">
|
||||
android:background="@drawable/listitem_background">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/network_status_icon"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/listitem_height_three_lines"
|
||||
android:background="@drawable/listitem_checked">
|
||||
android:background="@drawable/listitem_background">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/contact_picture"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/folder_activated_background">
|
||||
android:background="@drawable/listitem_background">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/folder_name"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/folder_activated_background">
|
||||
android:background="@drawable/listitem_background">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/folder_icon"
|
||||
|
||||
@@ -12,6 +12,7 @@ And don't add newlines before or after p tags because of transifex -->
|
||||
<li>Email content can be seleted/copied (API 11+)</li>
|
||||
<li>Cc: and Bcc: fields</li>
|
||||
<li>Improved performance of email and contact lists</li>
|
||||
<li>Use ripple effect on API 21+</li>
|
||||
<li>Much better support for legacy devices</li>
|
||||
<li>Help and About screens</li>
|
||||
<li>UI improvements, bug fixes, translation updates</li>
|
||||
|
||||
4
app/src/main/res/values/refs.xml
Normal file
4
app/src/main/res/values/refs.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<item name="listitem_background" type="drawable">@drawable/listitem_background_selector</item>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user