| length() | ใช้คืนค่า จำนวนของตัวอักษร ที่อยู่ภายใน Object TextView |
|---|
method:length ( )
return type:int
content:ใช้คืนค่า จำนวนของตัวอักษร ที่อยู่ภายใน Object TextView
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); TextView text = new TextView ( this ); text.setText ( "WelCome To BambooLabCode.com" ); int length = text.length ( ); setContentView ( text ); } }