Skip to content

Instantly share code, notes, and snippets.

@cengiztoru
Created July 8, 2021 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cengiztoru/5f618a7660b50ca574fd3c4e5e73bef4 to your computer and use it in GitHub Desktop.
Save cengiztoru/5f618a7660b50ca574fd3c4e5e73bef4 to your computer and use it in GitHub Desktop.
val layoutDirection = context.resources.configuration.layoutDirection
val viewLayoutDirection = view.layoutDirection
if (layoutDirection == View.LAYOUT_DIRECTION_RTL){
//do stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment