Add pinned listview lib

This commit is contained in:
Dominik Schürmann
2013-12-31 01:41:21 +01:00
parent daadc30044
commit cdb3e04b47
30 changed files with 1114 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,8 @@
<com.hb.views.PinnedSectionListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:headerDividersEnabled="false"
android:footerDividersEnabled="false"
android:divider="@null"
/>

View File

@@ -0,0 +1,27 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/action_fastscroll"
android:showAsAction="never"
android:title="@string/action_fastscroll"
android:checkable="true"/>
<item
android:id="@+id/action_addpadding"
android:showAsAction="never"
android:title="@string/action_addpadding"
android:checkable="true"/>
<item
android:id="@+id/action_showShadow"
android:showAsAction="never"
android:title="@string/action_showShadow"
android:checkable="true"/>
<item
android:id="@+id/action_showHeaderAndFooter"
android:showAsAction="never"
android:title="@string/action_showHeaderAndFooter"
android:checkable="true"/>
</menu>

View File

@@ -0,0 +1,11 @@
<resources>
<!--
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
<!-- API 11 theme customizations can go here. -->
</style>
</resources>

View File

@@ -0,0 +1,12 @@
<resources>
<!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- API 14 theme customizations can go here. -->
</style>
</resources>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="red_light">#ffff4444</color>
<color name="green_light">#ff99cc00</color>
<color name="orange_light">#ffffbb33</color>
<color name="blue_light">#ff33b5e5</color>
<!-- Went to: $android-sdk > Android:v14 > res > values > colors.xml and copied the colors-->
</resources>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Pinned Section Demo</string>
<string name="action_fastscroll">Fast scroll</string>
<string name="action_addpadding">Add padding</string>
<string name="action_showShadow">Show shadow</string>
<string name="action_showHeaderAndFooter">Show Header &amp; Footer</string>
</resources>

View File

@@ -0,0 +1,20 @@
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
</resources>