├── .gradle ├── 4.10.1 │ ├── fileChanges │ │ └── last-build.bin │ ├── fileContent │ │ └── fileContent.lock │ ├── fileHashes │ │ ├── fileHashes.bin │ │ ├── fileHashes.lock │ │ └── resourceHashesCache.bin │ ├── gc.properties │ ├── javaCompile │ │ ├── classAnalysis.bin │ │ ├── jarAnalysis.bin │ │ ├── javaCompile.lock │ │ └── taskHistory.bin │ └── taskHistory │ │ ├── taskHistory.bin │ │ └── taskHistory.lock ├── buildOutputCleanup │ ├── buildOutputCleanup.lock │ ├── cache.properties │ └── outputFiles.bin └── vcs-1 │ └── gc.properties ├── .idea ├── caches │ ├── build_file_checksums.ser │ └── gradle_models.ser ├── encodings.xml ├── gradle.xml ├── libraries │ ├── Gradle__android_arch_core_common_1_1_1_jar.xml │ ├── Gradle__android_arch_core_runtime_1_1_1_aar.xml │ ├── Gradle__android_arch_lifecycle_common_1_1_1_jar.xml │ ├── Gradle__android_arch_lifecycle_livedata_1_1_1_aar.xml │ ├── Gradle__android_arch_lifecycle_livedata_core_1_1_1_aar.xml │ ├── Gradle__android_arch_lifecycle_runtime_1_1_1_aar.xml │ ├── Gradle__android_arch_lifecycle_viewmodel_1_1_1_aar.xml │ ├── Gradle__com_android_support_animated_vector_drawable_28_0_0_aar.xml │ ├── Gradle__com_android_support_appcompat_v7_28_0_0_aar.xml │ ├── Gradle__com_android_support_asynclayoutinflater_28_0_0_aar.xml │ ├── Gradle__com_android_support_cardview_v7_28_0_0_aar.xml │ ├── Gradle__com_android_support_collections_28_0_0_jar.xml │ ├── Gradle__com_android_support_constraint_constraint_layout_1_1_3_aar.xml │ ├── Gradle__com_android_support_constraint_constraint_layout_solver_1_1_3_jar.xml │ ├── Gradle__com_android_support_coordinatorlayout_28_0_0_aar.xml │ ├── Gradle__com_android_support_cursoradapter_28_0_0_aar.xml │ ├── Gradle__com_android_support_customview_28_0_0_aar.xml │ ├── Gradle__com_android_support_design_28_0_0_aar.xml │ ├── Gradle__com_android_support_documentfile_28_0_0_aar.xml │ ├── Gradle__com_android_support_drawerlayout_28_0_0_aar.xml │ ├── Gradle__com_android_support_interpolator_28_0_0_aar.xml │ ├── Gradle__com_android_support_loader_28_0_0_aar.xml │ ├── Gradle__com_android_support_localbroadcastmanager_28_0_0_aar.xml │ ├── Gradle__com_android_support_print_28_0_0_aar.xml │ ├── Gradle__com_android_support_recyclerview_v7_28_0_0_aar.xml │ ├── Gradle__com_android_support_slidingpanelayout_28_0_0_aar.xml │ ├── Gradle__com_android_support_support_annotations_28_0_0_jar.xml │ ├── Gradle__com_android_support_support_compat_28_0_0_aar.xml │ ├── Gradle__com_android_support_support_core_ui_28_0_0_aar.xml │ ├── Gradle__com_android_support_support_core_utils_28_0_0_aar.xml │ ├── Gradle__com_android_support_support_fragment_28_0_0_aar.xml │ ├── Gradle__com_android_support_support_vector_drawable_28_0_0_aar.xml │ ├── Gradle__com_android_support_swiperefreshlayout_28_0_0_aar.xml │ ├── Gradle__com_android_support_test_espresso_espresso_core_3_0_2_aar.xml │ ├── Gradle__com_android_support_test_espresso_espresso_idling_resource_3_0_2_aar.xml │ ├── Gradle__com_android_support_test_monitor_1_0_2_aar.xml │ ├── Gradle__com_android_support_test_runner_1_0_2_aar.xml │ ├── Gradle__com_android_support_transition_28_0_0_aar.xml │ ├── Gradle__com_android_support_versionedparcelable_28_0_0_aar.xml │ ├── Gradle__com_android_support_viewpager_28_0_0_aar.xml │ ├── Gradle__com_github_mahimrocky_TagView_1_0_1_aar.xml │ ├── Gradle__com_google_android_flexbox_1_0_0_aar.xml │ ├── Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml │ ├── Gradle__com_squareup_javawriter_2_1_1_jar.xml │ ├── Gradle__javax_inject_javax_inject_1_jar.xml │ ├── Gradle__junit_junit_4_12_jar.xml │ ├── Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml │ ├── Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml │ ├── Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml │ └── Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml ├── misc.xml ├── modules.xml ├── runConfigurations.xml ├── vcs.xml └── workspace.xml ├── README.md ├── TagView.iml ├── app ├── .gitignore ├── app.iml ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── skyhope │ │ └── tagview │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── skyhope │ │ │ └── tagview │ │ │ └── MainActivity.java │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── skyhope │ └── tagview │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── local.properties ├── materialtagview ├── .gitignore ├── build.gradle ├── materialtagview.iml ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── skyhope │ │ └── materialtagview │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── skyhope │ │ │ └── materialtagview │ │ │ ├── TagView.java │ │ │ ├── adapter │ │ │ └── TagViewAdapter.java │ │ │ ├── enums │ │ │ └── TagSeparator.java │ │ │ ├── interfaces │ │ │ ├── TagClickListener.java │ │ │ └── TagItemListener.java │ │ │ └── model │ │ │ └── TagModel.java │ └── res │ │ ├── drawable-hdpi │ │ └── ic_cancel.png │ │ ├── drawable-mdpi │ │ └── ic_cancel.png │ │ ├── drawable-xhdpi │ │ └── ic_cancel.png │ │ ├── drawable-xxhdpi │ │ └── ic_cancel.png │ │ ├── drawable-xxxhdpi │ │ └── ic_cancel.png │ │ ├── drawable │ │ └── drawable_tag.xml │ │ ├── layout │ │ ├── item_tag.xml │ │ └── tag_layout.xml │ │ └── values │ │ ├── attrs.xml │ │ ├── colors.xml │ │ └── strings.xml │ └── test │ └── java │ └── com │ └── skyhope │ └── materialtagview │ └── ExampleUnitTest.java ├── screenshot_2.png ├── screenshot_3.png └── settings.gradle /.gradle/4.10.1/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gradle/4.10.1/fileContent/fileContent.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/4.10.1/fileContent/fileContent.lock -------------------------------------------------------------------------------- /.gradle/4.10.1/fileHashes/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/4.10.1/fileHashes/fileHashes.bin -------------------------------------------------------------------------------- /.gradle/4.10.1/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/4.10.1/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /.gradle/4.10.1/fileHashes/resourceHashesCache.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/4.10.1/fileHashes/resourceHashesCache.bin -------------------------------------------------------------------------------- /.gradle/4.10.1/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/4.10.1/gc.properties -------------------------------------------------------------------------------- /.gradle/4.10.1/javaCompile/classAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/4.10.1/javaCompile/classAnalysis.bin -------------------------------------------------------------------------------- /.gradle/4.10.1/javaCompile/jarAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/4.10.1/javaCompile/jarAnalysis.bin -------------------------------------------------------------------------------- /.gradle/4.10.1/javaCompile/javaCompile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/4.10.1/javaCompile/javaCompile.lock -------------------------------------------------------------------------------- /.gradle/4.10.1/javaCompile/taskHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/4.10.1/javaCompile/taskHistory.bin -------------------------------------------------------------------------------- /.gradle/4.10.1/taskHistory/taskHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/4.10.1/taskHistory/taskHistory.bin -------------------------------------------------------------------------------- /.gradle/4.10.1/taskHistory/taskHistory.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/4.10.1/taskHistory/taskHistory.lock -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/buildOutputCleanup.lock: -------------------------------------------------------------------------------- 1 | lj1\U^#f -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/cache.properties: -------------------------------------------------------------------------------- 1 | #Mon Mar 18 15:33:13 BDT 2019 2 | gradle.version=4.10.1 3 | -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/outputFiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/buildOutputCleanup/outputFiles.bin -------------------------------------------------------------------------------- /.gradle/vcs-1/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.gradle/vcs-1/gc.properties -------------------------------------------------------------------------------- /.idea/caches/build_file_checksums.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.idea/caches/build_file_checksums.ser -------------------------------------------------------------------------------- /.idea/caches/gradle_models.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/.idea/caches/gradle_models.ser -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__android_arch_core_common_1_1_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__android_arch_core_runtime_1_1_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__android_arch_lifecycle_common_1_1_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__android_arch_lifecycle_livedata_1_1_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__android_arch_lifecycle_livedata_core_1_1_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__android_arch_lifecycle_runtime_1_1_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__android_arch_lifecycle_viewmodel_1_1_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_animated_vector_drawable_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_appcompat_v7_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_asynclayoutinflater_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_cardview_v7_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_collections_28_0_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_constraint_constraint_layout_1_1_3_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_constraint_constraint_layout_solver_1_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_coordinatorlayout_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_cursoradapter_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_customview_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_design_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_documentfile_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_drawerlayout_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_interpolator_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_loader_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_localbroadcastmanager_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_print_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_recyclerview_v7_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_slidingpanelayout_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_annotations_28_0_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_compat_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_core_ui_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_core_utils_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_fragment_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_vector_drawable_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_swiperefreshlayout_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_test_espresso_espresso_core_3_0_2_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_test_espresso_espresso_idling_resource_3_0_2_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_test_monitor_1_0_2_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_test_runner_1_0_2_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_transition_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_versionedparcelable_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_viewpager_28_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_github_mahimrocky_TagView_1_0_1_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_google_android_flexbox_1_0_0_aar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_squareup_javawriter_2_1_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__javax_inject_javax_inject_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__junit_junit_4_12_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 146 | 147 | 148 | 149 | addRecy 150 | 151 | 152 | 153 | 155 | 156 | 179 | 180 | 181 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 333 | 334 | 335 | 336 | 344 | 345 | 346 | 347 | 361 | 362 | 363 | 364 | 365 | 366 | 368 | 369 | 375 | 376 | 377 | 428 | 429 | 434 | 435 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 1552901564465 451 | 455 | 456 | 1553081100481 457 | 462 | 463 | 1565260300976 464 | 469 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 1.8 708 | 709 | 714 | 715 | 716 | 717 | 718 | 719 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Release](https://jitpack.io/v/mahimrocky/TagView.svg)](https://github.com/mahimrocky/TagView/releases/tag/1.0.3) 2 | # TagView 3 | 4 | This libirary help to pick up Text as Tag. Like **Skill** selection or other things what you want. You can call it **Tag with EditText** You can select specicfic text from showing list or from editText text. Easy to us and Simple library 5 | 6 | Sample 7 |

