Ich benutze listview
zeigt Listview JSON AsyncTask Wert auf Android
final ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1);
adapter.add("JSON RESULT VALUE");
adapter.add("JSON RESULT VALUE");
adapter.add("JSON RESULT VALUE");
ListView listView = (ListView) findViewById(R.id.listview);
listView.setAdapter(adapter);
xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView android:id="@+id/listview"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
und JSON meine Quelle.
aber dieser setJSON zeigt textView. Ich möchte ListView anzeigen.
Wie kombiniere ich Listview und JSON TEXT?
Im sorry, aber was ist dein Problem? – RafaelC
Veröffentlichen Sie Ihre JSON-Antwort – VVB
@RafaelCardoso Entschuldigung. Vor kurzem habe ich JSONparser, meine Web-Server Textansicht. aber ich möchte Listenansicht – chohyunwook