[Android] White cursor for search in Toolbar

Geoffrey Métais git at videolan.org
Thu Mar 12 11:55:05 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Mar 12 11:54:39 2015 +0100| [d294770ee6032c500846860ccd81c0ae999d63a3] | committer: Geoffrey Métais

White cursor for search in Toolbar

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=d294770ee6032c500846860ccd81c0ae999d63a3
---

 vlc-android/res/drawable/cursor_w.xml |    6 ++++++
 vlc-android/res/layout/toolbar.xml    |    2 +-
 vlc-android/res/values-v14/styles.xml |    6 ++++++
 vlc-android/res/values/styles.xml     |    2 ++
 4 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/drawable/cursor_w.xml b/vlc-android/res/drawable/cursor_w.xml
new file mode 100644
index 0000000..5e8e9fe
--- /dev/null
+++ b/vlc-android/res/drawable/cursor_w.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+    android:shape="rectangle" >
+    <solid android:color="#FFFFFF" />
+    <size android:width="1dp" />
+</shape>
\ No newline at end of file
diff --git a/vlc-android/res/layout/toolbar.xml b/vlc-android/res/layout/toolbar.xml
index eff8050..8f954b4 100644
--- a/vlc-android/res/layout/toolbar.xml
+++ b/vlc-android/res/layout/toolbar.xml
@@ -6,7 +6,7 @@
     android:layout_width="match_parent"
     android:layout_height="?attr/actionBarSize"
     app:navigationContentDescription="@string/abc_action_bar_up_description"
-    app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
+    app:theme="@style/Toolbar.VLC"
     app:popupTheme="?attr/toolbar_popup_style"
     android:background="?attr/background_actionbar"
     app:navigationIcon="?attr/homeAsUpIndicator"/>
\ No newline at end of file
diff --git a/vlc-android/res/values-v14/styles.xml b/vlc-android/res/values-v14/styles.xml
new file mode 100644
index 0000000..5f05270
--- /dev/null
+++ b/vlc-android/res/values-v14/styles.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
+    <style name="Toolbar.VLC" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
+        <item name="android:textCursorDrawable">@drawable/cursor_w</item>
+    </style>
+</resources>
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index e9b07c6..838a36c 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -187,6 +187,8 @@
         <item name="color">@color/white</item>
     </style>
 
+    <style name="Toolbar.VLC" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
+
     <!-- Advanced options menu styles -->
 
     <style name="Theme.VLC.TransparentDialog" parent="@style/Theme.AppCompat.Dialog">



More information about the Android mailing list