diff options
author | Alan Viverette <alanv@google.com> | 2015-05-07 14:02:28 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2015-05-07 14:02:28 -0700 |
commit | 9feb4e0d9155c09560f0cf3ec5d5b95c03672739 (patch) | |
tree | 1c843a4d00ab24ee25fa427378e24e6ac9d34441 /core | |
parent | 83ce3b26b612d729cb4ec195b88bc070094cda39 (diff) | |
download | frameworks_base-9feb4e0d9155c09560f0cf3ec5d5b95c03672739.zip frameworks_base-9feb4e0d9155c09560f0cf3ec5d5b95c03672739.tar.gz frameworks_base-9feb4e0d9155c09560f0cf3ec5d5b95c03672739.tar.bz2 |
Replace Material text cursor with XML shape
Bug: 20754494
Change-Id: Ide1c9d7f37863a1ee88b69b5e7f478c124bb7eae
Diffstat (limited to 'core')
-rw-r--r-- | core/res/res/drawable-hdpi/text_cursor_mtrl_alpha.9.png | bin | 108 -> 0 bytes | |||
-rw-r--r-- | core/res/res/drawable-mdpi/text_cursor_mtrl_alpha.9.png | bin | 106 -> 0 bytes | |||
-rw-r--r-- | core/res/res/drawable-xhdpi/text_cursor_mtrl_alpha.9.png | bin | 105 -> 0 bytes | |||
-rw-r--r-- | core/res/res/drawable-xxhdpi/text_cursor_mtrl_alpha.9.png | bin | 134 -> 0 bytes | |||
-rw-r--r-- | core/res/res/drawable/text_cursor_material.xml | 15 |
5 files changed, 12 insertions, 3 deletions
diff --git a/core/res/res/drawable-hdpi/text_cursor_mtrl_alpha.9.png b/core/res/res/drawable-hdpi/text_cursor_mtrl_alpha.9.png Binary files differdeleted file mode 100644 index 0179433..0000000 --- a/core/res/res/drawable-hdpi/text_cursor_mtrl_alpha.9.png +++ /dev/null diff --git a/core/res/res/drawable-mdpi/text_cursor_mtrl_alpha.9.png b/core/res/res/drawable-mdpi/text_cursor_mtrl_alpha.9.png Binary files differdeleted file mode 100644 index e5760be..0000000 --- a/core/res/res/drawable-mdpi/text_cursor_mtrl_alpha.9.png +++ /dev/null diff --git a/core/res/res/drawable-xhdpi/text_cursor_mtrl_alpha.9.png b/core/res/res/drawable-xhdpi/text_cursor_mtrl_alpha.9.png Binary files differdeleted file mode 100644 index 3939214..0000000 --- a/core/res/res/drawable-xhdpi/text_cursor_mtrl_alpha.9.png +++ /dev/null diff --git a/core/res/res/drawable-xxhdpi/text_cursor_mtrl_alpha.9.png b/core/res/res/drawable-xxhdpi/text_cursor_mtrl_alpha.9.png Binary files differdeleted file mode 100644 index 432c385..0000000 --- a/core/res/res/drawable-xxhdpi/text_cursor_mtrl_alpha.9.png +++ /dev/null diff --git a/core/res/res/drawable/text_cursor_material.xml b/core/res/res/drawable/text_cursor_material.xml index a350c47..0bedaa9 100644 --- a/core/res/res/drawable/text_cursor_material.xml +++ b/core/res/res/drawable/text_cursor_material.xml @@ -14,6 +14,15 @@ limitations under the License. --> -<nine-patch xmlns:android="http://schemas.android.com/apk/res/android" - android:src="@drawable/text_cursor_mtrl_alpha" - android:tint="?attr/colorControlActivated" /> +<inset xmlns:android="http://schemas.android.com/apk/res/android" + android:inset="2dp"> + <shape + android:tint="?attr/colorControlActivated" + android:shape="rectangle"> + <size + android:height="2dp" + android:width="2dp" /> + <solid + android:color="@color/white" /> + </shape> +</inset> |