[
  {
    "path": ".gitattributes",
    "content": "# Auto detect text files and perform LF normalization\n* text=auto\n\n# Custom for Visual Studio\n*.cs     diff=csharp\n\n# Standard to msysgit\n*.doc\t diff=astextplain\n*.DOC\t diff=astextplain\n*.docx diff=astextplain\n*.DOCX diff=astextplain\n*.dot  diff=astextplain\n*.DOT  diff=astextplain\n*.pdf  diff=astextplain\n*.PDF\t diff=astextplain\n*.rtf\t diff=astextplain\n*.RTF\t diff=astextplain\n"
  },
  {
    "path": ".gitignore",
    "content": ".gradle\n/local.properties\n/.idea/workspace.xml\n/.idea/libraries\n.DS_Store\n/build\n/captures\n"
  },
  {
    "path": ".idea/compiler.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"CompilerConfiguration\">\n    <resourceExtensions />\n    <wildcardResourcePatterns>\n      <entry name=\"!?*.java\" />\n      <entry name=\"!?*.form\" />\n      <entry name=\"!?*.class\" />\n      <entry name=\"!?*.groovy\" />\n      <entry name=\"!?*.scala\" />\n      <entry name=\"!?*.flex\" />\n      <entry name=\"!?*.kt\" />\n      <entry name=\"!?*.clj\" />\n      <entry name=\"!?*.aj\" />\n    </wildcardResourcePatterns>\n    <annotationProcessing>\n      <profile default=\"true\" name=\"Default\" enabled=\"false\">\n        <processorPath useClasspath=\"true\" />\n      </profile>\n    </annotationProcessing>\n  </component>\n</project>"
  },
  {
    "path": ".idea/copyright/profiles_settings.xml",
    "content": "<component name=\"CopyrightManager\">\n  <settings default=\"\" />\n</component>"
  },
  {
    "path": ".idea/encodings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"Encoding\">\n    <file url=\"file://$PROJECT_DIR$/app/src/main/java/com/sn/filterselectorlistview/Filter_Object.java\" charset=\"UTF-8\" />\n    <file url=\"file://$PROJECT_DIR$/app/src/main/res/layout/filter_list_item.xml\" charset=\"UTF-8\" />\n    <file url=\"file://$PROJECT_DIR$/app/src/main/res/layout/filter_tag_edit.xml\" charset=\"UTF-8\" />\n  </component>\n</project>"
  },
  {
    "path": ".idea/gradle.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"GradleSettings\">\n    <option name=\"linkedExternalProjectsSettings\">\n      <GradleProjectSettings>\n        <option name=\"distributionType\" value=\"DEFAULT_WRAPPED\" />\n        <option name=\"externalProjectPath\" value=\"$PROJECT_DIR$\" />\n        <option name=\"gradleJvm\" value=\"1.8\" />\n        <option name=\"modules\">\n          <set>\n            <option value=\"$PROJECT_DIR$\" />\n            <option value=\"$PROJECT_DIR$/app\" />\n          </set>\n        </option>\n        <option name=\"resolveModulePerSourceSet\" value=\"false\" />\n      </GradleProjectSettings>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/misc.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"EntryPointsManager\">\n    <entry_points version=\"2.0\" />\n  </component>\n  <component name=\"NullableNotNullManager\">\n    <option name=\"myDefaultNullable\" value=\"android.support.annotation.Nullable\" />\n    <option name=\"myDefaultNotNull\" value=\"android.support.annotation.NonNull\" />\n    <option name=\"myNullables\">\n      <value>\n        <list size=\"4\">\n          <item index=\"0\" class=\"java.lang.String\" itemvalue=\"org.jetbrains.annotations.Nullable\" />\n          <item index=\"1\" class=\"java.lang.String\" itemvalue=\"javax.annotation.Nullable\" />\n          <item index=\"2\" class=\"java.lang.String\" itemvalue=\"edu.umd.cs.findbugs.annotations.Nullable\" />\n          <item index=\"3\" class=\"java.lang.String\" itemvalue=\"android.support.annotation.Nullable\" />\n        </list>\n      </value>\n    </option>\n    <option name=\"myNotNulls\">\n      <value>\n        <list size=\"4\">\n          <item index=\"0\" class=\"java.lang.String\" itemvalue=\"org.jetbrains.annotations.NotNull\" />\n          <item index=\"1\" class=\"java.lang.String\" itemvalue=\"javax.annotation.Nonnull\" />\n          <item index=\"2\" class=\"java.lang.String\" itemvalue=\"edu.umd.cs.findbugs.annotations.NonNull\" />\n          <item index=\"3\" class=\"java.lang.String\" itemvalue=\"android.support.annotation.NonNull\" />\n        </list>\n      </value>\n    </option>\n  </component>\n  <component name=\"ProjectRootManager\" version=\"2\" languageLevel=\"JDK_1_7\" default=\"true\" project-jdk-name=\"1.8\" project-jdk-type=\"JavaSDK\">\n    <output url=\"file://$PROJECT_DIR$/build/classes\" />\n  </component>\n  <component name=\"ProjectType\">\n    <option name=\"id\" value=\"Android\" />\n  </component>\n  <component name=\"masterDetails\">\n    <states>\n      <state key=\"ProjectJDKs.UI\">\n        <settings>\n          <last-edited>1.8</last-edited>\n          <splitter-proportions>\n            <option name=\"proportions\">\n              <list>\n                <option value=\"0.2\" />\n              </list>\n            </option>\n          </splitter-proportions>\n        </settings>\n      </state>\n    </states>\n  </component>\n</project>"
  },
  {
    "path": ".idea/modules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"ProjectModuleManager\">\n    <modules>\n      <module fileurl=\"file://$PROJECT_DIR$/FilterSelectorListView-master.iml\" filepath=\"$PROJECT_DIR$/FilterSelectorListView-master.iml\" />\n      <module fileurl=\"file://$PROJECT_DIR$/app/app.iml\" filepath=\"$PROJECT_DIR$/app/app.iml\" />\n    </modules>\n  </component>\n</project>"
  },
  {
    "path": ".idea/runConfigurations.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"RunConfigurationProducerService\">\n    <option name=\"ignoredProducers\">\n      <set>\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer\" />\n      </set>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/vcs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"VcsDirectoryMappings\">\n    <mapping directory=\"$PROJECT_DIR$\" vcs=\"Git\" />\n  </component>\n</project>"
  },
  {
    "path": "FilterSelectorListView-master.iml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<module external.linked.project.id=\"FilterSelectorListView-master\" external.linked.project.path=\"$MODULE_DIR$\" external.root.project.path=\"$MODULE_DIR$\" external.system.id=\"GRADLE\" type=\"JAVA_MODULE\" version=\"4\">\n  <component name=\"FacetManager\">\n    <facet type=\"java-gradle\" name=\"Java-Gradle\">\n      <configuration>\n        <option name=\"BUILD_FOLDER_PATH\" value=\"$MODULE_DIR$/build\" />\n        <option name=\"BUILDABLE\" value=\"false\" />\n      </configuration>\n    </facet>\n  </component>\n  <component name=\"NewModuleRootManager\" LANGUAGE_LEVEL=\"JDK_1_7\" inherit-compiler-output=\"true\">\n    <exclude-output />\n    <content url=\"file://$MODULE_DIR$\">\n      <excludeFolder url=\"file://$MODULE_DIR$/.gradle\" />\n    </content>\n    <orderEntry type=\"jdk\" jdkName=\"1.8\" jdkType=\"JavaSDK\" />\n    <orderEntry type=\"sourceFolder\" forTests=\"false\" />\n  </component>\n</module>"
  },
  {
    "path": "README.md",
    "content": "# FilterSelectorListView\n\nFilterSelectorListView is useful for making multiple selection with see selection on the top of ListView.\n\n## Screenshot\n\n![1](https://raw.githubusercontent.com/pchauhan/FilterSelectorListView/master/Screenshots/1.png)![2](https://raw.githubusercontent.com/pchauhan/FilterSelectorListView/master/Screenshots/2.png)\n\n\nyou can download to see example  for more understanding.\n\n##Compatibility\n\n - Android 2.3.3+\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FilterSelectorListView-green.svg?style=flat)](https://android-arsenal.com/details/1/2256)\n\n\n##iPhone\n\n- Please check [MultiSelectController](https://github.com/Darshanptl7500/MultiSelectController) for iPhone\n\n##License\nThe MIT License (MIT)\n\nCopyright (c) 2015 Parag Chauhan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "app/app.iml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<module external.linked.project.id=\":app\" external.linked.project.path=\"$MODULE_DIR$\" external.root.project.path=\"$MODULE_DIR$/..\" external.system.id=\"GRADLE\" external.system.module.group=\"FilterSelectorListView\" external.system.module.version=\"unspecified\" type=\"JAVA_MODULE\" version=\"4\">\n  <component name=\"FacetManager\">\n    <facet type=\"android-gradle\" name=\"Android-Gradle\">\n      <configuration>\n        <option name=\"GRADLE_PROJECT_PATH\" value=\":app\" />\n      </configuration>\n    </facet>\n    <facet type=\"android\" name=\"Android\">\n      <configuration>\n        <option name=\"SELECTED_BUILD_VARIANT\" value=\"debug\" />\n        <option name=\"ASSEMBLE_TASK_NAME\" value=\"assembleDebug\" />\n        <option name=\"COMPILE_JAVA_TASK_NAME\" value=\"compileDebugSources\" />\n        <afterSyncTasks>\n          <task>generateDebugSources</task>\n        </afterSyncTasks>\n        <option name=\"ALLOW_USER_CONFIGURATION\" value=\"false\" />\n        <option name=\"MANIFEST_FILE_RELATIVE_PATH\" value=\"/src/main/AndroidManifest.xml\" />\n        <option name=\"RES_FOLDER_RELATIVE_PATH\" value=\"/src/main/res\" />\n        <option name=\"RES_FOLDERS_RELATIVE_PATH\" value=\"file://$MODULE_DIR$/src/main/res\" />\n        <option name=\"ASSETS_FOLDER_RELATIVE_PATH\" value=\"/src/main/assets\" />\n      </configuration>\n    </facet>\n  </component>\n  <component name=\"NewModuleRootManager\" LANGUAGE_LEVEL=\"JDK_1_7\">\n    <output url=\"file://$MODULE_DIR$/build/intermediates/classes/debug\" />\n    <output-test url=\"file://$MODULE_DIR$/build/intermediates/classes/test/debug\" />\n    <exclude-output />\n    <content url=\"file://$MODULE_DIR$\">\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/source/apt/debug\" isTestSource=\"false\" generated=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/source/r/debug\" isTestSource=\"false\" generated=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/source/aidl/debug\" isTestSource=\"false\" generated=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/source/buildConfig/debug\" isTestSource=\"false\" generated=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/source/rs/debug\" isTestSource=\"false\" generated=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/res/rs/debug\" type=\"java-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/res/resValues/debug\" type=\"java-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/source/apt/androidTest/debug\" isTestSource=\"true\" generated=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/source/r/androidTest/debug\" isTestSource=\"true\" generated=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug\" isTestSource=\"true\" generated=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug\" isTestSource=\"true\" generated=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug\" isTestSource=\"true\" generated=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/build/generated/source/apt/test/debug\" isTestSource=\"true\" generated=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/debug/res\" type=\"java-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/debug/resources\" type=\"java-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/debug/assets\" type=\"java-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/debug/aidl\" isTestSource=\"false\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/debug/java\" isTestSource=\"false\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/debug/rs\" isTestSource=\"false\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/debug/shaders\" isTestSource=\"false\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTestDebug/res\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTestDebug/resources\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTestDebug/assets\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTestDebug/aidl\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTestDebug/java\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTestDebug/rs\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTestDebug/shaders\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/testDebug/res\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/testDebug/resources\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/testDebug/assets\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/testDebug/aidl\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/testDebug/java\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/testDebug/rs\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/testDebug/shaders\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/main/res\" type=\"java-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/main/resources\" type=\"java-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/main/assets\" type=\"java-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/main/aidl\" isTestSource=\"false\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/main/java\" isTestSource=\"false\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/main/rs\" isTestSource=\"false\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/main/shaders\" isTestSource=\"false\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTest/res\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTest/resources\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTest/assets\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTest/aidl\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTest/java\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTest/rs\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/androidTest/shaders\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/test/res\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/test/resources\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/test/assets\" type=\"java-test-resource\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/test/aidl\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/test/java\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/test/rs\" isTestSource=\"true\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/src/test/shaders\" isTestSource=\"true\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/intermediates/blame\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/intermediates/check-manifest\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/intermediates/incremental\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/intermediates/lint\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/intermediates/manifests\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/intermediates/prebuild\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/intermediates/res\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/intermediates/rs\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/intermediates/splits-support\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/intermediates/symbols\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/intermediates/tmp\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/libs\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/outputs\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/poms\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build/tmp\" />\n    </content>\n    <orderEntry type=\"jdk\" jdkName=\"Android API 26 Platform\" jdkType=\"Android SDK\" />\n    <orderEntry type=\"sourceFolder\" forTests=\"false\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"com.android.support.test:exposed-instrumentation-api-publish-0.5\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"org.hamcrest:hamcrest-core:1.3@jar\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"com.android.support:support-media-compat-26.0.2\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"com.android.support.test.espresso:espresso-core-2.2.2\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"junit:junit:4.12@jar\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"com.android.support:support-vector-drawable-26.0.2\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"com.android.support:support-v4-26.0.2\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"com.android.support.test:rules-0.5\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"org.hamcrest:hamcrest-library:1.3@jar\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"org.hamcrest:hamcrest-integration:1.3@jar\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"javax.inject:javax.inject:1@jar\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"com.android.support.test:runner-0.5\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"com.squareup:javawriter:2.1.1@jar\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"com.android.support:support-fragment-26.0.2\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"com.android.support:appcompat-v7-26.0.2\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"com.android.support.test.espresso:espresso-idling-resource-2.2.2\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"com.android.support:animated-vector-drawable-26.0.2\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"javax.annotation:javax.annotation-api:1.2@jar\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"com.android.support:support-core-utils-26.0.2\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"com.android.support:support-core-ui-26.0.2\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"com.android.support:support-compat-26.0.2\" level=\"project\" />\n    <orderEntry type=\"library\" scope=\"TEST\" name=\"com.google.code.findbugs:jsr305:2.0.1@jar\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"com.android.support:support-annotations:26.0.2@jar\" level=\"project\" />\n  </component>\n</module>"
  },
  {
    "path": "app/build.gradle",
    "content": "apply plugin: 'com.android.application'\napply plugin: 'com.jfrog.bintray'\napply plugin: 'com.github.dcendents.android-maven'\n\ngroup = 'com.sn.filterselectorlistview'\nversion = '1'\n\nbintray {\n    user = \"paragchauhan\"\n    key = \"31f563a1f09176a0b351102d5df23b43a56de230\"\n\n    pkg {\n        repo = 'maven'\n        name = 'FilterSelectorListView'\n\n        licenses = ['Apache-2.0']\n    }\n    configurations = ['archives']\n}\n\nandroid {\n    compileSdkVersion 26\n    buildToolsVersion '26.0.2'\n\n    defaultConfig {\n        applicationId \"com.sn.filterselectorlistview\"\n        minSdkVersion 19\n        targetSdkVersion 26\n        versionCode 1\n        versionName \"1.0\"\n    }\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n        }\n    }\n\n    task generateSourcesJar(type: Jar) {\n        from android.sourceSets.main.java.srcDirs\n        classifier 'sources'\n    }\n\n    task generateJavadocs(type: Javadoc) {\n        source = android.sourceSets.main.java.srcDirs\n        classpath += project.files(android.getBootClasspath()\n                .join(File.pathSeparator))\n    }\n\n    task generateJavadocsJar(type: Jar) {\n        from generateJavadocs.destinationDir\n        classifier 'javadoc'\n    }\n    artifacts {\n        archives generateJavadocsJar\n        archives generateSourcesJar\n    }\n}\n\ndependencies {\n    compile fileTree(include: ['*.jar'], dir: 'libs')\n    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {\n        exclude group: 'com.android.support', module: 'support-annotations'\n    })\n    compile 'com.android.support:appcompat-v7:26.0.2'\n    testCompile 'junit:junit:4.12'\n}\n\n"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in D:\\Android\\Android SDK/tools/proguard/proguard-android.txt\n# You can edit the include path and order by changing the proguardFiles\n# directive in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# Add any project specific keep options here:\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n"
  },
  {
    "path": "app/src/androidTest/java/com/sn/filterselectorlistview/ApplicationTest.java",
    "content": "package com.sn.filterselectorlistview;\n\nimport android.app.Application;\nimport android.test.ApplicationTestCase;\n\n/**\n * <a href=\"http://d.android.com/tools/testing/testing_android.html\">Testing Fundamentals</a>\n */\npublic class ApplicationTest extends ApplicationTestCase<Application> {\n    public ApplicationTest() {\n        super(Application.class);\n    }\n}"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.sn.filterselectorlistview\" >\n\n    <application\n        android:allowBackup=\"true\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:theme=\"@style/AppTheme\" >\n        <activity\n            android:name=\".MainActivity\"\n            android:label=\"@string/app_name\" >\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n    </application>\n\n</manifest>\n"
  },
  {
    "path": "app/src/main/java/com/sn/filterselectorlistview/Filter_Object.java",
    "content": "package com.sn.filterselectorlistview;\n\n/**\n * Created by parag.chauhan on 7/28/2015.\n */\npublic class Filter_Object {\n    public String mName ;\n    public boolean mIsSelected ;\n}\n"
  },
  {
    "path": "app/src/main/java/com/sn/filterselectorlistview/FlowLayout.java",
    "content": "/*\n * Copyright 2013 Blaz Solar\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npackage com.sn.filterselectorlistview;\n\nimport android.annotation.TargetApi;\nimport android.content.Context;\nimport android.content.res.TypedArray;\nimport android.os.Build;\nimport android.util.AttributeSet;\nimport android.view.Gravity;\nimport android.view.View;\nimport android.view.ViewGroup;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * FlowLayout will arrange child elements horizontally one next to another. If there is not enough\n * space for next view new line will be added.\n *\n * User: Blaz Solar\n * Date: 5/6/13\n * Time: 8:17 PM\n */\n@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)\npublic class FlowLayout extends ViewGroup {\n\n\tprivate int mGravity = (isIcs() ? Gravity.START : Gravity.LEFT) | Gravity.TOP;\n\n    private final List<List<View>> mLines = new ArrayList<List<View>>();\n    private final List<Integer> mLineHeights = new ArrayList<Integer>();\n    private final List<Integer> mLineMargins = new ArrayList<Integer>();\n\n\tpublic FlowLayout(Context context) {\n\t\tthis(context, null);\n\t}\n\n\tpublic FlowLayout(Context context, AttributeSet attrs) {\n\t\tthis(context, attrs, 0);\n\t}\n\n\tpublic FlowLayout(Context context, AttributeSet attrs, int defStyle) {\n\t\tsuper(context, attrs, defStyle);\n\n\t\tTypedArray a = context.obtainStyledAttributes(attrs,\n\t\t\t\tR.styleable.FlowLayout, defStyle, 0);\n\n        try {\n            int index = a.getInt(R.styleable.FlowLayout_android_gravity, -1);\n            if(index > 0) {\n                setGravity(index);\n            }\n        } finally {\n            a.recycle();\n        }\n\n\t}\n\n    /**\n     * {@inheritDoc}\n     */\n    @Override\n    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n        super.onMeasure(widthMeasureSpec, heightMeasureSpec);\n\n        int sizeWidth = MeasureSpec.getSize(widthMeasureSpec) - getPaddingLeft() - getPaddingRight();\n        int sizeHeight = MeasureSpec.getSize(heightMeasureSpec);\n\n        int modeWidth = MeasureSpec.getMode(widthMeasureSpec);\n        int modeHeight = MeasureSpec.getMode(heightMeasureSpec);\n\n        int width = 0;\n        int height = getPaddingTop() + getPaddingBottom();\n\n        int lineWidth = 0;\n        int lineHeight = 0;\n\n        int childCount = getChildCount();\n\n        for(int i = 0; i < childCount; i++) {\n\n            View child = getChildAt(i);\n            boolean lastChild = i == childCount - 1;\n\n            if(child.getVisibility() == View.GONE) {\n\n                if(lastChild) {\n                    width = Math.max(width, lineWidth);\n                    height += lineHeight;\n                }\n\n                continue;\n            }\n\n            measureChildWithMargins(child, widthMeasureSpec, lineWidth, heightMeasureSpec, height);\n\n            LayoutParams lp = (LayoutParams) child.getLayoutParams();\n\n            int childWidthMode = MeasureSpec.AT_MOST;\n            int childWidthSize = sizeWidth;\n\n            int childHeightMode = MeasureSpec.AT_MOST;\n            int childHeightSize = sizeHeight;\n\n            if(lp.width == LayoutParams.MATCH_PARENT) {\n                childWidthMode = MeasureSpec.EXACTLY    ;\n                childWidthSize -= lp.leftMargin + lp.rightMargin;\n            } else if(lp.width >= 0) {\n                childWidthMode = MeasureSpec.EXACTLY;\n                childWidthSize = lp.width;\n            }\n\n            if(lp.height >= 0) {\n                childHeightMode = MeasureSpec.EXACTLY;\n                childHeightSize = lp.height;\n            } else if (modeHeight == MeasureSpec.UNSPECIFIED) {\n                childHeightMode = MeasureSpec.UNSPECIFIED;\n                childHeightSize = 0;\n            }\n\n            child.measure(\n                    MeasureSpec.makeMeasureSpec(childWidthSize, childWidthMode),\n                    MeasureSpec.makeMeasureSpec(childHeightSize, childHeightMode)\n            );\n\n            int childWidth = child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin;\n\n            if(lineWidth + childWidth > sizeWidth) {\n\n                width = Math.max(width, lineWidth);\n                lineWidth = childWidth;\n\n                height += lineHeight;\n                lineHeight = child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin;\n\n            } else {\n                lineWidth += childWidth;\n                lineHeight = Math.max(lineHeight, child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin);\n            }\n\n            if(lastChild) {\n                width = Math.max(width, lineWidth);\n                height += lineHeight;\n            }\n\n        }\n\n        width += getPaddingLeft() + getPaddingRight();\n\n        setMeasuredDimension(\n                (modeWidth == MeasureSpec.EXACTLY) ? sizeWidth : width,\n                (modeHeight == MeasureSpec.EXACTLY) ? sizeHeight : height);\n    }\n\n    /**\n     * {@inheritDoc}\n     */\n\t@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\n\t\tmLines.clear();\n        mLineHeights.clear();\n        mLineMargins.clear();\n\n\t\tint width = getWidth();\n\t\tint height = getHeight();\n\n\t\tint linesSum = getPaddingTop();\n\n\t\tint lineWidth = 0;\n\t\tint lineHeight = 0;\n\t\tList<View> lineViews = new ArrayList<View>();\n\n\t\tfloat horizontalGravityFactor;\n\t\tswitch ((mGravity & Gravity.HORIZONTAL_GRAVITY_MASK)) {\n\t\t\tcase Gravity.LEFT:\n\t\t\tdefault:\n                horizontalGravityFactor = 0;\n\t\t\t\tbreak;\n\t\t\tcase Gravity.CENTER_HORIZONTAL:\n\t\t\t\thorizontalGravityFactor = .5f;\n\t\t\t\tbreak;\n\t\t\tcase Gravity.RIGHT:\n\t\t\t\thorizontalGravityFactor = 1;\n\t\t\t\tbreak;\n\t\t}\n\n\t\tfor(int i = 0; i < getChildCount(); i++) {\n\n\t\t\tView child = getChildAt(i);\n\n\t\t\tif(child.getVisibility() == View.GONE) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tLayoutParams lp = (LayoutParams) child.getLayoutParams();\n\n\t\t\tint childWidth = child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin;\n\t\t\tint childHeight = child.getMeasuredHeight() + lp.bottomMargin + lp.topMargin;\n\n\t\t\tif(lineWidth + childWidth > width) {\n\t\t\t\tmLineHeights.add(lineHeight);\n\t\t\t\tmLines.add(lineViews);\n\t\t\t\tmLineMargins.add((int) ((width - lineWidth) * horizontalGravityFactor) + getPaddingLeft());\n\n\t\t\t\tlinesSum += lineHeight;\n\n\t\t\t\tlineHeight = 0;\n\t\t\t\tlineWidth = 0;\n\t\t\t\tlineViews = new ArrayList<View>();\n\t\t\t}\n\n\t\t\tlineWidth += childWidth;\n\t\t\tlineHeight = Math.max(lineHeight, childHeight);\n\t\t\tlineViews.add(child);\n\t\t}\n\n\t\tmLineHeights.add(lineHeight);\n\t\tmLines.add(lineViews);\n\t\tmLineMargins.add((int) ((width - lineWidth) * horizontalGravityFactor) + getPaddingLeft());\n\n\t\tlinesSum += lineHeight;\n\n\t\tint verticalGravityMargin = 0;\n\t\tswitch ((mGravity & Gravity.VERTICAL_GRAVITY_MASK)\t) {\n\t\t\tcase Gravity.TOP:\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\tcase Gravity.CENTER_VERTICAL:\n\t\t\t\tverticalGravityMargin = (height - linesSum) / 2;\n\t\t\t\tbreak;\n\t\t\tcase Gravity.BOTTOM:\n\t\t\t\tverticalGravityMargin = height - linesSum;\n\t\t\t\tbreak;\n\t\t}\n\n\t\tint numLines = mLines.size();\n\n\t\tint left;\n\t\tint top = getPaddingTop();\n\n\t\tfor(int i = 0; i < numLines; i++) {\n\n\t\t\tlineHeight = mLineHeights.get(i);\n\t\t\tlineViews = mLines.get(i);\n\t\t\tleft = mLineMargins.get(i);\n\n\t\t\tint children = lineViews.size();\n\n\t\t\tfor(int j = 0; j < children; j++) {\n\n\t\t\t\tView child = lineViews.get(j);\n\n\t\t\t\tif(child.getVisibility() == View.GONE) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tLayoutParams lp = (LayoutParams) child.getLayoutParams();\n\n\t\t\t\t// if height is match_parent we need to remeasure child to line height\n\t\t\t\tif(lp.height == LayoutParams.MATCH_PARENT) {\n\t\t\t\t\tint childWidthMode = MeasureSpec.AT_MOST;\n\t\t\t\t\tint childWidthSize = lineWidth;\n\n\t\t\t\t\tif(lp.width == LayoutParams.MATCH_PARENT) {\n\t\t\t\t\t\tchildWidthMode = MeasureSpec.EXACTLY;\n\t\t\t\t\t} else if(lp.width >= 0) {\n\t\t\t\t\t\tchildWidthMode = MeasureSpec.EXACTLY;\n\t\t\t\t\t\tchildWidthSize = lp.width;\n\t\t\t\t\t}\n\n\t\t\t\t\tchild.measure(\n\t\t\t\t\t\t\tMeasureSpec.makeMeasureSpec(childWidthSize, childWidthMode),\n\t\t\t\t\t\t\tMeasureSpec.makeMeasureSpec(lineHeight - lp.topMargin - lp.bottomMargin, MeasureSpec.EXACTLY)\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tint childWidth = child.getMeasuredWidth();\n\t\t\t\tint childHeight = child.getMeasuredHeight();\n\n\t\t\t\tint gravityMargin = 0;\n\n\t\t\t\tif(Gravity.isVertical(lp.gravity)) {\n\t\t\t\t\tswitch (lp.gravity) {\n\t\t\t\t\t\tcase Gravity.TOP:\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Gravity.CENTER_VERTICAL:\n\t\t\t\t\t\tcase Gravity.CENTER:\n\t\t\t\t\t\t\tgravityMargin = (lineHeight - childHeight - lp.topMargin - lp.bottomMargin) / 2 ;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Gravity.BOTTOM:\n\t\t\t\t\t\t\tgravityMargin = lineHeight - childHeight - lp.topMargin - lp.bottomMargin;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tchild.layout(left + lp.leftMargin,\n\t\t\t\t\t\ttop + lp.topMargin + gravityMargin + verticalGravityMargin,\n\t\t\t\t\t\tleft + childWidth + lp.leftMargin,\n\t\t\t\t\t\ttop + childHeight + lp.topMargin + gravityMargin + verticalGravityMargin);\n\n\t\t\t\tleft += childWidth + lp.leftMargin + lp.rightMargin;\n\n\t\t\t}\n\n\t\t\ttop += lineHeight;\n\t\t}\n\n\t}\n\n\t@Override\n\tprotected LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) {\n\t\treturn new LayoutParams(p);\n\t}\n\n    /**\n     * {@inheritDoc}\n     */\n\t@Override\n\tpublic LayoutParams generateLayoutParams(AttributeSet attrs) {\n\t\treturn new LayoutParams(getContext(), attrs);\n\t}\n\n    /**\n     * {@inheritDoc}\n     */\n\t@Override\n\tprotected LayoutParams generateDefaultLayoutParams() {\n\t\treturn new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t}\n\n\t@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)\n    public void setGravity(int gravity) {\n\t\tif(mGravity != gravity) {\n\t\t\tif((gravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) {\n\t\t\t\tgravity |= isIcs() ? Gravity.START : Gravity.LEFT;\n\t\t\t}\n\n\t\t\tif((gravity & Gravity.VERTICAL_GRAVITY_MASK) == 0) {\n\t\t\t\tgravity |= Gravity.TOP;\n\t\t\t}\n\n\t\t\tmGravity = gravity;\n\t\t\trequestLayout();\n\t\t}\n\t}\n\n    public int getGravity() {\n        return mGravity;\n    }\n\n    /**\n     * @return <code>true</code> if device is running ICS or grater version of Android.\n     */\n    private static boolean isIcs() {\n        return Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH;\n    }\n\n\tpublic static class LayoutParams extends MarginLayoutParams {\n\n\t\tpublic int gravity = -1;\n\n\t\tpublic LayoutParams(Context c, AttributeSet attrs) {\n\t\t\tsuper(c, attrs);\n\n\t\t\tTypedArray a = c.obtainStyledAttributes(attrs, R.styleable.FlowLayout_Layout);\n\n            try {\n                gravity = a.getInt(R.styleable.FlowLayout_Layout_android_layout_gravity, -1);\n            } finally {\n                a.recycle();\n            }\n\t\t}\n\n\t\tpublic LayoutParams(int width, int height) {\n\t\t\tsuper(width, height);\n\t\t}\n\n\t\tpublic LayoutParams(ViewGroup.LayoutParams source) {\n\t\t\tsuper(source);\n\t\t}\n\n\t}\n\n}\n"
  },
  {
    "path": "app/src/main/java/com/sn/filterselectorlistview/MainActivity.java",
    "content": "package com.sn.filterselectorlistview;\n\nimport android.app.ActionBar;\nimport android.app.Activity;\nimport android.content.Context;\nimport android.os.Build;\nimport android.support.v7.app.ActionBarActivity;\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\nimport android.view.LayoutInflater;\nimport android.view.Menu;\nimport android.view.MenuItem;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.view.WindowManager;\nimport android.widget.BaseAdapter;\nimport android.widget.ImageView;\nimport android.widget.LinearLayout;\nimport android.widget.ListView;\nimport android.widget.ScrollView;\nimport android.widget.TextView;\n\nimport java.util.ArrayList;\n\n\npublic class MainActivity extends AppCompatActivity {\n    private ListView mListView;\n    private ArrayList<Filter_Object> mArrFilter;\n    private ScrollView mScrollViewFilter;\n    private Filter_Adapter mFilter_Adapter ;\n    private FlowLayout mFlowLayoutFilter ;\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n\n            getWindow().setStatusBarColor(getResources().getColor(R.color.themecolor));\n        }\n\n        mArrFilter = new ArrayList<>();\n\n        String[] strArr = getResources().getStringArray(R.array.country);\n\n        int lengthOfstrArr = strArr.length;\n\n        for (int i = 0; i < lengthOfstrArr; i++) {\n            Filter_Object filter_object = new Filter_Object();\n            filter_object.mName = strArr[i];\n            filter_object.mIsSelected = false;\n            mArrFilter.add(filter_object);\n        }\n\n        getSupportActionBar().setDisplayShowTitleEnabled(true);\n        getSupportActionBar().setTitle(getString(R.string.app_name));\n\n        mListView = (ListView) findViewById(R.id.listViewFilter);\n        mScrollViewFilter = (ScrollView)findViewById(R.id.scrollViewFilter);\n        mFlowLayoutFilter = (FlowLayout)findViewById(R.id.flowLayout);\n\n        mFilter_Adapter = new Filter_Adapter(mArrFilter);\n        mListView.setAdapter(mFilter_Adapter);\n    }\n    public void addFilterTag() {\n        final ArrayList<Filter_Object> arrFilterSelected = new ArrayList<>();\n\n        mFlowLayoutFilter.removeAllViews();\n\n        int length = mArrFilter.size();\n        boolean isSelected = false;\n        for (int i = 0; i < length; i++) {\n            Filter_Object fil = mArrFilter.get(i);\n            if (fil.mIsSelected) {\n                isSelected = true;\n                arrFilterSelected.add(fil);\n            }\n        }\n        if (isSelected) {\n            mScrollViewFilter.setVisibility(View.VISIBLE);\n        } else {\n            mScrollViewFilter.setVisibility(View.GONE);\n        }\n        int size = arrFilterSelected.size();\n        LayoutInflater layoutInflater = (LayoutInflater)\n                this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n        for (int i = 0; i < size; i++) {\n            View view = layoutInflater.inflate(R.layout.filter_tag_edit, null);\n\n            TextView tv = (TextView) view.findViewById(R.id.tvTag);\n            LinearLayout linClose = (LinearLayout) view.findViewById(R.id.linClose);\n            final Filter_Object filter_object = arrFilterSelected.get(i);\n            linClose.setOnClickListener(new View.OnClickListener() {\n                @Override\n                public void onClick(View v) {\n                    //showToast(filter_object.name);\n\n\n                    int innerSize = mArrFilter.size();\n                    for (int j = 0; j < innerSize; j++) {\n                        Filter_Object mFilter_Object = mArrFilter.get(j);\n                        if (mFilter_Object.mName.equalsIgnoreCase(filter_object.mName)) {\n                            mFilter_Object.mIsSelected = false;\n\n                        }\n                    }\n                    addFilterTag();\n                    mFilter_Adapter.updateListView(mArrFilter);\n                }\n            });\n\n\n            tv.setText(filter_object.mName);\n            int color = getResources().getColor(R.color.themecolor);\n\n            View newView = view;\n            newView.setBackgroundColor(color);\n\n            FlowLayout.LayoutParams params = new FlowLayout.LayoutParams(FlowLayout.LayoutParams.WRAP_CONTENT, FlowLayout.LayoutParams.WRAP_CONTENT);\n            params.rightMargin = 10;\n            params.topMargin = 5;\n            params.leftMargin = 10;\n            params.bottomMargin = 5;\n\n            newView.setLayoutParams(params);\n\n            mFlowLayoutFilter.addView(newView);\n        }\n    }\n\n    public class Filter_Adapter extends BaseAdapter {\n        ArrayList<Filter_Object> arrMenu;\n\n        public Filter_Adapter(ArrayList<Filter_Object> arrOptions) {\n            this.arrMenu = arrOptions;\n        }\n\n        public void updateListView(ArrayList<Filter_Object> mArray) {\n            this.arrMenu = mArray;\n            notifyDataSetChanged();\n        }\n\n        @Override\n        public int getCount() {\n            return this.arrMenu.size();\n        }\n\n        @Override\n        public Object getItem(int position) {\n            return null;\n        }\n\n        @Override\n        public long getItemId(int position) {\n            return 0;\n        }\n\n        @Override\n        public View getView(final int position, View convertView, ViewGroup parent) {\n            ViewHolder viewHolder;\n            if (convertView == null) {\n                convertView = getLayoutInflater().inflate(R.layout.filter_list_item, null);\n                viewHolder = new ViewHolder();\n                viewHolder.mTtvName = (TextView) convertView.findViewById(R.id.tvName);\n                viewHolder.mTvSelected = (TextView) convertView.findViewById(R.id.tvSelected);\n                convertView.setTag(viewHolder);\n            } else {\n                viewHolder = (ViewHolder) convertView.getTag();\n            }\n            final Filter_Object mService_Object = arrMenu.get(position);\n            viewHolder.mTtvName.setText(mService_Object.mName);\n\n            if (mService_Object.mIsSelected) {\n                viewHolder.mTvSelected.setVisibility(View.VISIBLE);\n            } else {\n                viewHolder.mTvSelected.setVisibility(View.INVISIBLE);\n            }\n            convertView.setOnClickListener(new View.OnClickListener() {\n                @Override\n                public void onClick(View v) {\n\n                    mService_Object.mIsSelected = !mService_Object.mIsSelected;\n                    mScrollViewFilter.setVisibility(View.VISIBLE);\n\n                    addFilterTag();\n                    notifyDataSetChanged();\n                }\n            });\n            return convertView;\n        }\n\n        public class ViewHolder {\n            TextView mTtvName, mTvSelected;\n\n        }\n    }\n\n    @Override\n    public boolean onCreateOptionsMenu(Menu menu) {\n        // Inflate the menu; this adds items to the action bar if it is present.\n        // getMenuInflater().inflate(R.menu.menu_main, menu);\n        return true;\n    }\n\n    @Override\n    public boolean onOptionsItemSelected(MenuItem item) {\n        // Handle action bar item clicks here. The action bar will\n        // automatically handle clicks on the Home/Up button, so long\n        // as you specify a parent activity in AndroidManifest.xml.\n        int id = item.getItemId();\n\n        //noinspection SimplifiableIfStatement\n        if (id == R.id.action_settings) {\n            return true;\n        }\n\n        return super.onOptionsItemSelected(item);\n    }\n}\n"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\n    tools:context=\".MainActivity\">\n\n    <ScrollView\n        android:id=\"@+id/scrollViewFilter\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"70dp\"\n        android:visibility=\"gone\">\n\n        <LinearLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:orientation=\"vertical\">\n\n            <com.sn.filterselectorlistview.FlowLayout\n                android:id=\"@+id/flowLayout\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:gravity=\"start|top\"\n                android:minHeight=\"50dp\"></com.sn.filterselectorlistview.FlowLayout>\n        </LinearLayout>\n\n    </ScrollView>\n\n    <ListView\n        android:id=\"@+id/listViewFilter\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:background=\"@android:color/transparent\"\n        android:listSelector=\"@android:color/transparent\" />\n\n</LinearLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/filter_list_item.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:minHeight=\"45dp\"\n    >\n\n\n    <TextView\n        android:id=\"@+id/tvName\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"fill_parent\"\n        android:paddingLeft=\"10dp\"\n        android:text=\"Medium Text\"\n        android:gravity=\"center_vertical\"\n        android:layout_centerVertical=\"true\"\n        android:textAppearance=\"?android:attr/textAppearanceSmall\"\n        android:textColor=\"@color/themecolor\" />\n\n    <TextView\n        android:id=\"@+id/tvSelected\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_alignParentRight=\"true\"\n        android:layout_marginRight=\"10dp\"\n        android:text=\"\\u2713\"\n        android:layout_centerVertical=\"true\"\n        android:textAppearance=\"?android:attr/textAppearanceMedium\"\n        android:textColor=\"@color/themecolor\" />\n\n</RelativeLayout>"
  },
  {
    "path": "app/src/main/res/layout/filter_tag_edit.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:orientation=\"vertical\">\n\n    <LinearLayout\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\nandroid:layout_gravity=\"center_vertical\"\n        android:background=\"@color/themecolor\">\n\n        <TextView\n            android:id=\"@+id/tvTag\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:paddingBottom=\"5dp\"\n            android:paddingLeft=\"5dp\"\n            android:paddingRight=\"5dp\"\n            android:paddingTop=\"5dp\"\n            android:text=\"Hello\"\n            android:layout_gravity=\"center_vertical\"\n            android:textAppearance=\"@android:style/TextAppearance.Small\"\n            android:textColor=\"#ffffff\" />\n\n        <LinearLayout\n            android:id=\"@+id/linClose\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_gravity=\"center_vertical\"\n            android:paddingRight=\"5dp\">\n            <ImageView\n                android:layout_width=\"30dp\"\n                android:layout_height=\"30dp\"\n                android:layout_gravity=\"center_vertical\"\n                android:background=\"@drawable/remove_filter\" />\n        </LinearLayout>\n    </LinearLayout>\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/menu/menu_main.xml",
    "content": "<menu xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\" tools:context=\".MainActivity\">\n    <item android:id=\"@+id/action_settings\" android:title=\"@string/action_settings\"\n        android:orderInCategory=\"100\" app:showAsAction=\"never\" />\n</menu>\n"
  },
  {
    "path": "app/src/main/res/values/dimens.xml",
    "content": "<resources>\n    <!-- Default screen margins, per the Android Design guidelines. -->\n    <dimen name=\"activity_horizontal_margin\">16dp</dimen>\n    <dimen name=\"activity_vertical_margin\">16dp</dimen>\n\n    <declare-styleable name=\"FilterLayout\">\n        <attr name=\"android:gravity\" />\n    </declare-styleable>\n    <declare-styleable name=\"FilterLayout_Layout\">\n        <attr name=\"android:layout_gravity\" />\n    </declare-styleable>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">Filter Selector ListView</string>\n\n    <string name=\"hello_world\">Hello world!</string>\n    <string name=\"action_settings\">Settings</string>\n    <color name=\"themecolor\">#fd482f</color>\n\n    <string-array name=\"country\">\n        <item >India</item>\n        <item>United States</item>\n        <item>Canada</item>\n        <item>Australia</item>\n        <item>United Kingdom</item>\n        <item>Philippines</item>\n        <item >Japan</item>\n        <item>Italy</item>\n        <item>Germany</item>\n        <item>Russia</item>\n        <item>Malaysia</item>\n        <item>France</item>\n        <item>Sweden</item>\n        <item>New Zealand</item>\n        <item>Singapore</item>\n    </string-array>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\n        <!-- Customize your theme here. -->\n        <item name=\"actionBarStyle\">@style/AppThemeWithColor</item>\n    </style>\n    <style name=\"AppThemeWithColor\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\n        <item name=\"background\">@color/themecolor</item>\n    </style>\n\n    <declare-styleable name=\"FlowLayout\">\n        <attr name=\"android:gravity\" />\n    </declare-styleable>\n    <declare-styleable name=\"FlowLayout_Layout\">\n        <attr name=\"android:layout_gravity\" />\n    </declare-styleable>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values-w820dp/dimens.xml",
    "content": "<resources>\n    <!-- Example customization of dimensions originally defined in res/values/dimens.xml\n         (such as screen margins) for screens with more than 820dp of available width. This\n         would include 7\" and 10\" devices in landscape (~960dp and ~1280dp respectively). -->\n    <dimen name=\"activity_horizontal_margin\">64dp</dimen>\n</resources>\n"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    repositories {\n        jcenter()\n        maven {\n            url 'https://maven.google.com/'\n            name 'Google'\n        }\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:3.0.0'\n        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'\n        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'\n\n        // NOTE: Do not place your application dependencies here; they belong\n        // in the individual module build.gradle files\n    }\n}\n\nallprojects {\n    repositories {\n        jcenter()\n        maven {\n            url 'https://maven.google.com/'\n            name 'Google'\n        }\n    }\n}\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Wed Dec 20 16:43:08 IST 2017\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-4.1-all.zip\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\n# Default value: -Xmx10248m -XX:MaxPermSize=256m\n# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8\n\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env bash\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn ( ) {\n    echo \"$*\"\n}\n\ndie ( ) {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\nesac\n\n# For Cygwin, ensure paths are in UNIX format before anything is touched.\nif $cygwin ; then\n    [ -n \"$JAVA_HOME\" ] && JAVA_HOME=`cygpath --unix \"$JAVA_HOME\"`\nfi\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >&-\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >&-\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules\nfunction splitJvmOpts() {\n    JVM_OPTS=(\"$@\")\n}\neval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\nJVM_OPTS[${#JVM_OPTS[*]}]=\"-Dorg.gradle.appname=$APP_BASE_NAME\"\n\nexec \"$JAVACMD\" \"${JVM_OPTS[@]}\" -classpath \"$CLASSPATH\" org.gradle.wrapper.GradleWrapperMain \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto init\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto init\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:init\n@rem Get command-line arguments, handling Windowz variants\n\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\nif \"%@eval[2+2]\" == \"4\" goto 4NT_args\n\n:win9xME_args\n@rem Slurp the command line arguments.\nset CMD_LINE_ARGS=\nset _SKIP=2\n\n:win9xME_args_slurp\nif \"x%~1\" == \"x\" goto execute\n\nset CMD_LINE_ARGS=%*\ngoto execute\n\n:4NT_args\n@rem Get arguments from the 4NT Shell from JP Software\nset CMD_LINE_ARGS=%$\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':app'\n"
  }
]