p a
- Forum-Beiträge: 131
05.06.2012, 17:19:34 via Website
05.06.2012 17:19:34 via Website
Hallo,
ich hab grad ein kleines Problem.
... und zwar habe ich hier ein kleines Layout und ab einer bestimmten Position im XML (siehe Kommentar) werden die Elemente nicht mehr angezeigt und ich blick gerade nicht mehr durch. Erbarmt sich mal grad jemand und sagt mir was da falsch ist?
ich hab grad ein kleines Problem.
... und zwar habe ich hier ein kleines Layout und ab einer bestimmten Position im XML (siehe Kommentar) werden die Elemente nicht mehr angezeigt und ich blick gerade nicht mehr durch. Erbarmt sich mal grad jemand und sagt mir was da falsch ist?
1<?xml version="1.0" encoding="utf-8"?>
2<RelativeLayout
3 xmlns:android="http://schemas.android.com/apk/res/android"
4 android:layout_width="match_parent"
5 android:layout_height="match_parent"
6 android:padding="@dimen/rand" >
7
8 <ImageView
9 android:id="@+id/igvBlinker"
10 android:layout_width="@dimen/blinker"
11 android:layout_height="@dimen/blinker"
12 android:src="@drawable/blinker_rot"
13 android:contentDescription="@string/blinkerDescription"
14 android:layout_alignParentTop="true"
15 android:layout_alignParentLeft="true"
16 />
17 <TextView
18 android:id="@+id/txvGpsPosition"
19 android:text="@string/gpsAus"
20 android:layout_width="wrap_content"
21 android:layout_height="wrap_content"
22 android:layout_toRightOf="@id/igvBlinker"
23 android:paddingTop="@dimen/randKlein"
24 android:paddingLeft="@dimen/rand"
25 style="@style/text_grau"
26 />
27
28 <LinearLayout
29 android:id="@+id/llaPosition"
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:paddingTop="@dimen/randGross"
33 android:orientation="vertical"
34 android:layout_below="@id/igvBlinker">
35 <TextView
36 android:text="@string/positionsdaten"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 style="@style/text_schwarz"
40 />
41<!-- Ab hier wird nichts mehr angezeigt -->
42 <LinearLayout
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:orientation="horizontal">
46 <TextView
47 android:text="@string/posLatitude"
48 android:layout_width="match_parent"
49 android:layout_height="wrap_content"
50 android:layout_weight="2"
51 style="@style/text_schwarz"
52 />
53 <TextView
54 android:id="@+id/txvPosLatitude"
55 android:text="test"
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
58 android:layout_weight="1"
59 style="@style/text_schwarz"
60 />
61 </LinearLayout>
62 <LinearLayout
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
65 android:orientation="horizontal">
66 <TextView
67 android:text="@string/posLongitude"
68 android:layout_width="match_parent"
69 android:layout_height="wrap_content"
70 android:layout_weight="2"
71 style="@style/text_schwarz"
72 />
73 <TextView
74 android:id="@+id/txvPosLongitude"
75 android:text="test"
76 android:layout_width="match_parent"
77 android:layout_height="wrap_content"
78 android:layout_weight="1"
79 style="@style/text_schwarz"
80 />
81 </LinearLayout>
82 </LinearLayout>
83
84</RelativeLayout>
2<RelativeLayout
3 xmlns:android="http://schemas.android.com/apk/res/android"
4 android:layout_width="match_parent"
5 android:layout_height="match_parent"
6 android:padding="@dimen/rand" >
7
8 <ImageView
9 android:id="@+id/igvBlinker"
10 android:layout_width="@dimen/blinker"
11 android:layout_height="@dimen/blinker"
12 android:src="@drawable/blinker_rot"
13 android:contentDescription="@string/blinkerDescription"
14 android:layout_alignParentTop="true"
15 android:layout_alignParentLeft="true"
16 />
17 <TextView
18 android:id="@+id/txvGpsPosition"
19 android:text="@string/gpsAus"
20 android:layout_width="wrap_content"
21 android:layout_height="wrap_content"
22 android:layout_toRightOf="@id/igvBlinker"
23 android:paddingTop="@dimen/randKlein"
24 android:paddingLeft="@dimen/rand"
25 style="@style/text_grau"
26 />
27
28 <LinearLayout
29 android:id="@+id/llaPosition"
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:paddingTop="@dimen/randGross"
33 android:orientation="vertical"
34 android:layout_below="@id/igvBlinker">
35 <TextView
36 android:text="@string/positionsdaten"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 style="@style/text_schwarz"
40 />
41<!-- Ab hier wird nichts mehr angezeigt -->
42 <LinearLayout
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:orientation="horizontal">
46 <TextView
47 android:text="@string/posLatitude"
48 android:layout_width="match_parent"
49 android:layout_height="wrap_content"
50 android:layout_weight="2"
51 style="@style/text_schwarz"
52 />
53 <TextView
54 android:id="@+id/txvPosLatitude"
55 android:text="test"
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
58 android:layout_weight="1"
59 style="@style/text_schwarz"
60 />
61 </LinearLayout>
62 <LinearLayout
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
65 android:orientation="horizontal">
66 <TextView
67 android:text="@string/posLongitude"
68 android:layout_width="match_parent"
69 android:layout_height="wrap_content"
70 android:layout_weight="2"
71 style="@style/text_schwarz"
72 />
73 <TextView
74 android:id="@+id/txvPosLongitude"
75 android:text="test"
76 android:layout_width="match_parent"
77 android:layout_height="wrap_content"
78 android:layout_weight="1"
79 style="@style/text_schwarz"
80 />
81 </LinearLayout>
82 </LinearLayout>
83
84</RelativeLayout>
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.