Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The following should work. Go to your manifest and update your activity line with the <code>android:windowSoftInputMode</code> attribute.</p> <pre><code>&lt;activity android:name=".Finalize" android:windowSoftInputMode="stateAlwaysVisible"&gt; ... &lt;/activity&gt; </code></pre> <p>See the following <a href="http://developer.android.com/guide/topics/manifest/activity-element.html" rel="nofollow">documentation</a> page for more details on the different parameters that can be passed into this attribute.</p> <p>I tested the above and it works fine for me. Here is my terribly simple example. Code:</p> <pre><code>public class DialogActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } </code></pre> <p>Layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /&gt; &lt;EditText android:id="@+id/edit_text_test" android:layout_width="fill_parent" android:layout_height="wrap_content"/&gt; &lt;/LinearLayout&gt; </code></pre> <p>Manifest:</p> <pre><code> &lt;activity android:name=".DialogActivity" android:windowSoftInputMode="stateAlwaysVisible" android:label="@string/app_name" android:theme="@android:style/Theme.Dialog"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload