aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/StickyListHeaders/sample/res
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/StickyListHeaders/sample/res')
-rw-r--r--libraries/StickyListHeaders/sample/res/drawable-hdpi/ic_drawer.pngbin0 -> 2826 bytes
-rw-r--r--libraries/StickyListHeaders/sample/res/drawable-hdpi/ic_launcher.pngbin0 -> 9397 bytes
-rw-r--r--libraries/StickyListHeaders/sample/res/drawable-ldpi/ic_launcher.pngbin0 -> 2729 bytes
-rw-r--r--libraries/StickyListHeaders/sample/res/drawable-mdpi/ic_drawer.pngbin0 -> 2816 bytes
-rw-r--r--libraries/StickyListHeaders/sample/res/drawable-mdpi/ic_launcher.pngbin0 -> 5237 bytes
-rw-r--r--libraries/StickyListHeaders/sample/res/drawable-xhdpi/ic_drawer.pngbin0 -> 1038 bytes
-rw-r--r--libraries/StickyListHeaders/sample/res/drawable-xhdpi/ic_launcher.pngbin0 -> 14383 bytes
-rw-r--r--libraries/StickyListHeaders/sample/res/drawable/header_selector.xml7
-rw-r--r--libraries/StickyListHeaders/sample/res/layout/header.xml17
-rw-r--r--libraries/StickyListHeaders/sample/res/layout/list_footer.xml13
-rw-r--r--libraries/StickyListHeaders/sample/res/layout/list_header.xml13
-rw-r--r--libraries/StickyListHeaders/sample/res/layout/main.xml114
-rw-r--r--libraries/StickyListHeaders/sample/res/layout/test_list_item_layout.xml8
-rwxr-xr-xlibraries/StickyListHeaders/sample/res/values/arrays.xml230
-rw-r--r--libraries/StickyListHeaders/sample/res/values/colors.xml7
-rw-r--r--libraries/StickyListHeaders/sample/res/values/strings.xml20
-rw-r--r--libraries/StickyListHeaders/sample/res/values/style.xml9
17 files changed, 438 insertions, 0 deletions
diff --git a/libraries/StickyListHeaders/sample/res/drawable-hdpi/ic_drawer.png b/libraries/StickyListHeaders/sample/res/drawable-hdpi/ic_drawer.png
new file mode 100644
index 000000000..6614ea4f4
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/drawable-hdpi/ic_drawer.png
Binary files differ
diff --git a/libraries/StickyListHeaders/sample/res/drawable-hdpi/ic_launcher.png b/libraries/StickyListHeaders/sample/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 000000000..96a442e5b
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/drawable-hdpi/ic_launcher.png
Binary files differ
diff --git a/libraries/StickyListHeaders/sample/res/drawable-ldpi/ic_launcher.png b/libraries/StickyListHeaders/sample/res/drawable-ldpi/ic_launcher.png
new file mode 100644
index 000000000..99238729d
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/drawable-ldpi/ic_launcher.png
Binary files differ
diff --git a/libraries/StickyListHeaders/sample/res/drawable-mdpi/ic_drawer.png b/libraries/StickyListHeaders/sample/res/drawable-mdpi/ic_drawer.png
new file mode 100644
index 000000000..b05c026c1
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/drawable-mdpi/ic_drawer.png
Binary files differ
diff --git a/libraries/StickyListHeaders/sample/res/drawable-mdpi/ic_launcher.png b/libraries/StickyListHeaders/sample/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 000000000..359047dfa
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/drawable-mdpi/ic_launcher.png
Binary files differ
diff --git a/libraries/StickyListHeaders/sample/res/drawable-xhdpi/ic_drawer.png b/libraries/StickyListHeaders/sample/res/drawable-xhdpi/ic_drawer.png
new file mode 100644
index 000000000..bcf49dd73
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/drawable-xhdpi/ic_drawer.png
Binary files differ
diff --git a/libraries/StickyListHeaders/sample/res/drawable-xhdpi/ic_launcher.png b/libraries/StickyListHeaders/sample/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 000000000..71c6d760f
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/drawable-xhdpi/ic_launcher.png
Binary files differ
diff --git a/libraries/StickyListHeaders/sample/res/drawable/header_selector.xml b/libraries/StickyListHeaders/sample/res/drawable/header_selector.xml
new file mode 100644
index 000000000..5dfb8265c
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/drawable/header_selector.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <item android:state_pressed="true" android:drawable="@color/header_pressed" />
+ <item android:drawable="@color/header_normal" />
+
+</selector> \ No newline at end of file
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" />
diff --git a/libraries/StickyListHeaders/sample/res/values/arrays.xml b/libraries/StickyListHeaders/sample/res/values/arrays.xml
new file mode 100755
index 000000000..5cd71de49
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/values/arrays.xml
@@ -0,0 +1,230 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string-array name="countries">
+
+ <item>Afghanistan</item>
+ <item>Albania</item>
+ <item>Algeria</item>
+ <item>Andorra</item>
+ <item>Angola</item>
+ <item>Antigua &amp; Barbuda</item>
+ <item>Argentina</item>
+ <item>Armenia</item>
+ <item>Australia</item>
+ <item>Austria</item>
+ <item>Azerbaijan</item>
+
+ <item>Bahamas</item>
+ <item>Bahrain</item>
+ <item>Bangladesh</item>
+ <item>Barbados</item>
+ <item>Belarus</item>
+ <item>Belgium</item>
+ <item>Belize</item>
+ <item>Benin</item>
+ <item>Bhutan</item>
+ <item>Bolivia</item>
+ <item>Bosnia and Herzegovina</item>
+ <item>Botswana</item>
+ <item>Brazil</item>
+ <item>Brunei</item>
+ <item>Bulgaria</item>
+ <item>Burkina Faso</item>
+ <item>Burma</item>
+ <item>Burundi</item>
+
+ <item>Cambodia</item>
+ <item>Cameroon</item>
+ <item>Canada</item>
+ <item>Cape Verde</item>
+ <item>Central African Republic</item>
+ <item>Chad</item>
+ <item>Chile</item>
+ <item>China</item>
+ <item>Colombia</item>
+ <item>Comoros</item>
+ <item>Congo, Democratic Republic of the</item>
+ <item>Congo, Republic of the</item>
+ <item>Costa Rica</item>
+ <item>Cote d\'voire</item>
+ <item>Croatia</item>
+ <item>Cuba</item>
+ <item>Cyprus</item>
+ <item>Czech Republic</item>
+
+ <item>Denmark</item>
+ <item>Djibouti</item>
+ <item>Dominica</item>
+ <item>Dominican Republic</item>
+
+ <item>Ecuador</item>
+ <item>Egypt</item>
+ <item>El Salvador</item>
+ <item>Equatorial Guinea</item>
+ <item>Eritrea</item>
+ <item>Estonia</item>
+ <item>Ethiopia</item>
+
+ <item>Fiji</item>
+ <item>Finland</item>
+ <item>France</item>
+
+ <item>Gabon</item>
+ <item>Gambia, The</item>
+ <item>Georgia</item>
+ <item>Ghana</item>
+ <item>Greece</item>
+ <item>Grenada</item>
+ <item>Guatemala</item>
+ <item>Guinea</item>
+ <item>Guinea-Bissau</item>
+ <item>Guyana</item>
+
+ <item>Haiti</item>
+ <item>Holy See</item>
+ <item>Honduras</item>
+ <item>Hong Kong</item>
+ <item>Hungary</item>
+
+ <item>Iceland</item>
+ <item>India</item>
+ <item>Indonesia</item>
+ <item>Iran</item>
+ <item>Iraq</item>
+ <item>Ireland</item>
+ <item>Israel</item>
+ <item>Italy</item>
+
+ <item>Jamaica</item>
+ <item>Japan</item>
+ <item>Jordan</item>
+
+ <item>Kazakhstan</item>
+ <item>Kenya</item>
+ <item>Kiribati</item>
+ <item>Korea, North</item>
+ <item>Korea, South</item>
+ <item>Kosovo</item>
+ <item>Kuwait</item>
+ <item>Kyrgyzstan</item>
+
+ <item>Laos</item>
+ <item>Latvia</item>
+ <item>Lebanon</item>
+ <item>Lesotho</item>
+ <item>Liberia</item>
+ <item>Libya</item>
+ <item>Liechtenstein</item>
+ <item>Lithuania</item>
+ <item>Luxembourg</item>
+
+ <item>Macau</item>
+ <item>Macedonia</item>
+ <item>Madagascar</item>
+ <item>Malawi</item>
+ <item>Malaysia</item>
+ <item>Maldives</item>
+ <item>Mali</item>
+ <item>Malta</item>
+ <item>Marshall Islands</item>
+ <item>Mauritania</item>
+ <item>Mauritius</item>
+ <item>Mexico</item>
+ <item>Micronesia</item>
+ <item>Moldova</item>
+ <item>Monaco</item>
+ <item>Mongolia</item>
+ <item>Montenegro</item>
+ <item>Morocco</item>
+ <item>Mozambique</item>
+
+ <item>Namibia</item>
+ <item>Nauru</item>
+ <item>Nepal</item>
+ <item>Netherlands</item>
+ <item>Netherlands Antilles</item>
+ <item>New Zealand</item>
+ <item>Nicaragua</item>
+ <item>Niger</item>
+ <item>Nigeria</item>
+ <item>North Korea</item>
+ <item>Norway</item>
+
+ <item>Oman</item>
+
+ <item>Pakistan</item>
+ <item>Palau</item>
+ <item>Palestinian Territories</item>
+ <item>Panama</item>
+ <item>Papua New Guinea</item>
+ <item>Paraguay</item>
+ <item>Peru</item>
+ <item>Philippines</item>
+ <item>Poland</item>
+ <item>Portugal</item>
+
+ <item>Qatar</item>
+
+ <item>Romania</item>
+ <item>Russia</item>
+ <item>Rwanda</item>
+
+ <item>Saint Kitts and Nevis</item>
+ <item>Saint Lucia</item>
+ <item>Saint Vincent and the Grenadines</item>
+ <item>Samoa</item>
+ <item>San Marino</item>
+ <item>Sao Tome and Principe</item>
+ <item>Saudi Arabia</item>
+ <item>Senegal</item>
+ <item>Serbia</item>
+ <item>Seychelles</item>
+ <item>Sierra Leone</item>
+ <item>Singapore</item>
+ <item>Slovakia</item>
+ <item>Slovenia</item>
+ <item>Solomon Islands</item>
+ <item>Somalia</item>
+ <item>South Africa</item>
+ <item>South Korea</item>
+ <item>South Sudan</item>
+ <item>Spain</item>
+ <item>Sri Lanka</item>
+ <item>Sudan</item>
+ <item>Suriname</item>
+ <item>Swaziland</item>
+ <item>Sweden</item>
+ <item>Switzerland</item>
+ <item>Syria</item>
+
+ <item>Taiwan</item>
+ <item>Tajikistan</item>
+ <item>Tanzania</item>
+ <item>Thailand </item>
+ <item>Timor-Leste</item>
+ <item>Togo</item>
+ <item>Tonga</item>
+ <item>Trinidad and Tobago</item>
+ <item>Tunisia</item>
+ <item>Turkey</item>
+ <item>Turkmenistan</item>
+ <item>Tuvalu</item>
+
+ <item>Uganda</item>
+ <item>Ukraine</item>
+ <item>United Arab Emirates</item>
+ <item>United Kingdom</item>
+ <item>Uruguay</item>
+ <item>Uzbekistan</item>
+
+ <item>Vanuatu</item>
+ <item>Venezuela</item>
+ <item>Vietnam</item>
+
+ <item>Yemen</item>
+
+ <item>Zambia</item>
+ <item>Zimbabwe</item>
+ </string-array>
+</resources>
diff --git a/libraries/StickyListHeaders/sample/res/values/colors.xml b/libraries/StickyListHeaders/sample/res/values/colors.xml
new file mode 100644
index 000000000..601687e2e
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/values/colors.xml
@@ -0,0 +1,7 @@
+<resources>
+
+ <color name="header_normal">#ffe74c3c</color>
+ <color name="header_pressed">#ffc0392b</color>
+ <color name="menu_section_header">#FFDDDDDD</color>
+
+</resources> \ No newline at end of file
diff --git a/libraries/StickyListHeaders/sample/res/values/strings.xml b/libraries/StickyListHeaders/sample/res/values/strings.xml
new file mode 100644
index 000000000..6beadbe75
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/values/strings.xml
@@ -0,0 +1,20 @@
+<resources>
+
+ <string name="app_name">StickyListHeaders Sample</string>
+ <string name="restore">Restore</string>
+ <string name="update">Update</string>
+ <string name="clear">Clear</string>
+ <string name="empty">Empty Adapter</string>
+ <string name="drawer_open">Drawer Open</string>
+ <string name="drawer_close">Drawer Close</string>
+ <string name="options">OPTIONS</string>
+ <string name="actions">ACTIONS</string>
+ <string name="restore_list">Restore list</string>
+ <string name="update_list">Update list</string>
+ <string name="clear_list">Clear list</string>
+ <string name="sticky_header">Sticky header</string>
+ <string name="fade_header">Fade header</string>
+ <string name="draw_behind_header">Draw behind header</string>
+ <string name="fast_scroll">Fast scroll</string>
+
+</resources> \ No newline at end of file
diff --git a/libraries/StickyListHeaders/sample/res/values/style.xml b/libraries/StickyListHeaders/sample/res/values/style.xml
new file mode 100644
index 000000000..b34634b58
--- /dev/null
+++ b/libraries/StickyListHeaders/sample/res/values/style.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <style name="MenuSectionHeader">
+ <item name="android:padding">5dp</item>
+ <item name="android:textStyle">bold</item>
+ <item name="android:textColor">@color/menu_section_header</item>
+ <item name="android:textSize">14sp</item>
+ </style>
+</resources> \ No newline at end of file