-
public class I18nUtil
-
-
Method Summary
Modifier and Type Method Description static I18nUtilgetInstance()booleanisRTL(Context context)Check if the device is currently running on an RTL locale. voidallowRTL(Context context, boolean allowRTL)booleandoLeftAndRightSwapInRTL(Context context)voidswapLeftAndRightInRTL(Context context, boolean flip)voidforceRTL(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)
-
-
-
-