0

I have two languages in my app, English and Urdu. When the language is changed to Urdu home up button changes its direction like this:

enter image description here

Please help me how can I fix this issue. I want arrow direction to be on left side

SurvivalMachine
  • 7,946
  • 15
  • 57
  • 87
FaisalAhmed
  • 3,469
  • 7
  • 46
  • 76
  • What is your home button? The arrow? It might change direction if Left to Right and Right to Left Layouts have been implemented. Check this by going to developer options and enable RTL Layouts. If that is the case then disable RTL changes. – Abbas Sep 01 '16 at 13:27
  • yes arrow is home button – FaisalAhmed Sep 01 '16 at 13:31
  • Then simply disable RTL layouts, your problem should be resolved. – Abbas Sep 01 '16 at 15:17

2 Answers2

0

To support right to left screen layout, you have to android:supportsRtl="true" line in your manifest.xml For example:

<application
        android:name=".Application"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
>

After writing this tag, the arrow button will appear on the right and other icons on the left.

For more information, see this post.

Community
  • 1
  • 1
Faraz
  • 2,144
  • 1
  • 18
  • 28
  • I dont want to sift all icon left side , I just want to sift the arrow direction to left – FaisalAhmed Sep 01 '16 at 13:37
  • Try setting it to false. But I recommend you change your screen layout according to the language being used. – Faraz Sep 01 '16 at 13:38
  • Its looks very bed .. all setting icons appears on left and app name on right side – FaisalAhmed Sep 01 '16 at 13:49
  • Yes, Its absolutely fine. If you do **Urdu localization**, the app name and other text will displayed from the right. And this will be good user experience. – Faraz Sep 01 '16 at 14:04
0

There is not issue and supportsRtl. Because if

android:supportsRtl="true"

then view display from right-hand-side.

If false then it'll display as it is.

Can i have your manifest application tag and style which used there?

ViramP
  • 1,659
  • 11
  • 11