| getSelectionStart() | ใช้คืนค่า ตำแหน่ง แรกสุด ที่มีการ ลากคลุมตัวอักษร ของ Object TextView |
|---|
method:getSelectionStart ( )
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 selection_start = text.getSelectionStart ( ); setContentView ( text ); } }