[Android] Fix TextViews RTL support
Geoffrey Métais
git at videolan.org
Mon Feb 6 17:26:42 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 6 17:25:02 2017 +0100| [678871322ee14fd10939edfd684fc0906ae19033] | committer: Geoffrey Métais
Fix TextViews RTL support
> https://code.videolan.org/videolan/vlc-android/commit/678871322ee14fd10939edfd684fc0906ae19033
---
vlc-android/res/values/styles.xml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index 471de56..4e4ce84 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -4,6 +4,7 @@
<style name="Theme.VLC" parent="Theme.VLC.7"/>
<style name="Theme.VLC.7" parent="Theme.VLC.Apearance">
<item name="actionBarStyle">@style/ActionBar</item>
+ <item name="android:textViewStyle">@style/TextView</item>
<item name="windowActionBarOverlay">true</item>
<item name="drawerArrowStyle">@style/ActionBar.ArrowToggle</item>
</style>
@@ -96,6 +97,7 @@
<style name="Theme.VLC.Black.7" parent="Theme.VLC.Apearance.Black">
<item name="actionBarStyle">@style/ActionBar</item>
<item name="windowActionBarOverlay">true</item>
+ <item name="android:textViewStyle">@style/TextView</item>
<item name="drawerArrowStyle">@style/ActionBar.ArrowToggle</item>
</style>
@@ -246,6 +248,10 @@
<item name="list_title">@color/bt_list_title</item>
</style>
+ <style name="TextView" parent="android:Widget.TextView">
+ <item name="android:textDirection">locale</item>
+ </style>
+
<style name="ActionBar" parent="Widget.AppCompat.Light.ActionBar">
<item name="titleTextStyle">@style/ActionBar.Text</item>
</style>
More information about the Android
mailing list