Add pinned listview lib
This commit is contained in:
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 |
@@ -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"
|
||||
/>
|
||||
27
libraries/pinned-section-listview/example/res/menu/main.xml
Normal file
27
libraries/pinned-section-listview/example/res/menu/main.xml
Normal 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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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 & Footer</string>
|
||||
|
||||
</resources>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user