summaryrefslogtreecommitdiff
path: root/Source/Android
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-11-14 13:39:15 -0500
committerLioncash <mathew1800@gmail.com>2014-11-15 01:45:12 -0500
commitcc62cb881806e31dd25e8cf49b2a06ee0944c423 (patch)
treea92ec70b08dfaa71ca9c90f90d7ccd12008207ba /Source/Android
parent4d6bc39e2fc3fcf12d9c1a5e88a452817b0804d3 (diff)
Android: Support RTL language translations
If someone wants to do a translation for an Arabic language, Hebrew, etc, it will now display correctly.
Diffstat (limited to 'Source/Android')
-rw-r--r--Source/Android/AndroidManifest.xml3
-rw-r--r--Source/Android/res/layout/about_layout.xml4
-rw-r--r--Source/Android/res/layout/folderbrowser_list_item.xml10
-rw-r--r--Source/Android/res/layout/gamelist_list_item.xml10
-rw-r--r--Source/Android/res/layout/sidemenu.xml2
5 files changed, 15 insertions, 14 deletions
diff --git a/Source/Android/AndroidManifest.xml b/Source/Android/AndroidManifest.xml
index 3877bac4b4..e1c08cf332 100644
--- a/Source/Android/AndroidManifest.xml
+++ b/Source/Android/AndroidManifest.xml
@@ -19,7 +19,8 @@
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
- android:allowBackup="true">
+ android:allowBackup="true"
+ android:supportsRtl="true">
<activity
android:name="org.dolphinemu.dolphinemu.gamelist.GameListActivity"
android:label="@string/app_name"
diff --git a/Source/Android/res/layout/about_layout.xml b/Source/Android/res/layout/about_layout.xml
index 9c5b84e9ed..b3110331a5 100644
--- a/Source/Android/res/layout/about_layout.xml
+++ b/Source/Android/res/layout/about_layout.xml
@@ -9,7 +9,7 @@
android:id="@+id/AboutItemTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginLeft="15dip"
+ android:layout_marginStart="15dip"
android:layout_marginTop="6dip"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium"/>
@@ -18,7 +18,7 @@
android:id="@+id/AboutItemSubTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginLeft="15dip"
+ android:layout_marginStart="15dip"
android:textAppearance="?android:attr/textAppearanceSmall"/>
</LinearLayout> \ No newline at end of file
diff --git a/Source/Android/res/layout/folderbrowser_list_item.xml b/Source/Android/res/layout/folderbrowser_list_item.xml
index 15877bb64a..318efc75ec 100644
--- a/Source/Android/res/layout/folderbrowser_list_item.xml
+++ b/Source/Android/res/layout/folderbrowser_list_item.xml
@@ -14,7 +14,7 @@
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
- android:layout_marginRight="6dip"/>
+ android:layout_marginEnd="6dip"/>
<!-- Properties in the 'tools' namespace are only visible in the UI editor, not at runtime. -->
<TextView tools:text="@string/file_size"
@@ -24,9 +24,9 @@
android:textColor="#bbbbbb"
- android:layout_toRightOf="@id/BrowserItemIcon"
+ android:layout_toEndOf="@id/BrowserItemIcon"
android:layout_alignParentBottom="true"
- android:layout_alignParentRight="true"
+ android:layout_alignParentEnd="true"
android:singleLine="true"
android:ellipsize="marquee"
@@ -45,8 +45,8 @@
android:singleLine="true"
android:ellipsize="end"
- android:layout_toRightOf="@id/BrowserItemIcon"
- android:layout_alignParentRight="true"
+ android:layout_toEndOf="@id/BrowserItemIcon"
+ android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:layout_above="@id/BrowserItemSubTitle"
android:layout_alignWithParentIfMissing="true"
diff --git a/Source/Android/res/layout/gamelist_list_item.xml b/Source/Android/res/layout/gamelist_list_item.xml
index 2d7c204d4d..c2d722c31c 100644
--- a/Source/Android/res/layout/gamelist_list_item.xml
+++ b/Source/Android/res/layout/gamelist_list_item.xml
@@ -14,7 +14,7 @@
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
- android:layout_marginRight="6dip"/>
+ android:layout_marginEnd="6dip"/>
<!-- Properties in the 'tools' namespace are only visible in the UI editor, not at runtime. -->
<TextView tools:text="@string/file_size"
@@ -24,9 +24,9 @@
android:textColor="#bbbbbb"
- android:layout_toRightOf="@id/GameListItemIcon"
+ android:layout_toEndOf="@id/GameListItemIcon"
android:layout_alignParentBottom="true"
- android:layout_alignParentRight="true"
+ android:layout_alignParentEnd="true"
android:singleLine="true"
android:ellipsize="marquee"
@@ -45,8 +45,8 @@
android:singleLine="true"
android:ellipsize="end"
- android:layout_toRightOf="@id/GameListItemIcon"
- android:layout_alignParentRight="true"
+ android:layout_toEndOf="@id/GameListItemIcon"
+ android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:layout_above="@id/GameListItemSubTitle"
android:layout_alignWithParentIfMissing="true"
diff --git a/Source/Android/res/layout/sidemenu.xml b/Source/Android/res/layout/sidemenu.xml
index f690232e8b..f844630928 100644
--- a/Source/Android/res/layout/sidemenu.xml
+++ b/Source/Android/res/layout/sidemenu.xml
@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="48dp"
- android:gravity="left"
+ android:gravity="start"
android:orientation="vertical" >
<TextView