Android的水平ListView:HorizontalVariableListView
Android的水平ListView。基于官方 ListView Google 代碼。這個庫還包含一個 ExpandableHListView,同樣是基于官方ExpandableListView。
Features
它支持ListView控件的大部功能。有支持像在屬性的細微差別"hlv_dividerWidth"代替默認的 "dividerHeight".
This is the styleable used for the HListView class:
<declare-styleable name="HListView">
<attr name="android:entries" />
<attr name="android:divider" />
<attr name="hlv_dividerWidth" format="dimension" />
<attr name="hlv_headerDividersEnabled" format="boolean" />
<attr name="hlv_footerDividersEnabled" format="boolean" />
<attr name="hlv_overScrollHeader" format="reference|color" />
<attr name="hlv_overScrollFooter" format="reference|color" />
<!--
When "wrap_content" is used as value of the layout_height property.
Pass the position, inside the adapter, of the view being used to measure the view
or '-1' to use the default behavior ( default is -1 )
-->
<attr name="hlv_measureWithChild" format="integer" />
</declare-styleable>
<declare-styleable name="AbsHListView">
<attr name="android:listSelector" />
<attr name="android:smoothScrollbar" />
<attr name="android:drawSelectorOnTop" />
<attr name="android:cacheColorHint" />
<attr name="android:scrollingCache" />
<attr name="android:choiceMode" />
<attr name="hlv_stackFromRight" format="boolean" />
<attr name="hlv_transcriptMode">
<enum name="disabled" value="0"/>
<enum name="normal" value="1" />
<enum name="alwaysScroll" value="2" />
</attr>
</declare-styleable>

本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!