I'm trying to get the layout direction in Xamarin Android from this java code:
resource.getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
I tried to make this code:
Android.Util.LayoutDirection.Rtl == Android.Views.LayoutDirection.Rtl;
But it doesn't Work. I get the error:
I'm tryin to implement this code in xamarin Android (from shnizlon's answer):
Implementing SearchView as per the material design guidelines
try this
if (this.Resources.Configuration.LayoutDirection == LayoutDirection.Rtl)