Awesome
android-hybridchoice
This project demonstrates how to create a ListView
in Android that combines the behavior of CHOICE_MODE_SINGLE
and CHOICE_MODE_MULTIPLE_MODAL
. This means that an item in the list can be opened and simultaneously multiple items in the list can be chosen.
The GMail app, Play Store app and Google I/O 2013 app all exhibit this behavior with slight variations.
Take a look at this blog post for more details.
Copyright 2013 Kiran Rao
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.