8 | 9 | 10 |

11 | 12 | # Root Gradle 13 | ```sh 14 | allprojects { 15 | repositories { 16 | ... 17 | maven { url 'https://jitpack.io' } 18 | } 19 | } 20 | ``` 21 | 22 | # App Gradle: 23 | 24 | you have to add below two dependency. Because library was build on **flexbox** 25 | 26 | ```sh 27 | dependencies { 28 | implementation 'com.google.android:flexbox:1.0.0' 29 | implementation 'com.github.mahimrocky:TagView:1.0.3' 30 | } 31 | ``` 32 | Ok Now starts **Implementation** part. You have to set just follwoing **xml** 33 | **Note:** No need to add extra Edit text for Tag selection. The xml file will auto provide 34 | 35 | ```sh 36 | 41 | ``` 42 | 43 | **And now here we wil discuss how we can use different property** 44 | 45 | In Activity you can use like: 46 | ```sh 47 | TagView tagView = findViewById(R.id.tag_view_test); 48 | ``` 49 | User can set **Tag** in two way 50 | 1.Typing text and enter **Special Character** 51 | 2.Select item from provided list 52 | 53 | So if you want to provide String list you can predefine Tag list by using: 54 | 55 | ```sh 56 | tagView.addTagSeparator(TagSeparator.AT_SEPARATOR); // @ seprator 57 | ``` 58 | 59 | or in XML you can set 60 | 61 | ```sh 62 | app:tag_separator="HASH_SEPARATOR" // Hash seperator 63 | ``` 64 | 65 | **To get Tag add or Remove listener** 66 | 67 | ```sh 68 | tagView.initTagListener(TagItemListener listener); // You can implement it 69 | ``` 70 | **To get selected tag** 71 | 72 | ```sh 73 | tagView.getSelectedTags();// that will return TagModel List 74 | ``` 75 | 76 | There are following property that you can use in **XML** section 77 | 78 | | Attributes | Purpose | 79 | | ------ | ------ | 80 | | ```app:tag_text_color```| To change Tag text color| 81 | | ```app:tag_background_color```| To change Tag Background color| 82 | | ```app:tag_limit```| To set how many tag will set| 83 | | ```app:close_icon```| To set remove button of each tag| 84 | | ```app:limit_error_text```| To set message if tag reach its limit| 85 | | ```app:tag_separator```| To set **Special Character** that entering in EditText will create a tag| 86 | 87 | **How you can set predefine tag list?** 88 | You can set List of String or array of String 89 | 90 | ```sh 91 | String[] tagList = new String[]{"Hello1", "Hello2", "Hello3"}; 92 | tagView.setTagList(tagList); 93 | 94 | ``` 95 | 96 | **The following methods to change property of tag** 97 | 98 | | Mtehod Name | Purpose | 99 | | ------ | ------ | 100 | | ```addTagLimit(int limit)```| To set Tag limit| 101 | | ```setTagBackgroundColor(int color)```| To set Tag background color| 102 | | ```setTagBackgroundColor(String color)```| To set Tag background color| 103 | | ```setTagTextColor(int color)```| To set Tag text color| 104 | | ```setTagTextColor(String color)```| To set Tag text color| 105 | | ```setMaximumTagLimitMessage(String message)```| To set Tag limit warning message| 106 | | ```setCrossButton(Drawable crossDrawable)```| To set Tag remove button| 107 | | ```setCrossButton(Bitmap crossBitmap)```| To set Tag remove button| 108 | | ```setTagList(List tagList)```| To set Predefine Tag list| 109 | | ```setTagList(String... tagList)```| To set Predefine Tag list as String array| 110 | | ```getSelectedTags()```| To get all selected TagList 111 | 112 | # Happy Coding 113 | -------------------------------------------------------------------------------- /TagView.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/app.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | defaultConfig { 6 | applicationId "com.skyhope.tagview" 7 | minSdkVersion 17 8 | targetSdkVersion 28 9 | versionCode 1 10 | versionName "1.0" 11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | implementation fileTree(include: ['*.jar'], dir: 'libs') 23 | implementation 'com.android.support:appcompat-v7:28.0.0' 24 | implementation 'com.android.support.constraint:constraint-layout:1.1.3' 25 | 26 | // implementation 'com.google.android:flexbox:1.0.0' 27 | 28 | implementation 'com.github.mahimrocky:TagView:1.0.1' 29 | 30 | testImplementation 'junit:junit:4.12' 31 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 32 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 33 | //implementation project(':materialtagview') 34 | } 35 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/skyhope/tagview/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.skyhope.tagview; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.skyhope.tagview", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/java/com/skyhope/tagview/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.skyhope.tagview; 2 | 3 | import android.graphics.Color; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.os.Bundle; 6 | 7 | import com.skyhope.materialtagview.TagView; 8 | import com.skyhope.materialtagview.enums.TagSeparator; 9 | 10 | 11 | public class MainActivity extends AppCompatActivity { 12 | 13 | TagView tagView; 14 | 15 | @Override 16 | protected void onCreate(Bundle savedInstanceState) { 17 | super.onCreate(savedInstanceState); 18 | setContentView(R.layout.activity_main); 19 | 20 | tagView = findViewById(R.id.tag_view_test); 21 | 22 | tagView.setHint("Add your skill"); 23 | 24 | //tagView.addTagSeparator(TagSeparator.AT_SEPARATOR); 25 | 26 | tagView.addTagLimit(5); 27 | 28 | // tagView.setTagBackgroundColor(Color.RED); 29 | 30 | String[] tagList = new String[]{"C++", "Java", "PHP"}; 31 | tagView.setTagList(tagList); 32 | 33 | } 34 | 35 | @Override 36 | protected void onResume() { 37 | super.onResume(); 38 | 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 171 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TagView 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/test/java/com/skyhope/tagview/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.skyhope.tagview; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | google() 6 | jcenter() 7 | } 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.3.2' 10 | 11 | // NOTE: Do not place your application dependencies here; they belong 12 | // in the individual module build.gradle files 13 | } 14 | } 15 | 16 | allprojects { 17 | repositories { 18 | google() 19 | jcenter() 20 | maven { url 'https://jitpack.io' } 21 | 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx1536m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | 15 | 16 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Mar 18 15:32:47 BDT 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip 7 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /local.properties: -------------------------------------------------------------------------------- 1 | ## This file must *NOT* be checked into Version Control Systems, 2 | # as it contains information specific to your local configuration. 3 | # 4 | # Location of the SDK. This is only used by Gradle. 5 | # For customization when using a Version Control System, please read the 6 | # header note. 7 | #Mon Mar 18 15:32:49 BDT 2019 8 | ndk.dir=D\:\\sdk\\ndk-bundle 9 | sdk.dir=D\:\\sdk 10 | -------------------------------------------------------------------------------- /materialtagview/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /materialtagview/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | 4 | buildscript { 5 | repositories { 6 | maven { 7 | url "https://google.bintray.com/flexbox-layout" 8 | } 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | maven { 15 | url "https://google.bintray.com/flexbox-layout" 16 | } 17 | } 18 | } 19 | 20 | android { 21 | compileSdkVersion 28 22 | 23 | defaultConfig { 24 | minSdkVersion 17 25 | targetSdkVersion 28 26 | versionCode 1 27 | versionName "1.0" 28 | 29 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 30 | 31 | } 32 | 33 | buildTypes { 34 | release { 35 | minifyEnabled false 36 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 37 | } 38 | } 39 | 40 | } 41 | 42 | dependencies { 43 | implementation fileTree(include: ['*.jar'], dir: 'libs') 44 | implementation 'com.android.support:appcompat-v7:28.0.0' 45 | 46 | implementation "com.android.support:design:28.0.0" 47 | 48 | implementation 'com.google.android:flexbox:1.0.0' 49 | 50 | testImplementation 'junit:junit:4.12' 51 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 52 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 53 | } 54 | -------------------------------------------------------------------------------- /materialtagview/materialtagview.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | -------------------------------------------------------------------------------- /materialtagview/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /materialtagview/src/androidTest/java/com/skyhope/materialtagview/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.skyhope.materialtagview; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.skyhope.tagview2.test", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /materialtagview/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /materialtagview/src/main/java/com/skyhope/materialtagview/TagView.java: -------------------------------------------------------------------------------- 1 | package com.skyhope.materialtagview; 2 | 3 | import android.content.Context; 4 | import android.content.res.TypedArray; 5 | import android.graphics.Bitmap; 6 | import android.graphics.Color; 7 | import android.graphics.drawable.Drawable; 8 | import android.graphics.drawable.GradientDrawable; 9 | import android.support.v7.widget.RecyclerView; 10 | import android.text.Editable; 11 | import android.text.TextUtils; 12 | import android.text.TextWatcher; 13 | import android.util.AttributeSet; 14 | import android.util.Log; 15 | import android.view.Gravity; 16 | import android.view.LayoutInflater; 17 | import android.view.View; 18 | import android.view.ViewGroup; 19 | import android.widget.EditText; 20 | import android.widget.ImageView; 21 | import android.widget.LinearLayout; 22 | import android.widget.TextView; 23 | import android.widget.Toast; 24 | 25 | import com.google.android.flexbox.FlexDirection; 26 | import com.google.android.flexbox.FlexWrap; 27 | import com.google.android.flexbox.FlexboxLayout; 28 | import com.google.android.flexbox.FlexboxLayoutManager; 29 | import com.google.android.flexbox.JustifyContent; 30 | import com.skyhope.materialtagview.adapter.TagViewAdapter; 31 | import com.skyhope.materialtagview.enums.TagSeparator; 32 | import com.skyhope.materialtagview.interfaces.TagClickListener; 33 | import com.skyhope.materialtagview.interfaces.TagItemListener; 34 | import com.skyhope.materialtagview.model.TagModel; 35 | 36 | import java.util.ArrayList; 37 | import java.util.Arrays; 38 | import java.util.List; 39 | /* 40 | * **************************************************************************** 41 | * * Created by : Md Tariqul Islam on 3/18/2019 at 3:36 PM. 42 | * * Email : tariqul@w3engineers.com 43 | * * 44 | * * Purpose: 45 | * * 46 | * * Last edited by : Md Tariqul Islam on 3/18/2019. 47 | * * 48 | * * Last Reviewed by : on 49 | * **************************************************************************** 50 | */ 51 | 52 | 53 | public class TagView extends FlexboxLayout implements TagClickListener { 54 | 55 | private List mTagList = new ArrayList<>(); 56 | private List mTagViewList = new ArrayList<>(); 57 | 58 | private EditText editText; 59 | private RecyclerView recyclerView; 60 | private TextView textViewAdd; 61 | 62 | private TagViewAdapter mAdapter; 63 | 64 | private final String EMPTY_STRING = ""; 65 | private final String DEFAULT_TAG_LIMIT_MESSAGE = "You reach maximum tags"; 66 | 67 | /** 68 | * This is Default Tab separator. 69 | * User can add different tab separator 70 | *

