getTransformationMethod() Android-Widget Class TextView : สอน class และ method ของ getTransformationMethod(), เรียน class และ method ของ getTransformationMethod()
 
  • getTransformationMethod() ใช้คืนค่า Object TransformationMethod ของ Object TextView
  • method :
    getTransformationMethod ( )

    return type :
    TransformationMethod

    content :
    ใช้คืนค่า Object TransformationMethod ของ Object TextView

       
    example :
    public class AndroidBamboo extends Activity implements TransformationMethod
    {
        public void onCreate( Bundle savedInstanceState ) 
        {
            super.onCreate ( savedInstanceState );
            TextView text = new TextView ( this );
            text.setText ( "Welcome To BambooLabCode.com" );
            text.setTransformationMethod ( this );
            TransformationMethod transformation_method = text.getTransformationMethod ( );
            setContentView ( text );
        }
    
        public CharSequence getTransformation ( CharSequence arg0, View arg1 ) 
        {
            return null;
        }
    
        public void onFocusChanged ( View view, CharSequence sourceText, boolean focused, int direction, Rect previouslyFocusedRect ) 
        {
    		
        }
    }

       

0 Comment

  • Have no comment.

Comment Reference

 
 
 
Share This Topic Login with Facebook