Get it from Configuration.getLayoutDirection():
Configuration config = getResources().getConfiguration();
if(config.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) {
//in Right To Left layout
}
More Related Contents:
- Android context.getResources.updateConfiguration() deprecated
- How to set Navigation Drawer to be opened from right to left
- How to handle RTL languages on pre 4.2 versions of Android?
- How to make the text direction from right to left
- android determine if device is in right to left language/layout
- Is there a way to get the source code from an APK file?
- Android: Unable to add window. Permission denied for this window type
- Using the Android RecognizerIntent with a bluetooth headset
- Webview avoid security alert from google play upon implementation of onReceivedSslError
- Android Studio – mergeDebugResources exception
- Error while Running Android Application – Could not initialize OpenglES emulation, use ‘-gpu off’ to disable it
- How to save SMS to inbox in android?
- Add padding on view programmatically
- How to set up DAGGER dependency injection from scratch in Android project?
- Android: programmatically adding buttons to a layout
- android: running a background task using AlarmManager
- How to rename a file on sdcard with Android application?
- capturing images with MediaStore.ACTION_IMAGE_CAPTURE intent in android
- MaterialDatePicker get selected dates
- First launch take long time (ClassLoader referenced unknown path)
- How to move Bluetooth activity into a Service
- How to display a list of images in a ListView in Android?
- Retrofit 2: Catch connection timeout exception
- Admob implementation Error
- Logcat error: “addView(View, LayoutParams) is not supported in AdapterView” in a ListView
- Android: Event ACTION_POWER_CONNECTED is not sent to my BroadcastReceiver
- WiFi Direct (Android 4.0) with multiple (3+) devices
- Android, how do I stop a pointer appearing below an EditText
- Can I draw outside the bounds of an Android Canvas
- Kotlin: open new Activity inside of a Fragment