├── .gitignore ├── ChipsLibrary ├── .classpath ├── .project ├── Android.mk ├── AndroidManifest.xml ├── libs │ └── android-support-v4.jar ├── lint.xml ├── project.properties ├── res │ ├── drawable-hdpi │ │ ├── chip_background.9.png │ │ ├── chip_background_invalid.9.png │ │ ├── chip_background_selected.9.png │ │ ├── chip_delete.png │ │ └── ic_contact_picture.png │ ├── drawable-mdpi │ │ ├── chip_background.9.png │ │ ├── chip_background_invalid.9.png │ │ ├── chip_background_selected.9.png │ │ ├── chip_delete.png │ │ └── ic_contact_picture.png │ ├── drawable-xhdpi │ │ ├── chip_background.9.png │ │ ├── chip_background_invalid.9.png │ │ ├── chip_background_selected.9.png │ │ └── ic_contact_picture.png │ ├── drawable │ │ ├── list_item_font_primary.xml │ │ └── list_item_font_secondary.xml │ ├── layout │ │ ├── chips_alternate_item.xml │ │ ├── chips_recipient_dropdown_item.xml │ │ ├── copy_chip_dialog_layout.xml │ │ └── more_item.xml │ ├── values-af │ │ └── strings.xml │ ├── values-am │ │ └── strings.xml │ ├── values-ar │ │ └── strings.xml │ ├── values-be │ │ └── strings.xml │ ├── values-bg │ │ └── strings.xml │ ├── values-ca │ │ └── strings.xml │ ├── values-cs │ │ └── strings.xml │ ├── values-da │ │ └── strings.xml │ ├── values-de │ │ └── strings.xml │ ├── values-el │ │ └── strings.xml │ ├── values-en-rGB │ │ └── strings.xml │ ├── values-es-rUS │ │ └── strings.xml │ ├── values-es │ │ └── strings.xml │ ├── values-et │ │ └── strings.xml │ ├── values-fa │ │ └── strings.xml │ ├── values-fi │ │ └── strings.xml │ ├── values-fr │ │ └── strings.xml │ ├── values-hi │ │ └── strings.xml │ ├── values-hr │ │ └── strings.xml │ ├── values-hu │ │ └── strings.xml │ ├── values-in │ │ └── strings.xml │ ├── values-it │ │ └── strings.xml │ ├── values-iw │ │ └── strings.xml │ ├── values-ja │ │ └── strings.xml │ ├── values-ko │ │ └── strings.xml │ ├── values-land │ │ └── dimen.xml │ ├── values-lt │ │ └── strings.xml │ ├── values-lv │ │ └── strings.xml │ ├── values-ms │ │ └── strings.xml │ ├── values-nb │ │ └── strings.xml │ ├── values-nl │ │ └── strings.xml │ ├── values-pl │ │ └── strings.xml │ ├── values-pt-rPT │ │ └── strings.xml │ ├── values-pt │ │ └── strings.xml │ ├── values-ro │ │ └── strings.xml │ ├── values-ru │ │ └── strings.xml │ ├── values-sk │ │ └── strings.xml │ ├── values-sl │ │ └── strings.xml │ ├── values-sr │ │ └── strings.xml │ ├── values-sv │ │ └── strings.xml │ ├── values-sw │ │ └── strings.xml │ ├── values-sw600dp-land │ │ └── dimen.xml │ ├── values-sw600dp │ │ └── styles.xml │ ├── values-th │ │ └── strings.xml │ ├── values-tl │ │ └── strings.xml │ ├── values-tr │ │ └── strings.xml │ ├── values-uk │ │ └── strings.xml │ ├── values-vi │ │ └── strings.xml │ ├── values-zh-rCN │ │ └── strings.xml │ ├── values-zh-rTW │ │ └── strings.xml │ ├── values-zu │ │ └── strings.xml │ └── values │ │ ├── attrs.xml │ │ ├── dimen.xml │ │ ├── strings.xml │ │ └── styles.xml └── src │ └── com │ └── android │ └── ex │ └── chips │ ├── AccountSpecifier.java │ ├── BaseRecipientAdapter.java │ ├── ChipsUtil.java │ ├── Queries.java │ ├── RecipientAlternatesAdapter.java │ ├── RecipientEditTextView.java │ ├── RecipientEntry.java │ ├── SingleRecipientArrayAdapter.java │ └── recipientchip │ ├── BaseRecipientChip.java │ ├── DrawableRecipientChip.java │ ├── InvisibleRecipientChip.java │ ├── SimpleRecipientChip.java │ └── VisibleRecipientChip.java ├── ChipsSample ├── .classpath ├── .project ├── Android.mk ├── AndroidManifest.xml ├── lint.xml ├── project.properties ├── res │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── layout │ │ ├── contact_recipient_sample_fragment.xml │ │ └── custom_recipient_sample_fragment.xml │ ├── menu │ │ └── activity_main.xml │ ├── values-af │ │ └── strings.xml │ ├── values-am │ │ └── strings.xml │ ├── values-ar │ │ └── strings.xml │ ├── values-bg │ │ └── strings.xml │ ├── values-ca │ │ └── strings.xml │ ├── values-cs │ │ └── strings.xml │ ├── values-da │ │ └── strings.xml │ ├── values-de │ │ └── strings.xml │ ├── values-el │ │ └── strings.xml │ ├── values-en-rGB │ │ └── strings.xml │ ├── values-en-rIN │ │ └── strings.xml │ ├── values-es-rUS │ │ └── strings.xml │ ├── values-es │ │ └── strings.xml │ ├── values-et-rEE │ │ └── strings.xml │ ├── values-fa │ │ └── strings.xml │ ├── values-fi │ │ └── strings.xml │ ├── values-fr-rCA │ │ └── strings.xml │ ├── values-fr │ │ └── strings.xml │ ├── values-hi │ │ └── strings.xml │ ├── values-hr │ │ └── strings.xml │ ├── values-hu │ │ └── strings.xml │ ├── values-hy-rAM │ │ └── strings.xml │ ├── values-in │ │ └── strings.xml │ ├── values-it │ │ └── strings.xml │ ├── values-iw │ │ └── strings.xml │ ├── values-ja │ │ └── strings.xml │ ├── values-ka-rGE │ │ └── strings.xml │ ├── values-km-rKH │ │ └── strings.xml │ ├── values-ko │ │ └── strings.xml │ ├── values-lo-rLA │ │ └── strings.xml │ ├── values-lt │ │ └── strings.xml │ ├── values-lv │ │ └── strings.xml │ ├── values-mn-rMN │ │ └── strings.xml │ ├── values-ms-rMY │ │ └── strings.xml │ ├── values-nb │ │ └── strings.xml │ ├── values-nl │ │ └── strings.xml │ ├── values-pl │ │ └── strings.xml │ ├── values-pt-rPT │ │ └── strings.xml │ ├── values-pt │ │ └── strings.xml │ ├── values-ro │ │ └── strings.xml │ ├── values-ru │ │ └── strings.xml │ ├── values-sk │ │ └── strings.xml │ ├── values-sl │ │ └── strings.xml │ ├── values-sr │ │ └── strings.xml │ ├── values-sv │ │ └── strings.xml │ ├── values-sw │ │ └── strings.xml │ ├── values-th │ │ └── strings.xml │ ├── values-tl │ │ └── strings.xml │ ├── values-tr │ │ └── strings.xml │ ├── values-uk │ │ └── strings.xml │ ├── values-vi │ │ └── strings.xml │ ├── values-zh-rCN │ │ └── strings.xml │ ├── values-zh-rHK │ │ └── strings.xml │ ├── values-zh-rTW │ │ └── strings.xml │ ├── values-zu │ │ └── strings.xml │ └── values │ │ └── strings.xml └── src │ └── com │ └── android │ └── ex │ └── chips │ └── sample │ ├── ContactsRecipientsFragment.java │ ├── CustomRecipientEditTextView.java │ ├── CustomRecipientFragment.java │ └── MainActivity.java ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | /ChipsLibrary/gen 2 | /ChipsLibrary/bin 3 | /ChipsSample/bin 4 | /ChipsSample/gen 5 | -------------------------------------------------------------------------------- /ChipsLibrary/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ChipsLibrary/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ChipsLibrary 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /ChipsLibrary/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2011 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | include $(CLEAR_VARS) 18 | LOCAL_MODULE := android-common-chips 19 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4 20 | LOCAL_SDK_VERSION := 14 21 | LOCAL_SRC_FILES := \ 22 | $(call all-java-files-under, src) \ 23 | $(call all-logtags-files-under, src) 24 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 25 | include $(BUILD_STATIC_JAVA_LIBRARY) 26 | 27 | ################################################## 28 | # Build all sub-directories 29 | 30 | include $(call all-makefiles-under,$(LOCAL_PATH)) 31 | -------------------------------------------------------------------------------- /ChipsLibrary/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /ChipsLibrary/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/libs/android-support-v4.jar -------------------------------------------------------------------------------- /ChipsLibrary/lint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /ChipsLibrary/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | android.library=true 15 | target=android-19 16 | -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-hdpi/chip_background.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-hdpi/chip_background.9.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-hdpi/chip_background_invalid.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-hdpi/chip_background_invalid.9.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-hdpi/chip_background_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-hdpi/chip_background_selected.9.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-hdpi/chip_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-hdpi/chip_delete.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-hdpi/ic_contact_picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-hdpi/ic_contact_picture.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-mdpi/chip_background.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-mdpi/chip_background.9.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-mdpi/chip_background_invalid.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-mdpi/chip_background_invalid.9.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-mdpi/chip_background_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-mdpi/chip_background_selected.9.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-mdpi/chip_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-mdpi/chip_delete.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-mdpi/ic_contact_picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-mdpi/ic_contact_picture.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-xhdpi/chip_background.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-xhdpi/chip_background.9.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-xhdpi/chip_background_invalid.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-xhdpi/chip_background_invalid.9.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-xhdpi/chip_background_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-xhdpi/chip_background_selected.9.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable-xhdpi/ic_contact_picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroidDeveloperLB/ChipsLibrary/0890ccaf3eb7504b52fd6436ac031fa0daf103d1/ChipsLibrary/res/drawable-xhdpi/ic_contact_picture.png -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable/list_item_font_primary.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /ChipsLibrary/res/drawable/list_item_font_secondary.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /ChipsLibrary/res/layout/chips_alternate_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /ChipsLibrary/res/layout/chips_recipient_dropdown_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 25 | 31 | 39 | 48 | 49 | 57 | 58 | -------------------------------------------------------------------------------- /ChipsLibrary/res/layout/copy_chip_dialog_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 |