Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom Diaglog box android
    primarykey
    data
    text
    <p>i am trying to make a custom dialog box with 2 spinners and 2 buttons. i am doing the following coding </p> <p>this is xml for custom GUI inside dialog box</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="wrap_content" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="SORT BY" /&gt; &lt;Spinner android:id="@+id/spinner1" android:layout_width="match_parent" android:layout_height="wrap_content" android:prompt="@string/prompt1" android:entries="@array/ordersortby" android:layout_gravity="center"/&gt; &lt;TextView android:id="@+id/textView2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="ORDER" /&gt; &lt;Spinner android:id="@+id/spinner2" android:layout_width="match_parent" android:layout_height="wrap_content" android:prompt="@string/address" android:entries="@array/ordersortby1" /&gt; &lt;Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="OK" /&gt; &lt;Button android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Cancel" /&gt; </code></pre> <p></p> <p>in strings i am declaring following</p> <pre><code> &lt;string name="prompt1"&gt;Order Number&lt;/string&gt; &lt;string-array name="ordersortby"&gt; &lt;item&gt;Order Number&lt;/item&gt; &lt;item&gt;Date Submitted&lt;/item&gt; &lt;item&gt;Date Entered&lt;/item&gt; &lt;/string-array&gt; &lt;string-array name="ordersortby1"&gt; &lt;item&gt;ASC&lt;/item&gt; &lt;item&gt;DESC&lt;/item&gt; &lt;/string-array&gt; </code></pre> <p>and in activity i am doing following</p> <pre><code>final Dialog dialog = new Dialog(orders.this); dialog.setContentView(R.layout.orderpicker); dialog.setTitle("Sort By Dialog"); dialog.show(); </code></pre> <p>when running this , i am getting this <a href="https://mail-attachment.googleusercontent.com/attachment/?ui=2&amp;ik=9d0a355143&amp;view=att&amp;th=13be14a55d1648b1&amp;attid=0.1&amp;disp=inline&amp;realattid=f_hb98u8an0&amp;safe=1&amp;zw&amp;saduie=AG9B_P_64Zt8tmpfB8IaP-OlWK0m&amp;sadet=1356694476836&amp;sads=kwbji4tR99LBA9utUKFRug25_c8&amp;sadssc=1" rel="nofollow">spinner</a></p> <p>my problem is why i am not getting any data inside these pickers. please help me.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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. 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