Iven Z.
- Forum-Beiträge: 15
25.06.2011, 16:07:45 via Website
25.06.2011 16:07:45 via Website
Hey Leute,
ich wollte heute ein SlidingDrawer über mein ImageView ziehen lassen.
Mit diesem Beispielcode:
öffnet sich die Ansicht des SlidingDrawers aber immer nur bis zum unteren Ende des Bildes.
Hat vielleicht jemand einen Tipp ?
ich wollte heute ein SlidingDrawer über mein ImageView ziehen lassen.
Mit diesem Beispielcode:
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:orientation="vertical"
4 android:layout_width="fill_parent"
5 android:layout_height="fill_parent"
6 >
7<ImageView
8 android:layout_width="fill_parent"
9 android:layout_height="wrap_content"
10 android:src="@drawable/cover"
11 />
12<SlidingDrawer
13 android:id="@+id/drawer"
14 android:layout_width="fill_parent"
15 android:layout_height="wrap_content"
16 android:orientation="vertical"
17 android:handle="@+id/handle"
18 android:content="@+id/content">
19<ImageView
20 android:id="@id/handle"
21 android:layout_width="fill_parent"
22 android:layout_height="wrap_content"
23 android:src="@drawable/icon"/>
24<LinearLayout
25 android:id="@id/content"
26 android:layout_width="fill_parent"
27 android:layout_height="fill_parent"
28 android:orientation="vertical">
29<TextView
30 android:layout_width="fill_parent"
31 android:layout_height="fill_parent"
32 android:text="Big Big Button"/>
33</LinearLayout>
34
35</SlidingDrawer>
36</LinearLayout>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:orientation="vertical"
4 android:layout_width="fill_parent"
5 android:layout_height="fill_parent"
6 >
7<ImageView
8 android:layout_width="fill_parent"
9 android:layout_height="wrap_content"
10 android:src="@drawable/cover"
11 />
12<SlidingDrawer
13 android:id="@+id/drawer"
14 android:layout_width="fill_parent"
15 android:layout_height="wrap_content"
16 android:orientation="vertical"
17 android:handle="@+id/handle"
18 android:content="@+id/content">
19<ImageView
20 android:id="@id/handle"
21 android:layout_width="fill_parent"
22 android:layout_height="wrap_content"
23 android:src="@drawable/icon"/>
24<LinearLayout
25 android:id="@id/content"
26 android:layout_width="fill_parent"
27 android:layout_height="fill_parent"
28 android:orientation="vertical">
29<TextView
30 android:layout_width="fill_parent"
31 android:layout_height="fill_parent"
32 android:text="Big Big Button"/>
33</LinearLayout>
34
35</SlidingDrawer>
36</LinearLayout>
öffnet sich die Ansicht des SlidingDrawers aber immer nur bis zum unteren Ende des Bildes.
Hat vielleicht jemand einen Tipp ?
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.