E
emha
Neues Mitglied
- 0
Hallo zusammen.
Habe eine Textview, die als Überschrift dient. Drunter sind weiter Überschriften, mit Vorschaubildern für Panoramen. Wenn ich nun Scrolle, soll die Hauptüberschrift (rot) immer drüber liegen, sodass der Rest drunter durch scrollt.
Habe das schonmal gemacht, nur leider funktioniert das so nicht hier. Könnt ihr mir weiterhelfen? Anbei ein Ausschnitt des Codes und ein Screenshot.
Es geht um die erste Textview!
Liebe Grüße,
emha
Habe eine Textview, die als Überschrift dient. Drunter sind weiter Überschriften, mit Vorschaubildern für Panoramen. Wenn ich nun Scrolle, soll die Hauptüberschrift (rot) immer drüber liegen, sodass der Rest drunter durch scrollt.
Habe das schonmal gemacht, nur leider funktioniert das so nicht hier. Könnt ihr mir weiterhelfen? Anbei ein Ausschnitt des Codes und ein Screenshot.
Code:
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="none"
>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:background="@drawable/title_bg"
android:textColor="#ffffff"
android:gravity="center"
android:textSize="16px"
android:textStyle="bold"
android:shadowRadius="1"
android:shadowDy="-1"
android:shadowColor="#000000"
android:layout_height="44px"
android:text="@string/panoramen"
android:layout_alignParentTop="true"
/>
<TextView
android:layout_width="fill_parent"
android:background="@drawable/pano_title_bg"
android:textColor="#ffffff"
android:gravity="left"
android:textSize="13px"
android:shadowRadius="1"
android:shadowDy="1"
android:shadowColor="#000000"
android:layout_height="33px"
android:text="@string/aquawell1"
android:paddingLeft="10px"
android:paddingTop="7px"
/>
<Button
android:id="@+id/aquawell1"
android:layout_height="86px"
android:layout_width="fill_parent"
android:background="@drawable/pano_001"
/>
<TextView
android:layout_width="fill_parent"
android:background="@drawable/pano_title_bg"
android:textColor="#ffffff"
android:gravity="left"
android:textSize="13px"
android:shadowRadius="1"
android:shadowDy="1"
android:shadowColor="#000000"
android:layout_height="33px"
android:text="@string/aquawell2"
android:paddingLeft="10px"
android:paddingTop="7px"
/>
<Button
android:id="@+id/aquawell2"
android:layout_height="86px"
android:layout_width="fill_parent"
android:background="@drawable/pano_002"
/>
Es geht um die erste Textview!
Liebe Grüße,
emha