diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-01-02 21:10:08 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-01-02 21:10:08 +0100 |
commit | f5da63f9882e1807c6bd2adb5205ad7482c45339 (patch) | |
tree | 95b034a7a80d2e3ea8343440d617db993f4fca59 /libraries/StickyListHeaders/sample/res/layout | |
parent | 1d91804dc7943e7149d02141a46c3eb0763e2b94 (diff) | |
download | open-keychain-f5da63f9882e1807c6bd2adb5205ad7482c45339.tar.gz open-keychain-f5da63f9882e1807c6bd2adb5205ad7482c45339.tar.bz2 open-keychain-f5da63f9882e1807c6bd2adb5205ad7482c45339.zip |
New list with sticky list headers library
Diffstat (limited to 'libraries/StickyListHeaders/sample/res/layout')
5 files changed, 165 insertions, 0 deletions
diff --git a/libraries/StickyListHeaders/sample/res/layout/header.xml b/libraries/StickyListHeaders/sample/res/layout/header.xml new file mode 100644 index 000000000..177e40c4e --- /dev/null +++ b/libraries/StickyListHeaders/sample/res/layout/header.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/header_selector" > + + <se.emilsjolander.stickylistheaders.views.UnderlineTextView + android:id="@+id/text1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="start|left" + android:padding="5dp" + android:textColor="@android:color/white" + android:textSize="17sp" + android:textStyle="bold" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/libraries/StickyListHeaders/sample/res/layout/list_footer.xml b/libraries/StickyListHeaders/sample/res/layout/list_footer.xml new file mode 100644 index 000000000..4fa22c1f3 --- /dev/null +++ b/libraries/StickyListHeaders/sample/res/layout/list_footer.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <TextView android:text="@string/app_name" + android:layout_width="match_parent" + android:layout_height="700dip" + android:gravity="center" + android:layout_gravity="center"/> + + +</FrameLayout>
\ No newline at end of file diff --git a/libraries/StickyListHeaders/sample/res/layout/list_header.xml b/libraries/StickyListHeaders/sample/res/layout/list_header.xml new file mode 100644 index 000000000..97d46c69b --- /dev/null +++ b/libraries/StickyListHeaders/sample/res/layout/list_header.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <TextView android:text="@string/app_name" + android:layout_width="match_parent" + android:layout_height="400dip" + android:gravity="center" + android:layout_gravity="center"/> + + +</FrameLayout>
\ No newline at end of file diff --git a/libraries/StickyListHeaders/sample/res/layout/main.xml b/libraries/StickyListHeaders/sample/res/layout/main.xml new file mode 100644 index 000000000..2d22c3266 --- /dev/null +++ b/libraries/StickyListHeaders/sample/res/layout/main.xml @@ -0,0 +1,114 @@ +<android.support.v4.widget.DrawerLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <se.emilsjolander.stickylistheaders.StickyListHeadersListView + android:id="@+id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipToPadding="false" + android:drawSelectorOnTop="true" + android:padding="16dp" + android:scrollbarStyle="outsideOverlay" + android:fastScrollEnabled="true"/> + + <TextView + android:id="@+id/empty" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:text="@string/empty" + android:textSize="30sp" + android:visibility="gone"/> + + </FrameLayout> + + <ScrollView + android:id="@+id/left_drawer" + android:layout_width="240dp" + android:layout_height="match_parent" + android:layout_gravity="start" + android:padding="5dp" + android:scrollbars="none" + android:clickable="true" + android:background="@android:color/white"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <se.emilsjolander.stickylistheaders.views.UnderlineTextView + style="@style/MenuSectionHeader" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="start|left" + android:text="@string/actions" + android:textStyle="bold"/> + + <Button + android:layout_width="match_parent" + android:layout_height="48dp" + android:gravity="left|center_vertical" + android:text="@string/restore_list" + android:id="@+id/restore_button"/> + + <Button + android:layout_width="match_parent" + android:layout_height="48dp" + android:gravity="left|center_vertical" + android:text="@string/update_list" + android:id="@+id/update_button"/> + + <Button + android:layout_width="match_parent" + android:layout_height="48dp" + android:gravity="left|center_vertical" + android:id="@+id/clear_button" + android:text="@string/clear_list"/> + + <se.emilsjolander.stickylistheaders.views.UnderlineTextView + style="@style/MenuSectionHeader" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="start|left" + android:text="@string/options" + android:textStyle="bold"/> + + <CheckBox + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/sticky_header" + android:id="@+id/sticky_checkBox" + android:checked="true"/> + + <CheckBox + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/fade_header" + android:id="@+id/fade_checkBox" + android:checked="true"/> + + <CheckBox + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/draw_behind_header" + android:id="@+id/draw_behind_checkBox" + android:checked="true"/> + + <CheckBox + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/fast_scroll" + android:id="@+id/fast_scroll_checkBox" + android:checked="true"/> + </LinearLayout> + </ScrollView> +</android.support.v4.widget.DrawerLayout>
\ No newline at end of file diff --git a/libraries/StickyListHeaders/sample/res/layout/test_list_item_layout.xml b/libraries/StickyListHeaders/sample/res/layout/test_list_item_layout.xml new file mode 100644 index 000000000..0f8efc32e --- /dev/null +++ b/libraries/StickyListHeaders/sample/res/layout/test_list_item_layout.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:paddingBottom="20dp" + android:paddingTop="20dp" /> |