Created
April 28, 2015 06:15
-
-
Save whit3hawks/7821bf47e97453574a2f to your computer and use it in GitHub Desktop.
Function to apply native RTL support for your Android applications.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void applyRTL(){ | |
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1){ | |
getWindow().getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment