Android EditText Link to Button -
not sure how should implemented. have activity edit text , button (a text field specify search parameters, , button execute search). right user has enter text in field , press search button. how can make button default action, or configure edit text field click button when user presses enter?
currently default behavior, when select edit text field, there no return key shown on virtual keyboard.
any ideas?
found documentation item shortly after posting question.
<edittext android:id="@+id/edtinput" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:inputtype="textshortmessage|textautocorrect|textcapsentences|textmultiline" android:imeoptions="actionsend|flagnoenteraction" android:maxlines="4" android:maxlength="2000" android:hint="@string/compose_hint"/>
see http://developer.android.com/resources/articles/on-screen-inputs.html
Comments
Post a Comment