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 下载量 5 浏览量
2022-03-09
02:32:34
上传
评论
收藏 5.29MB ZIP 举报
温馨提示
MultiChoiceAdapter-master.zip项目安卓应用源码下载MultiChoiceAdapter-master.zip项目安卓应用源码下载 1.适合学生毕业设计研究参考 2.适合个人学习研究参考 3.适合公司开发项目技术参考
资源推荐
资源详情
资源评论
收起资源包目录
MultiChoiceAdapter-master.zip项目安卓应用源码下载 (101个子文件)
.gitignore 326B
android-support-v4.jar 384KB
ProviGenProvider.java 11KB
MultiChoiceAdapterHelper.java 10KB
MultiChoiceBaseAdapter.java 7KB
SimpleCursorAdapterActivity.java 5KB
MultiChoiceArrayAdapter.java 4KB
MyBaseAdapter.java 4KB
TwoLinesArrayAdapter.java 4KB
GalleryAdapter.java 3KB
ArrayAdapterActivity.java 3KB
ContractHolder.java 3KB
MultiChoiceSimpleCursorAdapter.java 3KB
TwoLinesArrayAdapterActivity.java 3KB
BaseAdapterActivity.java 3KB
GridActivity.java 3KB
GalleryActivity.java 3KB
MyArrayAdapter.java 3KB
ProviGenOpenHelper.java 3KB
HomeActivity.java 3KB
CheckableRelativeLayout.java 3KB
CheckableLinearLayout.java 3KB
MySimpleCursorAdapter.java 3KB
OnConflict.java 3KB
MyGridAdapter.java 2KB
CheckableTwoLineListItem.java 2KB
CheckableImageView.java 2KB
CheckableFrameLayout.java 1KB
MultiChoiceAdapter.java 1KB
ItemClickInActionModePolicy.java 1KB
Building.java 1KB
ActivityInfo.java 986B
Contract.java 947B
Column.java 846B
ContractHolderList.java 833B
DatabaseField.java 787B
ContentUri.java 740B
NotNull.java 696B
Unique.java 693B
BuildingsContract.java 653B
Id.java 496B
ProviGenBaseContract.java 475B
BuildingsContentProvider.java 371B
InvalidContractException.java 273B
chrysler.jpg 81KB
empire_state.jpg 57KB
bank_of_america.jpg 50KB
one_wtc.jpg 30KB
README.md 5KB
CHANGELOG.md 3KB
screenshot-4.png 1.41MB
screenshot-3.png 598KB
screenshot-1.png 589KB
screenshot-2.png 585KB
screenshot-0.png 582KB
readme_pic.png 401KB
google_play_screenshot_2.png 325KB
screenshot-4-small.png 133KB
google_play_screenshot_1.png 92KB
google_play_screenshot_0.png 91KB
high_res_icon.png 38KB
ic_launcher.png 9KB
ic_launcher.png 5KB
ic_launcher.png 4KB
ic_launcher.png 2KB
ic_content_discard.png 2KB
ic_social_share.png 2KB
ic_content_discard.png 2KB
ic_social_share.png 2KB
ic_content_discard.png 1KB
ic_social_share.png 1KB
project.properties 636B
project.properties 602B
LICENSE.txt 11KB
pom.xml 7KB
pom.xml 2KB
AndroidManifest.xml 2KB
baseadapter_list_item.xml 2KB
pom.xml 1KB
mca__attrs.xml 1KB
mca__simple_list_item_checkable_2.xml 1KB
strings.xml 808B
arrays.xml 681B
mca__simple_list_item_checkable_1.xml 488B
my_action_mode.xml 454B
activity_gallery.xml 437B
mca__colors.xml 437B
activity_grid.xml 437B
grid_item.xml 435B
mca__styles.xml 426B
mca__gallery_selector.xml 372B
mca__list_item_selector.xml 371B
activity_main.xml 365B
gallery_item.xml 355B
custom_list_item_background.xml 334B
styles.xml 312B
AndroidManifest.xml 297B
mca__grid_item_fg_pressed.xml 296B
activity_main.xml 280B
mca__plurals.xml 224B
共 101 条
- 1
- 2
资源评论
yxkfw
- 粉丝: 77
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功