MultiChoiceAdapter
==================
MultiChoiceAdapter is an implementation of ListAdapter which adds support for modal multiple choice selection as in the native Gmail app.
It provides a functionality similar to that of the [<tt>CHOICE_MODE_MULTIPLE_MODAL</tt>][1] ListView mode, with two additional benefits:
* It's easier to use, as it keeps count of the selected items, updates their background accordingly and handles checkboxes transparently.
* It is compatible with every version of Android from 2.x. Of course, this implies that your project must use [ActionBarSherlock][2].
![Example Image][3]
Try out the sample application:
<a href="https://play.google.com/store/apps/details?id=com.manuelpeinado.multichoiceadapter.demo">
<img alt="Android app on Google Play"
src="https://developer.android.com/images/brand/en_app_rgb_wo_45.png" />
</a>
Or browse the [source code of the sample application][5] for a complete example of use.
Including in your project
-------------------------
If you’re using Eclipse with the ADT plugin you can include MultiChoiceAdapter as a library project. Create a new Android project using the library/ folder as the existing source. Then, open the properties of this new project and, in the 'Android' category, add a reference to the ActionBarSherlock library project. Finally, in your application project properties, add a reference to the created library project.
If you use maven to build your Android project you can simply add a dependency for this library.
```xml
<dependency>
<groupId>com.github.manuelpeinado.multichoiceadapter</groupId>
<artifactId>multichoiceadapter</artifactId>
<version>2.0.0</version>
<type>apklib</type>
</dependency>
```
Usage
---------
Check any of the provided tutorials:
* [Using MultiChoiceArrayAdapter][8]
* [Using MultiChoiceBaseAdapter][9]
* [Using MultiChoiceSimpleCursorAdapter][10]
* [Usage with GridView][11]
Customization
---------------------
You can customize the way the adapter behaves when an item is clicked and **the action mode was already active**. To do so, add an item named <tt>multiChoiceAdapterStyle</tt> to your theme, and have it reference an additional style which you define like this:
```xml
<style name="MyCustomMultiChoiceAdapter">
<item name="itemClickInActionMode">selectItem</item>
</style>
```
Two values are supported:
* <tt>selectItem</tt>. Changes the selection state of the clicked item, just as if it had been long clicked. This is what the native MULTICHOICE_MODAL mode of ListView does, and what almost every app does, and thus the default value.
* <tt>openItem</tt>. Opens the clicked item, just as if it had been clicked outside of the action mode. This is what the native Gmail app does.
Libraries used
--------------------
* [ActionBarSherlock][2] by Jake Wharton
* The sample app uses the [ProviGen library][6] by Timothee Jeannin
Who's using it
--------------
* [My App List][7]. With this app you can save installed applications in a list to restore them after flash or install a new ROM.
*Does your app use MultiChoiceAdapter? If you want to be featured on this list drop me a line.*
Developed By
--------------------
Manuel Peinado Gallego - <manuel.peinado@gmail.com>
<a href="https://twitter.com/mpg2">
<img alt="Follow me on Twitter"
src="https://raw.github.com/ManuelPeinado/NumericPageIndicator/master/art/twitter.png" />
</a>
<a href="https://plus.google.com/106514622630861903655">
<img alt="Follow me on Twitter"
src="https://raw.github.com/ManuelPeinado/NumericPageIndicator/master/art/google-plus.png" />
</a>
<a href="http://www.linkedin.com/pub/manuel-peinado-gallego/1b/435/685">
<img alt="Follow me on Twitter"
src="https://raw.github.com/ManuelPeinado/NumericPageIndicator/master/art/linkedin.png" />
License
-----------
Copyright 2013 Manuel Peinado
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
[1]: http://developer.android.com/reference/android/widget/AbsListView.MultiChoiceModeListener.html
[2]: http://actionbarsherlock.com
[3]: https://raw.github.com/ManuelPeinado/MultiChoiceAdapter/master/art/readme_pic.png
[4]: https://play.google.com/store/apps/details?id=com.manuelpeinado.multichoiceadapter.demo
[5]: https://github.com/ManuelPeinado/MultiChoiceAdapter/tree/master/sample
[6]: https://github.com/TimotheeJeannin/ProviGen
[7]: https://play.google.com/store/apps/details?id=com.projectsexception.myapplist
[8]: https://github.com/ManuelPeinado/MultiChoiceAdapter/wiki/MultiChoiceArrayAdapter-tutorial
[9]: https://github.com/ManuelPeinado/MultiChoiceAdapter/wiki/MultiChoiceBaseAdapter-tutorial
[10]: https://github.com/ManuelPeinado/MultiChoiceAdapter/wiki/MultiChoiceSimpleCursorAdapter-tutorial
[11]: https://github.com/ManuelPeinado/MultiChoiceAdapter/wiki/Gallery-tutorial
没有合适的资源?快使用搜索试试~ 我知道了~
MultiChoiceAdapter-master.zip项目安卓应用源码下载

共101个文件
java:42个
xml:27个
png:21个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 114 浏览量
2022-03-09
02:32:34
上传
评论
收藏 5.29MB ZIP 举报
温馨提示
MultiChoiceAdapter-master.zip项目安卓应用源码下载MultiChoiceAdapter-master.zip项目安卓应用源码下载 1.适合学生毕业设计研究参考 2.适合个人学习研究参考 3.适合公司开发项目技术参考
资源推荐
资源详情
资源评论


















收起资源包目录





































































































共 101 条
- 1
- 2
资源评论


yxkfw
- 粉丝: 67
- 资源: 2万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制
