Class RTLUtils

  • All Implemented Interfaces:

    
    public class RTLUtils
    
                        

    Utility class for handling RTL (right-to-left) layout mode for certain languages

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      RTLUtils()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static String adapterAitInRTL(String str)
      static String getRTLCode(String str, String first)
      static boolean isChineseOrLetter(String txt)
      static boolean isRtl(Context c) Checks whether the current layout direction is RTL
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RTLUtils

        RTLUtils()
    • Method Detail

      • getRTLCode

         static String getRTLCode(String str, String first)
      • isRtl

         static boolean isRtl(Context c)

        Checks whether the current layout direction is RTL