Use ripple effect on API 21+

This commit is contained in:
str4d
2015-01-08 12:52:39 +00:00
parent ef20d5ffaa
commit 2e560df957
10 changed files with 22 additions and 11 deletions

View File

@@ -3,6 +3,7 @@
* Email content can be seleted/copied (API 11+)
* Cc: and Bcc: fields
* Improved performance of email and contact lists
* Use ripple effect on API 21+
* Much better support for legacy devices
* Help and About screens
* UI improvements, bug fixes, translation updates

View 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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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>

View 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>