Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid remove a view from a dialog?
    primarykey
    data
    text
    <p>How would I remove a view from this dialog? I know I can remove a view from a <s>LinearLayout.removeView(id)</s>( LinearLayout.removeView(View) ), so if someone could tell me how to get (LinearLayout) R.layout.database_creation_form, that would be nice too. I am using Android-SDK V7</p> <p>Java Code:</p> <pre><code>@Override protected DialogInterface onCreateDialog(int id){ LayoutInflater factory = LayoutInflater.from(getBaseContext()); final View textEntryView = factory.inflate(R.layout.database_creation_form, null); setDialogViewAttributes(textEntryView); final EditText editText = (EditText)textEntryView.findViewById(R.id.create_form_db_name_et2); final Spinner spinner = (Spinner)textEntryView.findViewById(R.id.create_form_type_sp); return new AlertDialog.Builder(FileBase.this) .setTitle(R.string.create_database_string) .setView(textEntryView) .show(); } </code></pre> <p>XML for database_creation_form:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:paddingTop="25px"&gt; &lt;TextView android:id="@+id/create_form_db_name_tv" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:text="@string/create_form_db_name" android:textAppearance="?android:attr/textAppearanceLarge" android:paddingBottom="25px"/&gt; &lt;EditText android:id="@+id/create_form_db_name_et2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:inputType="text"&gt; &lt;requestFocus /&gt; &lt;/EditText&gt; &lt;TextView android:id="@+id/create_form_type_tv" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/create_form_type" android:textAppearance="?android:attr/textAppearanceLarge" android:gravity="center"/&gt; &lt;Spinner android:id="@+id/create_form_type_sp" android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt; &lt;/LinearLayout&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.
 

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