Breaking News

Stop EditText from gaining focus at Activity startup in Android ?

5:49 PM
<!-- Dummy item to prevent AutoCompleteTextView from receiving focus -->
<LinearLayout
   
android:focusable="true" android:focusableInTouchMode="true"
   
android:layout_width="0px" android:layout_height="0px"/>
<!-- :nextFocusUp and :nextFocusLeft have been set to the id of this component
     to prevent the dummy from receiving focus again -->

<AutoCompleteTextView android:id="@+id/text"
       
android:layout_width="fill_parent" android:layout_height="wrap_content"
       
android:nextFocusUp="@+id/text" android:nextFocusLeft="@+id/text"/>
 
 
 

0 komentar:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Toggle Footer