Kommentarfunktion funktioniert in Emulator aber nicht richtig auf Smartphone

  • 9 Antworten
  • Letztes Antwortdatum
G

Garnet

Ambitioniertes Mitglied
1
Hi,
folgendes Problem:

Ich habe eine Kommentarfunktion in meine App eingebaut, welche auf eine SQLite Datenbank zugreift, die auf einem Webserver liegt.
Wenn ich diese im Emulator ausprobiere, funktioniert auch alles. Aber wenn ich auf meinem Smartphone versuche zu einem Thema mehrere Kommentare zu schreiben, wird immer nur der neueste Kommentar angezeigt.

Hier ist der Code:

Code:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]kommentareliste[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = (ListView)findViewById(R.id.[/SIZE][I][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]listViewKommentare[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2]); [/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]saList[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] SimpleAdapter( [/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]this[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2], [/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]myListing[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE]
[SIZE=2]R.layout.[/SIZE][I][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]dreizeiliges_item[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2], [/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] String[] { [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"line1"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"line2"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"line3"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]},[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]int[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][] { R.id.[/SIZE][I][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]text1[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2], R.id.[/SIZE][I][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]text2[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2], R.id.[/SIZE][I][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]text3[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2]}[/SIZE]
[SIZE=2]); [/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]kommentareliste[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].setAdapter([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]saList[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]); [/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]if[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (isOnline())[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]getData();[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]while[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (![/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]this[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2].[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]dataComplete[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) [/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]// [U]es[/U] [U]soll[/U] [U]solange[/U] [U]gewartet[/U] [U]werden[/U] [U]bis[/U] die[/COLOR][/SIZE]
[SIZE=2][COLOR=#008080]// ArrayList [U]ganz[/U] [U]gefüllt[/U] [U]ist[/U] [U]und[/U] die[/COLOR][/SIZE]
[SIZE=2][COLOR=#008080]// [U]Abfrage[/U] [U]beendet[/U] [U]wurde[/U][/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]{[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]try[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] {[/SIZE]
[SIZE=2]Thread.[I]sleep[/I](50);[/SIZE]
[SIZE=2]} [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]catch[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (InterruptedException e) {[/SIZE]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]// [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#00ffff][SIZE=2][COLOR=#00ffff]TODO[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080] Auto-generated catch block[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]e.printStackTrace();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]this[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2].fillList();[/SIZE]
[SIZE=2]}[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]public[/COLOR][/SIZE][/COLOR][/SIZE][/B][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]void[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] getData() {[/SIZE]
[SIZE=2]Thread t = [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] Thread() {[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]private[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] String [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]result[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]public[/COLOR][/SIZE][/COLOR][/SIZE][/B][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]void[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] run() {[/SIZE]
[SIZE=2]ArrayList<NameValuePair> nameValuePairs = [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] ArrayList<NameValuePair>();[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]try[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] {[/SIZE]
[SIZE=2]HttpClient httpclient = [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] DefaultHttpClient();[/SIZE]
[SIZE=2]HttpPost httppost = [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] HttpPost([/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][URL]http://public.xxx.de/~name/Kommentareanzeigen.php[/URL][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]httppost.setEntity([/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] UrlEncodedFormEntity(nameValuePairs));[/SIZE]
[SIZE=2]nameValuePairs.add([/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] BasicNameValuePair([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"param4"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]vortragID[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]));[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]try[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] {[/SIZE]
[SIZE=2]httppost.setEntity([/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] UrlEncodedFormEntity(nameValuePairs));[/SIZE]
[SIZE=2]} [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]catch[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (UnsupportedEncodingException e) {[/SIZE]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]// [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#00ffff][SIZE=2][COLOR=#00ffff]TODO[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080] Auto-generated catch block[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]e.printStackTrace();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]HttpResponse response = httpclient.execute(httppost);[/SIZE]
[SIZE=2]HttpEntity entity = response.getEntity();[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]is[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = entity.getContent();[/SIZE]
[SIZE=2]} [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]catch[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (Exception e) {[/SIZE]
[SIZE=2]Log.[I]e[/I]([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"log_tag"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2],[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"Fehler bei der http Verbindung "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] + e.toString());[/SIZE]
[SIZE=2]}[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]try[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] {[/SIZE]
[SIZE=2]BufferedReader reader = [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] BufferedReader([/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] InputStreamReader([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]is[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"iso-8859-1"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]), 8);[/SIZE]
[SIZE=2]StringBuilder sb = [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] StringBuilder();[/SIZE]
[SIZE=2]String line = [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]null[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2];[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]while[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] ((line = reader.readLine()) != [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]null[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]) {[/SIZE]
[SIZE=2]sb.append(line + [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"n"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]is[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].close();[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]result[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = sb.toString();[/SIZE]
[SIZE=2]} [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]catch[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (Exception e) {[/SIZE]
[SIZE=2]Log.[I]e[/I]([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"log_tag"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"Error converting result "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] + e.toString());[/SIZE]
[SIZE=2]}[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]try[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] {[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]jArray[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] JSONArray([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]result[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]for[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] ([/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]int[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] i = 0; i < [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]jArray[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].length(); i++) {[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]json_data[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]jArray[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].getJSONObject(i);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]results[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].add((String) [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]json_data[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].get([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"Bewerter"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) + [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]" "[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]+ [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]json_data[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].get([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"Kommentartext"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) + [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]" "[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]+ [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]json_data[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].get([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"Bewertung"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]));[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]dataComplete[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]true[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2];[/SIZE]
[SIZE=2]} [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]catch[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (JSONException e) {[/SIZE]
[SIZE=2]Log.[I]e[/I]([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"log_tag"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"Error parsing data "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] + e.toString());[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]};[/SIZE]
[SIZE=2]t.start();[/SIZE]
[SIZE=2]}[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]public [/COLOR][/SIZE][/COLOR][/SIZE][/B][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]void[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] fillList() {[/SIZE]
[SIZE=2][COLOR=#008080]
[/COLOR][/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]for[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] ([/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]int[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] i = [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]jArray[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].length()-1; i >=0; i--)[/SIZE]
[SIZE=2]{[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]try[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] {[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]json_data[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]jArray[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].getJSONObject(i);[/SIZE]
[SIZE=2]} [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]catch[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (JSONException e1) {[/SIZE]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]// [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#00ffff][SIZE=2][COLOR=#00ffff]TODO[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080] Auto-generated catch block[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]e1.printStackTrace();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][U]HashMap[/U] item = [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]new[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [U]HashMap[/U]();[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]try[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] {[/SIZE]
[SIZE=2][U]item.put([/U][/SIZE][U][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"line1"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]json_data[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].get([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"Bewerter"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) )[/SIZE][/U][SIZE=2];[/SIZE]
[SIZE=2]} [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]catch[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (JSONException e) {[/SIZE]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]// [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#00ffff][SIZE=2][COLOR=#00ffff]TODO[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080] Auto-generated catch block[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]e.printStackTrace();[/SIZE]
[SIZE=2]}[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]try[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] {[/SIZE]
[SIZE=2][U]item.put([/U][/SIZE][U][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"line2"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]json_data[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].get([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"Kommentartext"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) )[/SIZE][/U][SIZE=2];[/SIZE]
[SIZE=2]} [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]catch[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (JSONException e) {[/SIZE]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]// [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#00ffff][SIZE=2][COLOR=#00ffff]TODO[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080] Auto-generated catch block[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]e.printStackTrace();[/SIZE]
[SIZE=2]}[/SIZE]
[B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]try[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] {[/SIZE]
[SIZE=2][U]item.put([/U][/SIZE][U][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"line3"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"Rating:"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]+[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]json_data[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].get([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"Bewertung"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])+[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"/5"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] )[/SIZE][/U][SIZE=2];[/SIZE]
[SIZE=2]} [/SIZE][B][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]catch[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (JSONException e) {[/SIZE]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]// [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#00ffff][SIZE=2][COLOR=#00ffff]TODO[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080] Auto-generated catch block[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]e.printStackTrace();[/SIZE]
[SIZE=2]}[/SIZE]
 
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]myListing[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].add([U]item[/U]);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]saList[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].notifyDataSetChanged();[/SIZE]
[SIZE=2]}[/SIZE]

Ich hoffe es kann mir da einer helfen. Habe überhaupt keine Idee, an was das liegen könnte.
 
PHP:
while (!this.dataComplete) // es soll solange gewartet werden bis die
// ArrayList ganz gefüllt ist und die
// Abfrage beendet wurde
{
try {
Thread.sleep(50);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

unabhängig vom eigenltichen problem:

Du könntest auch einfach den Thread starten und am Ende die Liste benachrichtigen, dass Daten da sind um sie dann anzuzeigen. Würde dieses außergewöhnliche Konstrukt überflüssig machen. (und alles vielleicht etwas vereinfachen => AsyncTask )
 
Die While-Schleife mit dem Thread.sleep würde ich nicht machen. Ich würd lieber nen Progress-Dialog mit "Bitte warten ..." anzeigen und sobald der Thread die Daten geladen hat bzw. sobald fillData() fertig ist kannst du den ProgressDialog beenden und deine Liste sollte dann angezeigt werden.
 
... bei neueren Android Versionen is es ohnehin nicht erlaubt, Netzwerkverbindungen aus dem UI Thread heraus zu machen.
 
Er benutzt ja einen Thread, geht im Code nur etwas unter, habs auch erst später gesehen ;-)
 
  • Danke
Reaktionen: DieGoldeneMitte
Du hast doch auch einen Thread aufgemacht, dass deine Datenbank auf dem Server öfters kaputt geht. Ich würde an der Stelle erstmal ansetzen wenn die Datenbank spontan mal kaputt ist wirst du auch nicht wissen ob deine App eine Fehler hat oder sie genau das anzeigt was die Datenbank fälschlicherweise liefert.
 
So ich hab jetzt rausgefunden, an was es lag. Ich hab die ListView in einem TapHost drin. Über der ListView hatte ich einen Button, der hat wohl irgendwie Probleme verursacht. Als ich den rausgenommen hab, wurden die Listeneinträge auch auf meinem Smartphone alle angezeigt.

Jetzt hab ich aber immer noch ein kleines Problem. Obwohl ich die ListView auf wrap_content gesetzt habe, ist sie immer nur so groß, dass man 1 Eintrag und noch ein klein bisschen vom nächsten Eintrag sieht. Das ganze lässt sich zwar scrollen, sieht aber nicht wirklich schön aus. Ich hab jetzt schon bisschen mit dem Layout rumprobiert aber noch keine Lösung gefunden, wie ich die Liste so anpasse, dass sie das ganze Tap füllt. Wenn ich der Liste eine feste Höhe gebe, dann werden Einträge abgeschnitten, wenn die Liste größer als diese Höhe ist.

Hier mal die XML Dateien:

Code:
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<?
[/COLOR][/SIZE][/COLOR][/SIZE][LEFT][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]xml[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]version[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"1.0"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]encoding[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"utf-8"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]?>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080]
[LEFT][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/LEFT]
[/LEFT]
[/COLOR][/SIZE][LEFT][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]TabHost[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]xmlns:android[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"http://schemas.android.com/apk/res/android"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@android:id/tabhost"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:background[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"#fff"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/LEFT]
[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE][LEFT][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]LinearLayout[/COLOR][/SIZE][/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:orientation[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"vertical"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]TextView[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/textView2"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:textSize[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"24dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:textStyle[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"bold"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:gravity[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"center_horizontal"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:background[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@drawable/gradient_box"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:textColor[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"#fff"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@string/programmdetailsueberschrift"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]TextView[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/textViewThemaId"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:textColor[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"#104E8B"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:textSize[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"16dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:textStyle[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"bold"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:paddingTop[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"10dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:shadowColor[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"#CFCFCF"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:shadowDx[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"2"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:shadowDy[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"2"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:shadowRadius[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"0.6"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][U][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"TextView"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]ToggleButton[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/toggleButton1"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"35dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"35dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_marginLeft[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"250dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]Button[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/kommentarbutton1"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]style[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"?android:attr/buttonStyleSmall"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][U][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Button"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]TextView[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/sprecherNameId"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:textColor[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"#000"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:paddingBottom[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"10dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:textStyle[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"bold"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][U][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"TextView"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]TabWidget[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@android:id/tabs"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]FrameLayout[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@android:id/tabcontent"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:padding[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"5dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][U][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]ScrollView[/COLOR][/SIZE][/COLOR][/SIZE][/U][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/scrollView1"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]LinearLayout[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]include[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]layout[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@layout/detailstab"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]include[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]layout[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@layout/kommentaretab"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
 
 
 
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]LinearLayout[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080]
[/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]ScrollView[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]FrameLayout[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
 
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]LinearLayout[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]TabHost[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE]
 
 
[COLOR=#008080]XML mit Kommentartap, in der die Liste drin ist:[/COLOR]
 
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<?[/LEFT]
[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE][LEFT][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]xml[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]version[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]=[/COLOR][/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"1.0"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]encoding[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]=[/COLOR][/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"utf-8"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]?>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080]
[/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/LEFT]
[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE][LEFT][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]LinearLayout[/COLOR][/SIZE][/COLOR][/SIZE]
[LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/kommentareLayout"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:background[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"#fff"[/COLOR][/SIZE][/COLOR][/SIZE][/I]
[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:orientation[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"vertical"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]xmlns:android[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"http://schemas.android.com/apk/res/android"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2][/SIZE]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]ListView[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/listViewKommentare"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"fill_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080]
[/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]ListView[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]
[/COLOR][/SIZE]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]LinearLayout[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE]
 
[/COLOR][/SIZE][/COLOR][/SIZE]


[/LEFT]
 
versuch mal bei der ListView android:layout_height="fill_parent"
 
Hatte ich auch schon versucht, ändert aber auch nichts. Dann ist sie immer noch so groß wie ein Listitem.
 
Ok, hab jetzt rausgefunden an was es lag. Es war die ScrollView die im TapView mit drin war. Nachdem ich die gelöscht hab, wird die Liste jetzt auch richtig angezeigt. Jetzt geht zwar irgendwie die Vorschau von der xml Datei, wo der TapHost definiert ist nicht mehr, aber sonst funktioniert jetzt alles.
 

Ähnliche Themen

AnnaBauer21
Antworten
0
Aufrufe
498
AnnaBauer21
AnnaBauer21
AnnaBauer21
Antworten
6
Aufrufe
1.012
AnnaBauer21
AnnaBauer21
Zurück
Oben Unten