Hannah H.
- Forum-Beiträge: 16
17.06.2010, 17:42:16 via Website
17.06.2010 17:42:16 via Website
Hallo,
ich hab eine Frage.
Ich hab mir ein Suchen Layout gebastelt und dann Festgestellt das ich manchmal sehr viele Such Ergebnisse habe, jetzt würde ich gerne eine ListView unterhalt des Suchen Formulas einbinden.
Kann mir da jemand einen Tip geben oder weiß jemand wie das geht?
Meine XML sieht bis jetzt so aus:
In das SuchErgenis werden die Suchergebnisse geschrieben, oder mach ich da schon was falsch?
Danke schon mal!
LG
Hannah
ich hab eine Frage.
Ich hab mir ein Suchen Layout gebastelt und dann Festgestellt das ich manchmal sehr viele Such Ergebnisse habe, jetzt würde ich gerne eine ListView unterhalt des Suchen Formulas einbinden.
Kann mir da jemand einen Tip geben oder weiß jemand wie das geht?
Meine XML sieht bis jetzt so aus:
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout
3 android:id="@+id/Suche"
4 android:layout_width="fill_parent"
5 android:layout_height="fill_parent"
6 android:orientation="vertical"
7 xmlns:android="http://schemas.android.com/apk/res/android"
8 >
9 <TextView
10 android:id="@+id/BarBeschriftungSuche"
11 android:layout_width="wrap_content"
12 android:layout_height="wrap_content"
13 android:layout_marginBottom="5px"
14 android:text="Suche nach einer Bar:"
15 android:textStyle="bold" />
16
17 <EditText
18 android:id="@+id/SucheBar"
19 android:layout_width="fill_parent"
20 android:layout_marginBottom="10px"
21 android:textSize="18dip"
22 android:lines="1"
23 android:layout_height="45dip"
24 android:padding="5dip" />
25
26 <RelativeLayout
27 xmlns:android="http://schemas.android.com/apk/res/android"
28 android:id="@+id/title"
29 android:layout_width="wrap_content"
30 android:layout_height="wrap_content"
31 android:layout_gravity="left|center" >
32 <Button
33 android:id="@+id/SucheStarten"
34 android:layout_width="wrap_content"
35 android:layout_height="wrap_content"
36 android:layout_marginBottom="10px"
37 android:text="Suche starten" />
38 <Button
39 android:id="@+id/TakeLocation"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:layout_marginBottom="10px"
43 android:text="Ort übernehmen"
44 android:layout_toRightOf="@id/SucheStarten"
45 android:layout_marginLeft="10px" />
46 </RelativeLayout>
47
48 <TextView
49 android:id="@+id/Ergebnis"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_marginBottom="5px"
53 android:textSize="18dip"
54 android:textStyle="bold"/>
55
56 <ListView
57 android:id="@+id/SuchErgebnis"
58 android:layout_width="fill_parent"
59 android:layout_height="fill_parent" />
60 <!--
61 <TextView
62 android:id="@+id/SuchErgebnis"
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content"
65 android:layout_marginBottom="5px"
66 android:textStyle="bold"/>
67 -->
68</LinearLayout>
2<LinearLayout
3 android:id="@+id/Suche"
4 android:layout_width="fill_parent"
5 android:layout_height="fill_parent"
6 android:orientation="vertical"
7 xmlns:android="http://schemas.android.com/apk/res/android"
8 >
9 <TextView
10 android:id="@+id/BarBeschriftungSuche"
11 android:layout_width="wrap_content"
12 android:layout_height="wrap_content"
13 android:layout_marginBottom="5px"
14 android:text="Suche nach einer Bar:"
15 android:textStyle="bold" />
16
17 <EditText
18 android:id="@+id/SucheBar"
19 android:layout_width="fill_parent"
20 android:layout_marginBottom="10px"
21 android:textSize="18dip"
22 android:lines="1"
23 android:layout_height="45dip"
24 android:padding="5dip" />
25
26 <RelativeLayout
27 xmlns:android="http://schemas.android.com/apk/res/android"
28 android:id="@+id/title"
29 android:layout_width="wrap_content"
30 android:layout_height="wrap_content"
31 android:layout_gravity="left|center" >
32 <Button
33 android:id="@+id/SucheStarten"
34 android:layout_width="wrap_content"
35 android:layout_height="wrap_content"
36 android:layout_marginBottom="10px"
37 android:text="Suche starten" />
38 <Button
39 android:id="@+id/TakeLocation"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:layout_marginBottom="10px"
43 android:text="Ort übernehmen"
44 android:layout_toRightOf="@id/SucheStarten"
45 android:layout_marginLeft="10px" />
46 </RelativeLayout>
47
48 <TextView
49 android:id="@+id/Ergebnis"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_marginBottom="5px"
53 android:textSize="18dip"
54 android:textStyle="bold"/>
55
56 <ListView
57 android:id="@+id/SuchErgebnis"
58 android:layout_width="fill_parent"
59 android:layout_height="fill_parent" />
60 <!--
61 <TextView
62 android:id="@+id/SuchErgebnis"
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content"
65 android:layout_marginBottom="5px"
66 android:textStyle="bold"/>
67 -->
68</LinearLayout>
In das SuchErgenis werden die Suchergebnisse geschrieben, oder mach ich da schon was falsch?
Danke schon mal!
LG
Hannah
— geändert am 17.06.2010, 17:43:11
Empfohlener redaktioneller Inhalt
Mit Deiner Zustimmung wird hier ein externer Inhalt geladen.
Mit Klick auf den oben stehenden Button erklärst Du Dich damit einverstanden, dass Dir externe Inhalte angezeigt werden dürfen. Dabei können personenbezogene Daten an Drittanbieter übermittelt werden. Mehr Infos dazu findest Du in unserer Datenschutzerklärung.