Philipp S.
- Forum-Beiträge: 23
25.02.2012, 22:07:39 via Website
25.02.2012 22:07:39 via Website
Hallo Leute,
ich habe eine ScrollView und möchte nun diesen Overscroll-Effekt hinbekommen. Also das man weiter scrollen kann, wenn das Ende erreicht ist bzw. auch diesen Bouncing-Effekt wenn man schnell nach unten/oben scrollt.
Nach kurzem googlen ist das bei einer ListView ja einfach, ich habe aber ein TableLayout.
Mein Layout:
Wie mach ich das am blödsten?
ich habe eine ScrollView und möchte nun diesen Overscroll-Effekt hinbekommen. Also das man weiter scrollen kann, wenn das Ende erreicht ist bzw. auch diesen Bouncing-Effekt wenn man schnell nach unten/oben scrollt.
Nach kurzem googlen ist das bei einer ListView ja einfach, ich habe aber ein TableLayout.
Mein Layout:
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="wrap_content">
6 <LinearLayout style="@style/TitleBar">
7 <ImageButton style="@style/TitleBar"
8 android:contentDescription="@string/description_logo"
9 android:src="@drawable/title_logo"
10 android:onClick="onClickHome" />
11 </LinearLayout>
12
13 <ScrollView android:id="@+id/ScrollView01"
14 android:layout_width="wrap_content"
15 android:layout_height="fill_parent">
16 <TableLayout style="@style/TableLayout"
17 android:id="@+id/TableLayout"
18 android:layout_width="fill_parent"
19 android:layout_height="wrap_content">
20 </TableLayout>
21 </ScrollView>
22</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="wrap_content">
6 <LinearLayout style="@style/TitleBar">
7 <ImageButton style="@style/TitleBar"
8 android:contentDescription="@string/description_logo"
9 android:src="@drawable/title_logo"
10 android:onClick="onClickHome" />
11 </LinearLayout>
12
13 <ScrollView android:id="@+id/ScrollView01"
14 android:layout_width="wrap_content"
15 android:layout_height="fill_parent">
16 <TableLayout style="@style/TableLayout"
17 android:id="@+id/TableLayout"
18 android:layout_width="fill_parent"
19 android:layout_height="wrap_content">
20 </TableLayout>
21 </ScrollView>
22</LinearLayout>
Wie mach ich das am blödsten?
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.