71 | * Tag separator must be a single character. 72 | *

73 | * And the Tag separator will be special character 74 | */ 75 | private String tagSeparator = TagSeparator.valueOf(TagSeparator.COMMA_SEPARATOR.name()).getValue(); 76 | 77 | 78 | /** 79 | * The tagLimit define how many tag will show 80 | * Default it take maximum value. 81 | * It not Take 0/Zero value 82 | */ 83 | private int tagLimit = Integer.MAX_VALUE; 84 | 85 | /** 86 | * Tag view Background color 87 | */ 88 | private int tagBackgroundColor; 89 | 90 | private int mTagTextColor; 91 | 92 | private String mTagLimitMessage; 93 | 94 | /** 95 | * The both drawable and bitmap enable only when 96 | * other is null. 97 | * N.B: Both can be null 98 | */ 99 | private Drawable mCrossDrawable; 100 | private Bitmap mCrossBitmap; 101 | 102 | private TagItemListener mTagItemListener; 103 | 104 | private List mTagItemList = new ArrayList<>(); 105 | 106 | public TagView(Context context) { 107 | super(context); 108 | } 109 | 110 | public TagView(Context context, AttributeSet attrs) { 111 | super(context, attrs); 112 | 113 | setFlexWrap(FlexWrap.WRAP); 114 | 115 | setJustifyContent(JustifyContent.FLEX_START); 116 | 117 | tagBackgroundColor = getResources().getColor(R.color.tag_bg); 118 | 119 | mTagTextColor = getResources().getColor(R.color.white); 120 | 121 | mAdapter = new TagViewAdapter(mTagTextColor, tagBackgroundColor); 122 | 123 | addEditText(); 124 | 125 | init(attrs); 126 | 127 | } 128 | 129 | private void init(AttributeSet attributeSet) { 130 | TypedArray typedArray = getContext().obtainStyledAttributes(attributeSet, R.styleable.TagView); 131 | 132 | mTagTextColor = typedArray.getColor(R.styleable.TagView_tag_text_color, getResources().getColor(R.color.white)); 133 | 134 | tagBackgroundColor = typedArray.getColor(R.styleable.TagView_tag_background_color, getResources().getColor(R.color.tag_bg)); 135 | 136 | tagLimit = typedArray.getInt(R.styleable.TagView_tag_limit, 1); 137 | 138 | mCrossDrawable = typedArray.getDrawable(R.styleable.TagView_close_icon); 139 | 140 | mTagLimitMessage = typedArray.getString(R.styleable.TagView_limit_error_text); 141 | 142 | 143 | int separator = typedArray.getInt(R.styleable.TagView_tag_separator, 0); 144 | 145 | tagSeparator = convertSeparator(separator); 146 | 147 | typedArray.recycle(); 148 | } 149 | 150 | /** 151 | * Adding a tag view in Main view 152 | */ 153 | private void addTagInView() { 154 | final TagModel model = mTagList.get(mTagList.size() - 1); 155 | 156 | final LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); 157 | final View tagView = inflater.inflate(R.layout.tag_layout, null); 158 | 159 | TextView tagTextView = tagView.findViewById(R.id.text_view_tag); 160 | 161 | ImageView imageView = tagView.findViewById(R.id.image_view_cross); 162 | 163 | LinearLayout linearLayout = tagView.findViewById(R.id.tag_container); 164 | 165 | GradientDrawable drawable = (GradientDrawable) linearLayout.getBackground(); 166 | 167 | drawable.setColor(tagBackgroundColor); 168 | 169 | tagTextView.setTextColor(mTagTextColor); 170 | 171 | if (mCrossBitmap != null) { 172 | imageView.setImageBitmap(mCrossBitmap); 173 | } else if (mCrossDrawable != null) { 174 | imageView.setImageDrawable(mCrossDrawable); 175 | } 176 | 177 | /* 178 | * Here we remove the tag 179 | * */ 180 | imageView.setOnClickListener(new OnClickListener() { 181 | @Override 182 | public void onClick(View view) { 183 | removeView(tagView); 184 | mTagList.remove(model); 185 | 186 | if (model.isFromList()) { 187 | mAdapter.addItem(model.getTagText()); 188 | } 189 | 190 | if (mTagItemListener != null) { 191 | mTagItemListener.onGetRemovedItem(model); 192 | } 193 | 194 | invalidate(); 195 | } 196 | }); 197 | 198 | tagTextView.setText(model.getTagText()); 199 | 200 | this.addView(tagView, mTagList.indexOf(model)); 201 | 202 | if (mTagItemListener != null) { 203 | mTagItemListener.onGetAddedItem(model); 204 | } 205 | 206 | // mTagViewList.add(view); 207 | 208 | invalidate(); 209 | 210 | } 211 | 212 | /** 213 | * First add an Edit text to show edit form where user can create a tag 214 | */ 215 | private void addEditText() { 216 | editText = new EditText(getContext()); 217 | 218 | recyclerView = new RecyclerView(getContext()); 219 | 220 | textViewAdd = new TextView(getContext()); 221 | 222 | editText.setLayoutParams(new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); 223 | 224 | 225 | editText.addTextChangedListener(new TextWatcher() { 226 | @Override 227 | public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { 228 | 229 | } 230 | 231 | @Override 232 | public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { 233 | 234 | } 235 | 236 | @Override 237 | public void afterTextChanged(Editable editable) { 238 | if (editable.toString().contains(tagSeparator)) { 239 | if (mTagList.size() < tagLimit) { 240 | String tagText = editable.toString(); 241 | tagText = tagText.replace(tagSeparator, EMPTY_STRING); 242 | 243 | addTag(tagText, false); 244 | 245 | editText.setText(""); 246 | } else { 247 | showTagLimitMessage(); 248 | } 249 | 250 | } else { 251 | mAdapter.getFilter().filter(editable.toString()); 252 | mAdapter.notifyDataSetChanged(); 253 | 254 | if (mAdapter.getItemCount() == 0) { 255 | textViewAdd.setVisibility(VISIBLE); 256 | recyclerView.setVisibility(GONE); 257 | textViewAdd.setText(editable.toString()); 258 | } else { 259 | textViewAdd.setVisibility(GONE); 260 | recyclerView.setVisibility(VISIBLE); 261 | } 262 | } 263 | 264 | if (editable.toString().isEmpty()) { 265 | textViewAdd.setVisibility(GONE); 266 | recyclerView.setVisibility(VISIBLE); 267 | } 268 | } 269 | }); 270 | 271 | 272 | } 273 | 274 | private String convertSeparator(int separator) { 275 | String tagSeparator = ""; 276 | switch (separator) { 277 | case 1: 278 | tagSeparator = TagSeparator.valueOf(TagSeparator.COMMA_SEPARATOR.name()).getValue(); 279 | break; 280 | case 2: 281 | tagSeparator = TagSeparator.valueOf(TagSeparator.PLUS_SEPARATOR.name()).getValue(); 282 | break; 283 | case 3: 284 | tagSeparator = TagSeparator.valueOf(TagSeparator.MINUS_SEPARATOR.name()).getValue(); 285 | break; 286 | case 4: 287 | tagSeparator = TagSeparator.valueOf(TagSeparator.SPACE_SEPARATOR.name()).getValue(); 288 | break; 289 | case 5: 290 | tagSeparator = TagSeparator.valueOf(TagSeparator.AT_SEPARATOR.name()).getValue(); 291 | break; 292 | case 6: 293 | tagSeparator = TagSeparator.valueOf(TagSeparator.HASH_SEPARATOR.name()).getValue(); 294 | break; 295 | } 296 | return tagSeparator; 297 | } 298 | 299 | /** 300 | * Add a Tag or Create a Tag. 301 | * 302 | * @param text It takes String and create a mode {@link TagModel} 303 | */ 304 | private void addTag(String text, boolean isFromList) { 305 | if (text == null) { 306 | text = EMPTY_STRING; 307 | } 308 | 309 | TagModel model = new TagModel(); 310 | model.setTagText(text); 311 | model.setFromList(isFromList); 312 | 313 | mTagList.add(model); 314 | 315 | addTagInView(); 316 | } 317 | 318 | /** 319 | * Add recycler view if item list available. 320 | * first the item will be invisible. 321 | * Latter the item will add according user input. 322 | * If not matching item, the editor text will add in recycler view item temporary to select or add 323 | * Tag 324 | */ 325 | private void addRecyclerView() { 326 | recyclerView.setLayoutParams(new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); 327 | 328 | textViewAdd.setLayoutParams(new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); 329 | textViewAdd.setGravity(Gravity.CENTER); 330 | textViewAdd.setPadding(4, 0, 4, 0); 331 | textViewAdd.setBackground(getResources().getDrawable(R.drawable.drawable_tag)); 332 | 333 | GradientDrawable drawable = (GradientDrawable) textViewAdd.getBackground(); 334 | drawable.setColor(tagBackgroundColor); 335 | 336 | textViewAdd.setTextColor(mTagTextColor); 337 | 338 | textViewAdd.setOnClickListener(new OnClickListener() { 339 | @Override 340 | public void onClick(View view) { 341 | if (mTagList.size() < tagLimit) { 342 | addTag(textViewAdd.getText().toString(), false); 343 | textViewAdd.setText(""); 344 | textViewAdd.setVisibility(GONE); 345 | recyclerView.setVisibility(VISIBLE); 346 | editText.setText(""); 347 | } else { 348 | showTagLimitMessage(); 349 | } 350 | 351 | } 352 | }); 353 | 354 | this.addView(editText); 355 | if (mTagItemList != null) { 356 | FlexboxLayoutManager layoutManager = new FlexboxLayoutManager(getContext()); 357 | 358 | layoutManager.setJustifyContent(JustifyContent.FLEX_START); 359 | layoutManager.setFlexWrap(FlexWrap.WRAP); 360 | recyclerView.setLayoutManager(layoutManager); 361 | 362 | recyclerView.setAdapter(mAdapter); 363 | 364 | // set adapter click listener 365 | mAdapter.setTagClickListener(this); 366 | 367 | mAdapter.addItems(mTagItemList); 368 | 369 | } 370 | 371 | this.addView(recyclerView); 372 | 373 | this.addView(textViewAdd); 374 | textViewAdd.setVisibility(GONE); 375 | 376 | 377 | invalidate(); 378 | } 379 | 380 | private void showTagLimitMessage() { 381 | if (mTagLimitMessage != null) { 382 | Toast.makeText(getContext(), mTagLimitMessage, Toast.LENGTH_SHORT).show(); 383 | } else { 384 | Toast.makeText(getContext(), DEFAULT_TAG_LIMIT_MESSAGE, Toast.LENGTH_SHORT).show(); 385 | } 386 | } 387 | 388 | @Override 389 | public void onGetSelectTag(int position, String tagText) { 390 | // We get tag item. we have to add tag 391 | 392 | addTag(tagText, true); 393 | 394 | mAdapter.removeTagItem(position, tagText); 395 | } 396 | 397 | 398 | /* 399 | * User setter method 400 | * */ 401 | 402 | 403 | /** 404 | * User can set hint of edit text 405 | * 406 | * @param hint This take only String. If it get null it will convert null to Empty String 407 | */ 408 | public void setHint(String hint) { 409 | if (hint == null) { 410 | hint = EMPTY_STRING; 411 | } 412 | editText.setHint(hint); 413 | } 414 | 415 | /** 416 | * Add Tag separator within Defined Separator 417 | * 418 | * @param separator This is Tag separator. It contains only 419 | * few separator {@link TagSeparator} 420 | */ 421 | public void addTagSeparator(Enum separator) { 422 | 423 | TagSeparator tagSeparator = TagSeparator.valueOf(separator.name()); 424 | 425 | this.tagSeparator = tagSeparator.getValue(); 426 | Log.d("TagTest", tagSeparator.getValue()); 427 | 428 | } 429 | 430 | /** 431 | * User can set tag limit but never set zero 432 | * 433 | * @param limit Integer value 434 | */ 435 | public void addTagLimit(int limit) { 436 | if (limit == 0) { 437 | limit = 1; 438 | } 439 | tagLimit = limit; 440 | } 441 | 442 | /** 443 | * User can set Integer color 444 | * 445 | * @param color Integer Color 446 | */ 447 | public void setTagBackgroundColor(int color) { 448 | tagBackgroundColor = color; 449 | 450 | mAdapter.addTagBackgroundColor(tagBackgroundColor); 451 | } 452 | 453 | /** 454 | * User can set background as String color 455 | * 456 | * @param color String color code 457 | */ 458 | public void setTagBackgroundColor(String color) { 459 | tagBackgroundColor = Color.parseColor(color); 460 | 461 | mAdapter.addTagBackgroundColor(tagBackgroundColor); 462 | } 463 | 464 | /** 465 | * User can set/ change tag text color 466 | * 467 | * @param color {@link Integer} 468 | */ 469 | public void setTagTextColor(int color) { 470 | mTagTextColor = color; 471 | 472 | mAdapter.addTagTextColor(mTagTextColor); 473 | } 474 | 475 | /** 476 | * User can set/ change tag text color 477 | * 478 | * @param color {@link String} 479 | */ 480 | public void setTagTextColor(String color) { 481 | mTagTextColor = Color.parseColor(color); 482 | 483 | mAdapter.addTagTextColor(mTagTextColor); 484 | } 485 | 486 | /** 487 | * User can modify default tag limit message 488 | * 489 | * @param message User defined message 490 | */ 491 | public void setMaximumTagLimitMessage(String message) { 492 | if (TextUtils.isEmpty(message)) { 493 | mTagLimitMessage = DEFAULT_TAG_LIMIT_MESSAGE; 494 | } else { 495 | mTagLimitMessage = message; 496 | } 497 | } 498 | 499 | /** 500 | * User can change cross button as drawable 501 | * 502 | * @param crossDrawable It takes resources drawable 503 | */ 504 | public void setCrossButton(Drawable crossDrawable) { 505 | mCrossDrawable = crossDrawable; 506 | mCrossBitmap = null; 507 | } 508 | 509 | /** 510 | * User can change cross button as bitmap 511 | * 512 | * @param crossBitmap It takes Bitmap 513 | */ 514 | public void setCrossButton(Bitmap crossBitmap) { 515 | mCrossDrawable = null; 516 | mCrossBitmap = crossBitmap; 517 | } 518 | 519 | /** 520 | * User can notify when Tag item added or removed 521 | * 522 | * @param listener {@link TagItemListener} 523 | */ 524 | public void initTagListener(TagItemListener listener) { 525 | mTagItemListener = listener; 526 | } 527 | 528 | /** 529 | * This is the main challenging part of 530 | * TagView. Tag list will show when user will write in editText 531 | * and user click will add a tag 532 | * 533 | * @param tagList List of String 534 | */ 535 | public void setTagList(List tagList) { 536 | if (tagList == null) { 537 | tagList = new ArrayList<>(); 538 | } 539 | mTagItemList = tagList; 540 | 541 | addRecyclerView(); 542 | } 543 | 544 | /** 545 | * User Can provide tag list as String array 546 | * 547 | * @param tagList It is string array 548 | */ 549 | public void setTagList(String... tagList) { 550 | List tempList = Arrays.asList(tagList); 551 | 552 | mTagItemList.addAll(tempList); 553 | 554 | addRecyclerView(); 555 | } 556 | 557 | /** 558 | * User can get all selected Tag list 559 | * 560 | * @return {@link TagModel} of List 561 | */ 562 | public List getSelectedTags() { 563 | return mTagList; 564 | } 565 | 566 | } 567 | -------------------------------------------------------------------------------- /materialtagview/src/main/java/com/skyhope/materialtagview/adapter/TagViewAdapter.java: -------------------------------------------------------------------------------- 1 | package com.skyhope.materialtagview.adapter; 2 | 3 | import android.graphics.drawable.GradientDrawable; 4 | import android.support.annotation.NonNull; 5 | import android.support.v7.widget.RecyclerView; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.widget.Filter; 10 | import android.widget.Filterable; 11 | import android.widget.LinearLayout; 12 | import android.widget.TextView; 13 | 14 | import com.skyhope.materialtagview.R; 15 | import com.skyhope.materialtagview.interfaces.TagClickListener; 16 | 17 | import java.util.ArrayList; 18 | import java.util.List; 19 | /* 20 | * **************************************************************************** 21 | * * Created by : Md Tariqul Islam on 3/19/2019 at 11:23 AM. 22 | * * Email : tariqul@w3engineers.com 23 | * * 24 | * * Purpose: 25 | * * 26 | * * Last edited by : Md Tariqul Islam on 3/19/2019. 27 | * * 28 | * * Last Reviewed by : on 29 | * **************************************************************************** 30 | */ 31 | 32 | 33 | public class TagViewAdapter extends RecyclerView.Adapter implements Filterable { 34 | 35 | private List mTagItemList; 36 | 37 | private List mBackUpList; 38 | 39 | private int mTagTextColor; 40 | private int mTagBackgroundColor; 41 | 42 | private TagClickListener mClickListener; 43 | 44 | public TagViewAdapter(int mTagTextColor, int mTagBackgroundColor) { 45 | this.mTagTextColor = mTagTextColor; 46 | this.mTagBackgroundColor = mTagBackgroundColor; 47 | 48 | mTagItemList = new ArrayList<>(); 49 | mBackUpList = new ArrayList<>(); 50 | } 51 | 52 | @NonNull 53 | @Override 54 | public TagViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) { 55 | View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_tag, viewGroup, false); 56 | return new TagViewHolder(view); 57 | } 58 | 59 | @Override 60 | public void onBindViewHolder(@NonNull TagViewHolder tagViewHolder, int i) { 61 | String tag = mTagItemList.get(i); 62 | 63 | tagViewHolder.textViewTag.setTextColor(mTagTextColor); 64 | 65 | GradientDrawable drawable = (GradientDrawable) tagViewHolder.tagContainer.getBackground(); 66 | drawable.setColor(mTagBackgroundColor); 67 | 68 | tagViewHolder.textViewTag.setText(tag); 69 | } 70 | 71 | @Override 72 | public int getItemCount() { 73 | return mTagItemList.size(); 74 | } 75 | 76 | /** 77 | * Add Tag item to show. 78 | * 79 | * @param tagList List of Tag 80 | */ 81 | public void addItems(List tagList) { 82 | if (mTagItemList != null) { 83 | mTagItemList.clear(); 84 | mTagItemList = tagList; 85 | } 86 | if (mBackUpList != null) { 87 | mBackUpList.clear(); 88 | mBackUpList.addAll(tagList); 89 | } 90 | 91 | notifyDataSetChanged(); 92 | } 93 | 94 | public void addItem(String text) { 95 | mTagItemList.add(text); 96 | mBackUpList.add(text); 97 | 98 | notifyItemInserted(mTagItemList.size() - 1); 99 | } 100 | 101 | public void addTagTextColor(int mTagTextColor) { 102 | this.mTagTextColor = mTagTextColor; 103 | } 104 | 105 | public void addTagBackgroundColor(int mTagBackgroundColor) { 106 | this.mTagBackgroundColor = mTagBackgroundColor; 107 | } 108 | 109 | public void setTagClickListener(TagClickListener listener) { 110 | mClickListener = listener; 111 | } 112 | 113 | /** 114 | * Remove item When user select a Tag from list 115 | * 116 | * @param position Item Position 117 | */ 118 | public void removeTagItem(int position, String tag) { 119 | if (mTagItemList != null && mTagItemList.size() >= position) { 120 | mTagItemList.remove(tag); 121 | notifyItemRemoved(position); 122 | } 123 | 124 | if (mBackUpList != null && mBackUpList.size() >= position) { 125 | mBackUpList.remove(tag); 126 | } 127 | } 128 | 129 | @Override 130 | public Filter getFilter() { 131 | return new Filter() { 132 | @Override 133 | protected FilterResults performFiltering(CharSequence charSequence) { 134 | if (charSequence.toString().isEmpty()) { 135 | mTagItemList.clear(); 136 | mTagItemList.addAll(mBackUpList); 137 | 138 | } else { 139 | mTagItemList.clear(); 140 | 141 | for (String text : mBackUpList) { 142 | if (text.toLowerCase().contains(charSequence) || text.toUpperCase().contains(charSequence)) { 143 | mTagItemList.add(text); 144 | } 145 | } 146 | } 147 | final FilterResults results = new FilterResults(); 148 | results.values = mTagItemList; 149 | return results; 150 | } 151 | 152 | @Override 153 | protected void publishResults(CharSequence charSequence, FilterResults filterResults) { 154 | 155 | } 156 | }; 157 | } 158 | 159 | class TagViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { 160 | TextView textViewTag; 161 | LinearLayout tagContainer; 162 | 163 | TagViewHolder(@NonNull View itemView) { 164 | super(itemView); 165 | textViewTag = itemView.findViewById(R.id.text_view_tag); 166 | tagContainer = itemView.findViewById(R.id.tag_container); 167 | 168 | itemView.setOnClickListener(this); 169 | } 170 | 171 | @Override 172 | public void onClick(View view) { 173 | if (mClickListener != null) { 174 | mClickListener.onGetSelectTag(getAdapterPosition(), mTagItemList.get(getAdapterPosition())); 175 | } 176 | } 177 | } 178 | } 179 | -------------------------------------------------------------------------------- /materialtagview/src/main/java/com/skyhope/materialtagview/enums/TagSeparator.java: -------------------------------------------------------------------------------- 1 | package com.skyhope.materialtagview.enums; 2 | 3 | /* 4 | * **************************************************************************** 5 | * * Created by : Md Tariqul Islam on 3/18/2019 at 6:05 PM. 6 | * * Email : tariqul@w3engineers.com 7 | * * 8 | * * Purpose: 9 | * * 10 | * * Last edited by : Md Tariqul Islam on 3/18/2019. 11 | * * 12 | * * Last Reviewed by : on 13 | * **************************************************************************** 14 | */ 15 | 16 | public enum TagSeparator { 17 | 18 | COMMA_SEPARATOR(","), 19 | PLUS_SEPARATOR("+"), 20 | MINUS_SEPARATOR("-"), 21 | SPACE_SEPARATOR(" "), 22 | AT_SEPARATOR("@"), 23 | HASH_SEPARATOR("#"); 24 | 25 | private final String name; 26 | 27 | TagSeparator(String s) { 28 | name = s; 29 | } 30 | 31 | public String getValue() { 32 | return name; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /materialtagview/src/main/java/com/skyhope/materialtagview/interfaces/TagClickListener.java: -------------------------------------------------------------------------------- 1 | package com.skyhope.materialtagview.interfaces; 2 | 3 | /* 4 | * **************************************************************************** 5 | * * Created by : Md Tariqul Islam on 3/19/2019 at 7:09 PM. 6 | * * Email : tariqul@w3engineers.com 7 | * * 8 | * * Purpose: 9 | * * 10 | * * Last edited by : Md Tariqul Islam on 3/19/2019. 11 | * * 12 | * * Last Reviewed by : on 13 | * **************************************************************************** 14 | */ 15 | 16 | public interface TagClickListener { 17 | void onGetSelectTag(int position,String tagText); 18 | } 19 | -------------------------------------------------------------------------------- /materialtagview/src/main/java/com/skyhope/materialtagview/interfaces/TagItemListener.java: -------------------------------------------------------------------------------- 1 | package com.skyhope.materialtagview.interfaces; 2 | 3 | import com.skyhope.materialtagview.model.TagModel; 4 | /* 5 | * **************************************************************************** 6 | * * Created by : Md Tariqul Islam on 3/18/2019 at 7:18 PM. 7 | * * Email : tariqul@w3engineers.com 8 | * * 9 | * * Purpose: 10 | * * 11 | * * Last edited by : Md Tariqul Islam on 3/18/2019. 12 | * * 13 | * * Last Reviewed by : on 14 | * **************************************************************************** 15 | */ 16 | 17 | 18 | public interface TagItemListener { 19 | void onGetAddedItem(TagModel tagModel); 20 | 21 | void onGetRemovedItem(TagModel model); 22 | } 23 | -------------------------------------------------------------------------------- /materialtagview/src/main/java/com/skyhope/materialtagview/model/TagModel.java: -------------------------------------------------------------------------------- 1 | package com.skyhope.materialtagview.model; 2 | 3 | /* 4 | * **************************************************************************** 5 | * * Created by : Md Tariqul Islam on 3/18/2019 at 3:45 PM. 6 | * * Email : tariqul@w3engineers.com 7 | * * 8 | * * Purpose: 9 | * * 10 | * * Last edited by : Md Tariqul Islam on 3/18/2019. 11 | * * 12 | * * Last Reviewed by : on 13 | * **************************************************************************** 14 | */ 15 | 16 | public class TagModel { 17 | private String tagText; 18 | private boolean isFromList; 19 | 20 | public String getTagText() { 21 | return tagText; 22 | } 23 | 24 | public void setTagText(String tagText) { 25 | this.tagText = tagText; 26 | } 27 | 28 | public boolean isFromList() { 29 | return isFromList; 30 | } 31 | 32 | public void setFromList(boolean fromList) { 33 | isFromList = fromList; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /materialtagview/src/main/res/drawable-hdpi/ic_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/materialtagview/src/main/res/drawable-hdpi/ic_cancel.png -------------------------------------------------------------------------------- /materialtagview/src/main/res/drawable-mdpi/ic_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/materialtagview/src/main/res/drawable-mdpi/ic_cancel.png -------------------------------------------------------------------------------- /materialtagview/src/main/res/drawable-xhdpi/ic_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/materialtagview/src/main/res/drawable-xhdpi/ic_cancel.png -------------------------------------------------------------------------------- /materialtagview/src/main/res/drawable-xxhdpi/ic_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/materialtagview/src/main/res/drawable-xxhdpi/ic_cancel.png -------------------------------------------------------------------------------- /materialtagview/src/main/res/drawable-xxxhdpi/ic_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/materialtagview/src/main/res/drawable-xxxhdpi/ic_cancel.png -------------------------------------------------------------------------------- /materialtagview/src/main/res/drawable/drawable_tag.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | -------------------------------------------------------------------------------- /materialtagview/src/main/res/layout/item_tag.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 17 | 18 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /materialtagview/src/main/res/layout/tag_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 17 | 18 | 27 | 28 | 36 | 37 | -------------------------------------------------------------------------------- /materialtagview/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /materialtagview/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #00574B 4 | #FFFFFF 5 | -------------------------------------------------------------------------------- /materialtagview/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TagView 3 | 4 | -------------------------------------------------------------------------------- /materialtagview/src/test/java/com/skyhope/materialtagview/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.skyhope.materialtagview; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /screenshot_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/screenshot_2.png -------------------------------------------------------------------------------- /screenshot_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahimrocky/TagView/8a0eb3638f9d80f70c5a65b639e3cdc870dd45ab/screenshot_3.png -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':materialtagview' 2 | --------------------------------------------------------------------------------