Skip to content

Commit 43edbb8

Browse files
author
Yasin Arslan
committed
add arabic text to see fit option view in rtl mode
1 parent 65bfb34 commit 43edbb8

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

sample/src/main/res/layout/activity_fit_option_message.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@
4242
android:layout_gravity="center"
4343
android:background="@drawable/rounded_corner"
4444
android:fontFamily="sans-serif-medium"
45+
android:layoutDirection="locale"
4546
android:paddingHorizontal="12dp"
4647
android:paddingVertical="16dp"
47-
android:text="Test test, test test! Test"
48+
android:text="@string/fit_option_message_view_test_message"
4849
android:textColor="#333333"
4950
android:textSize="12sp"
5051
android:textStyle="normal" />
@@ -72,9 +73,10 @@
7273
android:layout_gravity="center"
7374
android:background="@drawable/rounded_corner"
7475
android:fontFamily="sans-serif-medium"
76+
android:layoutDirection="locale"
7577
android:paddingHorizontal="2dp"
7678
android:paddingVertical="16dp"
77-
android:text="Test test, test test! Test"
79+
android:text="@string/fit_option_message_view_test_message"
7880
android:textColor="#333333"
7981
android:textSize="12sp"
8082
android:textStyle="normal" />
@@ -100,9 +102,10 @@
100102
android:layout_gravity="center"
101103
android:background="@drawable/rounded_corner"
102104
android:fontFamily="sans-serif-medium"
105+
android:layoutDirection="locale"
103106
android:paddingHorizontal="12dp"
104107
android:paddingVertical="16dp"
105-
android:text="Test test, test test! Test"
108+
android:text="@string/fit_option_message_view_test_message"
106109
android:textColor="#333333"
107110
android:textSize="12sp"
108111
android:textStyle="normal" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<resources>
2+
<string name="fit_option_message_view_test_message">يوصي معظم المستخدمين بشراء المنتج بحجمك الخاص.</string>
3+
</resources>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<resources>
2-
<string name="app_name">UI Components</string>
2+
<string name="app_name" translatable="false">UI Components</string>
3+
<string name="fit_option_message_view_test_message">Most users recommend buying the product in your own size.</string>
34
</resources>

0 commit comments

Comments
 (0)