2012-11-24 17:14:32 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<resources>
|
|
|
|
|
|
|
|
<declare-styleable name="PullToRefresh">
|
2013-01-03 08:40:52 -05:00
|
|
|
|
|
|
|
<!-- A drawable to use as the background of the Refreshable View -->
|
|
|
|
<attr name="ptrRefreshableViewBackground" format="reference|color" />
|
|
|
|
|
|
|
|
<!-- A drawable to use as the background of the Header and Footer Loading Views -->
|
2012-11-24 17:14:32 -05:00
|
|
|
<attr name="ptrHeaderBackground" format="reference|color" />
|
2013-01-03 08:40:52 -05:00
|
|
|
|
|
|
|
<!-- Text Color of the Header and Footer Loading Views -->
|
2012-11-24 17:14:32 -05:00
|
|
|
<attr name="ptrHeaderTextColor" format="reference|color" />
|
2013-01-03 08:40:52 -05:00
|
|
|
|
|
|
|
<!-- Text Color of the Header and Footer Loading Views Sub Header -->
|
2012-11-24 17:14:32 -05:00
|
|
|
<attr name="ptrHeaderSubTextColor" format="reference|color" />
|
2013-01-03 08:40:52 -05:00
|
|
|
|
|
|
|
<!-- Mode of Pull-to-Refresh that should be used -->
|
2012-11-24 17:14:32 -05:00
|
|
|
<attr name="ptrMode">
|
|
|
|
<flag name="disabled" value="0x0" />
|
2013-01-03 08:40:52 -05:00
|
|
|
<flag name="pullFromStart" value="0x1" />
|
|
|
|
<flag name="pullFromEnd" value="0x2" />
|
|
|
|
<flag name="both" value="0x3" />
|
|
|
|
<flag name="manualOnly" value="0x4" />
|
|
|
|
|
|
|
|
<!-- These last two are depreacted -->
|
2012-11-24 17:14:32 -05:00
|
|
|
<flag name="pullDownFromTop" value="0x1" />
|
|
|
|
<flag name="pullUpFromBottom" value="0x2" />
|
|
|
|
</attr>
|
2013-01-03 08:40:52 -05:00
|
|
|
|
|
|
|
<!-- Whether the Indicator overlay(s) should be used -->
|
2012-11-24 17:14:32 -05:00
|
|
|
<attr name="ptrShowIndicator" format="reference|boolean" />
|
2013-01-03 08:40:52 -05:00
|
|
|
|
|
|
|
<!-- Drawable to use as Loading Indicator. Changes both Header and Footer. -->
|
2012-11-24 17:14:32 -05:00
|
|
|
<attr name="ptrDrawable" format="reference" />
|
2013-01-03 08:40:52 -05:00
|
|
|
|
|
|
|
<!-- Drawable to use as Loading Indicator in the Header View. Overrides value set in ptrDrawable. -->
|
|
|
|
<attr name="ptrDrawableStart" format="reference" />
|
|
|
|
|
|
|
|
<!-- Drawable to use as Loading Indicator in the Footer View. Overrides value set in ptrDrawable. -->
|
|
|
|
<attr name="ptrDrawableEnd" format="reference" />
|
|
|
|
|
|
|
|
<!-- Whether Android's built-in Over Scroll should be utilised for Pull-to-Refresh. -->
|
2012-11-24 17:14:32 -05:00
|
|
|
<attr name="ptrOverScroll" format="reference|boolean" />
|
2013-01-03 08:40:52 -05:00
|
|
|
|
|
|
|
<!-- Base text color, typeface, size, and style for Header and Footer Loading Views -->
|
2012-11-24 17:14:32 -05:00
|
|
|
<attr name="ptrHeaderTextAppearance" format="reference" />
|
2013-01-03 08:40:52 -05:00
|
|
|
|
|
|
|
<!-- Base text color, typeface, size, and style for Header and Footer Loading Views Sub Header -->
|
2012-11-24 17:14:32 -05:00
|
|
|
<attr name="ptrSubHeaderTextAppearance" format="reference" />
|
2013-01-03 08:40:52 -05:00
|
|
|
|
|
|
|
<!-- Style of Animation should be used displayed when pulling. -->
|
2012-11-24 17:14:32 -05:00
|
|
|
<attr name="ptrAnimationStyle">
|
|
|
|
<flag name="rotate" value="0x0" />
|
|
|
|
<flag name="flip" value="0x1" />
|
|
|
|
</attr>
|
2013-01-03 08:40:52 -05:00
|
|
|
|
|
|
|
<!-- Whether the user can scroll while the View is Refreshing -->
|
|
|
|
<attr name="ptrScrollingWhileRefreshingEnabled" format="reference|boolean" />
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Whether PullToRefreshListView has it's extras enabled. This allows the user to be
|
|
|
|
able to scroll while refreshing, and behaves better. It acheives this by adding
|
|
|
|
Header and/or Footer Views to the ListView.
|
|
|
|
-->
|
|
|
|
<attr name="ptrListViewExtrasEnabled" format="reference|boolean" />
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Whether the Drawable should be continually rotated as you pull. This only
|
|
|
|
takes effect when using the 'Rotate' Animation Style.
|
|
|
|
-->
|
|
|
|
<attr name="ptrRotateDrawableWhilePulling" format="reference|boolean" />
|
|
|
|
|
|
|
|
<!-- BELOW HERE ARE DEPRECEATED. DO NOT USE. -->
|
|
|
|
<attr name="ptrAdapterViewBackground" format="reference|color" />
|
|
|
|
<attr name="ptrDrawableTop" format="reference" />
|
|
|
|
<attr name="ptrDrawableBottom" format="reference" />
|
2012-11-24 17:14:32 -05:00
|
|
|
</declare-styleable>
|
|
|
|
|
2013-01-03 08:40:52 -05:00
|
|
|
</resources>
|