diff options
Diffstat (limited to 'libraries/StickyListHeaders/sample/res/layout/main.xml')
-rw-r--r-- | libraries/StickyListHeaders/sample/res/layout/main.xml | 114 |
1 files changed, 114 insertions, 0 deletions
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 |