how to show android Keyboard automatically while Screen Opens? -


can tell me how show soft input keyboard while activity opens. in normal case keyboard pops when tap inside edit text want open automatically when screen loads.

here xml layout file

and here main.xml layout file

<textview android:id="@+id/textview01" android:layout_width="wrap_content"     android:layout_height="wrap_content" android:text="this sample app of android"     android:textcolor="#000000" android:textsize="20dip">  </textview>  <edittext android:id="@+id/edittext01" android:layout_height="wrap_content"     android:layout_width="fill_parent"></edittext>  <button android:id="@+id/button01" android:layout_width="wrap_content"     android:layout_height="wrap_content" android:text="say hello"></button> 

check android:windowsoftinputmode attribute activity element of androidmanifest.xml. in case be:

<activity android:windowsoftinputmode="statealwaysvisible" ... /> 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -