P
Panikmeister
Neues Mitglied
- 0
Hi,
habe schon die Forensuche benutzt..erfolglos.
Ich brauche ein Layout, dass im oberen Drittel ein Hintergrundbild hat, das vom Rest "überscrollt" werden kann.

Leider will das Teil ums verrecken nicht scrollen.
Zusätzlich sollte die Listview in kompletter Größe erscheinen und nicht scrollbar sein.
Ich hatte eine Scrollview mit dem Background, dazu ein LinearLayout, welches wiederum ein LinearLayout enthielt.
Weiß irgendwer Rat?
habe schon die Forensuche benutzt..erfolglos.
Ich brauche ein Layout, dass im oberen Drittel ein Hintergrundbild hat, das vom Rest "überscrollt" werden kann.

Leider will das Teil ums verrecken nicht scrollen.
Zusätzlich sollte die Listview in kompletter Größe erscheinen und nicht scrollbar sein.
Ich hatte eine Scrollview mit dem Background, dazu ein LinearLayout, welches wiederum ein LinearLayout enthielt.
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/scrollView"
android:fillViewport="true"
android:background="#ffffc281" >
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:weightSum="10"
android:gravity="bottom">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:background="#ffe5ffa9"
android:layout_weight="6">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="HVVVVVVVVVV"
android:id="@+id/textView" />
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:dividerHeight="1dp"
android:id="@+id/lvZutaten"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
Weiß irgendwer Rat?