-
public class I18nUtil
-
-
Method Summary
Modifier and Type Method Description static I18nUtil
getInstance()
boolean
isRTL(Context context)
Check if the device is currently running on an RTL locale. void
allowRTL(Context context, boolean allowRTL)
boolean
doLeftAndRightSwapInRTL(Context context)
void
swapLeftAndRightInRTL(Context context, boolean flip)
void
forceRTL(Context context, boolean forceRTL)
-
-
Method Detail
-
getInstance
static I18nUtil getInstance()
-
isRTL
boolean isRTL(Context context)
Check if the device is currently running on an RTL locale. This only happens when the app:
- is forcing RTL layout, regardless of the active language (for development purpose)
- allows RTL layout when using RTL locale
-
doLeftAndRightSwapInRTL
boolean doLeftAndRightSwapInRTL(Context context)
-
swapLeftAndRightInRTL
void swapLeftAndRightInRTL(Context context, boolean flip)
-
-
-
-