# HorizontalListView
HorizontalListView is an Android ListView widget which scrolls in a horizontal manner (in contrast with the SDK-provided ListView which scrolls vertically).
## Usage
To use in an XML layout:
0. Include The Library into your project
0. Make sure you are running ADT version 17 or greater
0. Add this XML namespace to your layout `xmlns:widget="http://schemas.android.com/apk/res-auto"`
0. Create the HorizontalListView as `com.meetme.android.horizontallistview.HorizontalListView`
**Example**:
<com.meetme.android.horizontallistview.HorizontalListView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:widget="http://schemas.android.com/apk/res-auto"
android:id="@+id/HorizontalListView"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:divider="#878787"
widget:dividerWidth="2dp" />
Notice you set the `dividerWidth` via the XML namespace you just defined as it is a custom attribute. All other attributes can only be set normally via the `android` namespace.
## Known Issues
- Currently this widget only supports uniform width items. When the item width is not uniform it leads to the UI rendering in inconsistent corrupted states.
## Known limitations
- Does not support trackball/d-pad navigation
- Does not support scroll bars
- Does not support header or footer views
- Does not support disabled items
## Contributors
- [Bill Donahue](https://github.com/bdonahue)
## Licenses
This library licensed under the MIT license. This library makes use of code originally developed and licensed by [Paul Soucy](paul@dev-smart.com).
The MIT License Copyright (c) 2011 Paul Soucy (paul@dev-smart.com)
The MIT License Copyright (c) 2013 MeetMe, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Android-HorizontalListView-master.zip (31个子文件)
Android-HorizontalListView-master
AndroidHorizontalListViewSample
res
drawable-ldpi
ic_launcher.png 2KB
values-v11
styles.xml 323B
menu
activity_main.xml 249B
values-v14
styles.xml 380B
drawable-hdpi
ic_launcher.png 8KB
drawable-xhdpi
ic_launcher.png 13KB
values
strings.xml 468B
styles.xml 679B
drawable-mdpi
ic_launcher.png 4KB
layout
activity_main.xml 2KB
custom_data_view.xml 534B
proguard-project.txt 781B
ic_launcher-web.png 54KB
src
com
meetme
android
horizontallistview
sample
MainActivity.java 4KB
CustomData.java 593B
CustomArrayAdapter.java 2KB
.project 834B
.classpath 356B
project.properties 620B
AndroidManifest.xml 903B
libs
android-support-v4.jar 377KB
AndroidHorizontalListView
res
values
attrs.xml 418B
proguard-project.txt 781B
src
com
meetme
android
horizontallistview
HorizontalListView.java 50KB
.project 828B
.classpath 356B
project.properties 584B
AndroidManifest.xml 283B
libs
android-support-v4.jar 377KB
.gitignore 186B
README.md 3KB
共 31 条
- 1
资源评论
- huaiyujin842017-06-15有点小问题,解决了
levis1992
- 粉丝: 1
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功