title: Disable auto change layout direction while using android:supportsRTL="true"
body: <p>My application must support both RTL and LTR languages in the future <strong>but for now just RTLs</strong>. When I use <code>android:supportsRTL="true"</code> with <code>android:layoutDirection="end"</code> in each layout, NavigationView and Toolbar and everything else are fine. </p>
  
  <p>But the only problem is when user change system language to a LTR language everything goes wrong because of layout direction changing.  </p>
  
  <p><strong>WHAT I NEED</strong>:  I have to set supportsRTL:"true". I need to change layout direction programmatically when user choose the "application" language at startup and not according to OS language.  </p>
  
  <p><strong>QUESTION</strong>: Is there any way to prevent auto changing of layout direction by changing the OS language (not by setting supportsRTL false)?  </p>
  
  <p>See image below:  </p>
  
  <p><img src="https://i.stack.imgur.com/cBk2M.jpg" alt="supportsRTL=&quot;true&quot;, RTL vs LTR"></p>
  
  <p>If I set <code>android:supportRTL="false"</code> and just design layouts for RTL, Toolbar and Navigation's menu direction will be my new troubles.  </p>
  
  <p>See image below:   </p>
  
  <p><img src="https://i.stack.imgur.com/QDng7.jpg" alt="supportsRTL=&quot;false&quot;"></p>