Note that there are some explanatory texts on larger screens.

plurals
  1. POsimplecursoradapter, list activity with button
    primarykey
    data
    text
    <p>i want to design my interface like this :</p> <p><img src="https://i.stack.imgur.com/GJ0SQ.png" alt="enter image description here"></p> <p>and i try my code, show interface look like this:</p> <p><img src="https://i.stack.imgur.com/wxPXR.png" alt="enter image description here"></p> <p>i want to make design, any button in top and listview in bottom of button, how ? with listactivity.</p> <p>i have file Datalist.java like this :</p> <pre><code>public class DataList extends ListActivity{ private ListView conListView; private CursorAdapter conAdapter; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); conListView=getListView(); conListView.setOnItemClickListener(viewConListener); // map each name to a TextView String[] from = new String[] { "nama" }; int[] to = new int[] { R.id.dataTextView}; conAdapter = new SimpleCursorAdapter(DataList.this, R.layout.data_list, null, from, to); setListAdapter(conAdapter); // set adapter } } </code></pre> <p>and have data_list.xml like this :</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" &gt; &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/dataTextView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:minHeight="?android:attr/listPreferredItemHeight" android:padding="8dp" android:textColor="@android:color/white" android:textSize="20sp" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>thanks for advance.</p>
    singulars
    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