Alexander R.
- Forum-Beiträge: 1.148
10.08.2010, 20:24:26 via Website
10.08.2010 20:24:26 via Website
Hallo,
ich habe ein Layout, indem 1 Text ausgegeben wird und unter dem sich 6 Buttons aufreihen.
Leider wird nur der Text, dann ein Button und eine lange leere angezeigt und dann wieder die 3 letzten..
Folgendes wird angezeigt:
Text
"Über Batteriestatus"
LEERE (Einstellungen)
LEERE (Akkuverbrauch)
"Beende Batteriestatus"
"Fenster Schließen"
"Feedback/Empfehlen"
Hier der zugehörige Code:
ich habe ein Layout, indem 1 Text ausgegeben wird und unter dem sich 6 Buttons aufreihen.
Leider wird nur der Text, dann ein Button und eine lange leere angezeigt und dann wieder die 3 letzten..
Folgendes wird angezeigt:
Text
"Über Batteriestatus"
LEERE (Einstellungen)
LEERE (Akkuverbrauch)
"Beende Batteriestatus"
"Fenster Schließen"
"Feedback/Empfehlen"
Hier der zugehörige Code:
1<?xml version="1.0" encoding="utf-8"?>
2<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="fill_parent"
4 android:layout_height="fill_parent">
5
6<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
7 android:orientation="vertical"
8 android:paddingTop="7sp"
9 android:paddingBottom="7sp"
10 android:paddingLeft="7sp"
11 android:paddingRight="7sp"
12 android:layout_width="210sp"
13 android:layout_height="wrap_content">
14
15<TextView android:layout_width="fill_parent"
16 android:layout_height="wrap_content"
17 android:gravity="center_horizontal"
18 android:paddingBottom="10sp"
19 android:textColor="#fff"
20 android:textSize="16sp"
21 android:text="Batteriestatus ist Aktiv" />
22
23<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
24 android:orientation="horizontal"
25 android:paddingTop="0sp"
26 android:paddingBottom="0sp"
27 android:paddingLeft="0sp"
28 android:paddingRight="0sp"
29 android:layout_width="fill_parent"
30 android:layout_height="wrap_content">
31
32
33<Button android:id="@+id/more_info_b"
34 android:layout_height="wrap_content"
35 android:layout_width="fill_parent"
36 android:layout_gravity="center_horizontal"
37 android:text="Über Batteriestatus..." />
38
39<Button android:id="@+id/edit_settings_b"
40 android:layout_height="wrap_content"
41 android:layout_width="fill_parent"
42 android:layout_gravity="center_horizontal"
43 android:text="Einstellungen..." />
44
45<Button android:id="@+id/battery_use_b"
46 android:layout_width="fill_parent"
47 android:layout_height="wrap_content"
48 android:layout_gravity="center_horizontal"
49 android:text="Akkuverbrauch..." />
50
51</LinearLayout>
52
53<View android:layout_width="fill_parent"
54 android:layout_height="4sp" />
55
56<Button android:id="@+id/stop_service_b"
57 android:layout_width="fill_parent"
58 android:layout_height="wrap_content"
59 android:layout_gravity="center_horizontal"
60 android:text="Beende Batteriestatus..." />
61
62<View android:layout_width="fill_parent"
63 android:layout_height="4sp" />
64
65<Button android:id="@+id/hide_window_b"
66 android:layout_width="fill_parent"
67 android:layout_height="wrap_content"
68 android:layout_gravity="center_horizontal"
69 android:text="Fenster Schließen..." />
70
71<View android:layout_width="fill_parent"
72 android:layout_height="4sp" />
73
74<Button android:id="@+id/feedback"
75 android:layout_width="fill_parent"
76 android:layout_height="wrap_content"
77 android:layout_gravity="center_horizontal"
78 android:text="Feedback/Empfehlen..." />
79</LinearLayout>
80</ScrollView>
2<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="fill_parent"
4 android:layout_height="fill_parent">
5
6<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
7 android:orientation="vertical"
8 android:paddingTop="7sp"
9 android:paddingBottom="7sp"
10 android:paddingLeft="7sp"
11 android:paddingRight="7sp"
12 android:layout_width="210sp"
13 android:layout_height="wrap_content">
14
15<TextView android:layout_width="fill_parent"
16 android:layout_height="wrap_content"
17 android:gravity="center_horizontal"
18 android:paddingBottom="10sp"
19 android:textColor="#fff"
20 android:textSize="16sp"
21 android:text="Batteriestatus ist Aktiv" />
22
23<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
24 android:orientation="horizontal"
25 android:paddingTop="0sp"
26 android:paddingBottom="0sp"
27 android:paddingLeft="0sp"
28 android:paddingRight="0sp"
29 android:layout_width="fill_parent"
30 android:layout_height="wrap_content">
31
32
33<Button android:id="@+id/more_info_b"
34 android:layout_height="wrap_content"
35 android:layout_width="fill_parent"
36 android:layout_gravity="center_horizontal"
37 android:text="Über Batteriestatus..." />
38
39<Button android:id="@+id/edit_settings_b"
40 android:layout_height="wrap_content"
41 android:layout_width="fill_parent"
42 android:layout_gravity="center_horizontal"
43 android:text="Einstellungen..." />
44
45<Button android:id="@+id/battery_use_b"
46 android:layout_width="fill_parent"
47 android:layout_height="wrap_content"
48 android:layout_gravity="center_horizontal"
49 android:text="Akkuverbrauch..." />
50
51</LinearLayout>
52
53<View android:layout_width="fill_parent"
54 android:layout_height="4sp" />
55
56<Button android:id="@+id/stop_service_b"
57 android:layout_width="fill_parent"
58 android:layout_height="wrap_content"
59 android:layout_gravity="center_horizontal"
60 android:text="Beende Batteriestatus..." />
61
62<View android:layout_width="fill_parent"
63 android:layout_height="4sp" />
64
65<Button android:id="@+id/hide_window_b"
66 android:layout_width="fill_parent"
67 android:layout_height="wrap_content"
68 android:layout_gravity="center_horizontal"
69 android:text="Fenster Schließen..." />
70
71<View android:layout_width="fill_parent"
72 android:layout_height="4sp" />
73
74<Button android:id="@+id/feedback"
75 android:layout_width="fill_parent"
76 android:layout_height="wrap_content"
77 android:layout_gravity="center_horizontal"
78 android:text="Feedback/Empfehlen..." />
79</LinearLayout>
80</ScrollView>
Gruß Alexander
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.