Skip to content

Commit e666cf8

Browse files
committed
Added RTL updates for Sunshine.
1 parent a7e613a commit e666cf8

5 files changed

Lines changed: 15 additions & 5 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
android:allowBackup="true"
3737
android:icon="@mipmap/ic_launcher"
3838
android:label="@string/app_name"
39-
android:theme="@style/AppTheme" >
39+
android:theme="@style/AppTheme"
40+
android:supportsRtl="true">
4041
<activity
4142
android:name=".MainActivity"
4243
android:theme="@style/ForecastTheme"

app/src/main/res/layout/fragment_detail.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<LinearLayout
2222
android:gravity="center_vertical"
23-
android:layout_gravity="left"
23+
android:layout_gravity="start"
2424
android:layout_height="wrap_content"
2525
android:layout_width="match_parent"
2626
android:orientation="vertical"
@@ -52,7 +52,7 @@
5252
android:orientation="horizontal">
5353

5454
<LinearLayout
55-
android:gravity="left"
55+
android:gravity="start"
5656
android:layout_height="wrap_content"
5757
android:layout_width="wrap_content"
5858
android:orientation="vertical">
@@ -98,6 +98,7 @@
9898
<LinearLayout
9999
android:layout_height="match_parent"
100100
android:layout_marginRight="0dp"
101+
android:layout_marginEnd="0dp"
101102
android:layout_marginTop="16dp"
102103
android:layout_width="match_parent"
103104
android:orientation="vertical">

app/src/main/res/layout/fragment_detail_wide.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<LinearLayout
5555
android:layout_height="wrap_content"
5656
android:layout_marginLeft="16dp"
57+
android:layout_marginStart="16dp"
5758
android:layout_width="wrap_content"
5859
android:orientation="vertical">
5960

@@ -68,6 +69,7 @@
6869
android:id="@+id/detail_low_textview"
6970
android:layout_height="wrap_content"
7071
android:layout_marginLeft="8dp"
72+
android:layout_marginStart="8dp"
7173
android:layout_width="wrap_content"
7274
android:textColor="@color/grey_700"
7375
android:textSize="48sp" />
@@ -102,6 +104,7 @@
102104
android:gravity="center_horizontal"
103105
android:layout_height="wrap_content"
104106
android:layout_marginLeft="16dp"
107+
android:layout_marginStart="16dp"
105108
android:layout_width="wrap_content"
106109
android:orientation="vertical">
107110

app/src/main/res/layout/fragment_main.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@
3131
android:layout_width="match_parent"
3232
android:layout_height="match_parent"
3333
android:gravity="center_horizontal"
34-
android:paddingLeft="@dimen/activity_horizontal_margin"
3534
android:paddingRight="@dimen/activity_horizontal_margin"
35+
android:paddingEnd="@dimen/activity_horizontal_margin"
36+
android:paddingLeft="@dimen/activity_horizontal_margin"
37+
android:paddingStart="@dimen/activity_horizontal_margin"
3638
android:paddingTop="@dimen/activity_vertical_margin"
3739
android:paddingBottom="@dimen/activity_vertical_margin"
3840
/>

app/src/main/res/layout/list_item_forecast_today.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
android:layout_marginTop="16dp"
3030
android:layout_marginBottom="16dp"
3131
android:layout_marginLeft="60dp"
32+
android:layout_marginStart="60dp"
3233
android:orientation="vertical">
3334

3435
<TextView
@@ -53,14 +54,16 @@
5354
android:layout_height="wrap_content"
5455
android:textColor="@color/white"
5556
android:textSize="36sp"
56-
android:layout_marginLeft="8dp"/>
57+
android:layout_marginLeft="8dp"
58+
android:layout_marginStart="8dp"/>
5759
</LinearLayout>
5860

5961
<LinearLayout
6062
android:layout_height="wrap_content"
6163
android:layout_width="0dp"
6264
android:layout_weight="5"
6365
android:layout_marginRight="16dp"
66+
android:layout_marginEnd="16dp"
6467
android:orientation="vertical"
6568
android:gravity="center_horizontal|bottom">
6669

0 commit comments

Comments
 (0)