I have a special situation that I am not able to find a solution for. I am trying to force a view to be laid-out in RTL, but one of the restrictions is that supportsRtl
must be false
in the manifest.
<!-- AndroidManifest.xml -->
<application android:supportsRtl="false">
<!-- layout/activity.xml -->
<android.support.v7.widget.Toolbar
android:layoutDirection="rtl"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
The problem I'm having is that android:layoutDirection
and View#setLayoutDirection(int)
are ignored unless supportsRtl="true"
. Short of making my own Toolbar
, what other options are there for handling this?
setLayoutDirection
cant override that. – Affine