{"id":25006686,"url":"https://github.com/javierpe/android-filterview","last_synced_at":"2025-04-12T15:52:33.252Z","repository":{"id":83891929,"uuid":"86492395","full_name":"javierpe/Android-FilterView","owner":"javierpe","description":"Build a simple filter view with customizable controls.","archived":false,"fork":false,"pushed_at":"2018-02-20T16:05:22.000Z","size":12674,"stargazers_count":20,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T10:21:22.556Z","etag":null,"topics":["android","filter","filters","library","view"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javierpe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-28T18:15:08.000Z","updated_at":"2022-07-28T00:06:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"d372745e-f3fe-408b-a823-7a572d994d1e","html_url":"https://github.com/javierpe/Android-FilterView","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierpe%2FAndroid-FilterView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierpe%2FAndroid-FilterView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierpe%2FAndroid-FilterView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierpe%2FAndroid-FilterView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javierpe","download_url":"https://codeload.github.com/javierpe/Android-FilterView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248592061,"owners_count":21130168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","filter","filters","library","view"],"created_at":"2025-02-05T01:50:41.855Z","updated_at":"2025-04-12T15:52:33.246Z","avatar_url":"https://github.com/javierpe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android FilterView\n[![](https://jitpack.io/v/FranciscoJavierPRamos/Android-FilterView.svg)](https://jitpack.io/#FranciscoJavierPRamos/Android-FilterView)\n\nBuild a simple filter view with customizable controls.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Screenshot_2018-02-20-09-48-41.png\" width=\"350\"/\u003e\n  \u003cimg src=\"Screenshot_2018-02-20-09-49-24.png\" width=\"350\"/\u003e\n\u003c/p\u003e\n\n\n# Download from Gradle\n\n1. Add it in your root build.gradle at the end of repositories:\n```\nallprojects {\n  repositories {\n    ...\n    maven { url 'https://jitpack.io' }\n    }\n} \n```\n2. Add the dependency\n``` \t\ndependencies {\n  compile 'com.github.FranciscoJavierPRamos:Android-FilterView:1.0.4'\n}\n```\n\n# Usage\n\n* Create a section\n```java\nSingleSection singleSection = new SingleSection.Builder(\"Category\", 1)\n                .setSectionNameColor(R.color.colorAccent)\n                .addOption(new SingleOption(\"CUSTOMER\", R.color.colorAccent,\n                        R.drawable.ic_account_black_24dp, R.color.colorBackground,\n                        R.color.colorAccent, 2, R.color.colorAccent))\n                .addOption(new SingleOption(\"ORGANIZATION\", R.color.colorAccent,\n                        R.drawable.ic_layers_black_24dp, R.color.colorBackground,\n                        R.color.colorAccent, 2, R.color.colorAccent))\n                .build().setOnSingleOptionListener(new OnSingleOptionListener() {\n                    @Override\n                    public void onClick(SingleOption option) {\n\n                    }\n                });\n```\n\n* Create FilterView instance and add section \n``` java\nnew FilterView.Builder(this)\n                .withTitle(\"Aplicar\")\n                .setToolbarVisible(true)\n                .withTitleColor(R.color.colorAccent)\n                .withDivisorColor(R.color.colorAccent)\n                .setCloseIconColor(R.color.colorAccent)\n                .addSection(singleSection)\n                .build()\n                .setOnFilterViewResultListener(new OnFilterViewResultListener() {\n                    @Override\n                    public void onResult(JSONArray data) {\n                        System.out.println(data.toString());\n                    }\n                }).show();\n```\nCall to ```show(); ``` method to display FilterView and ```setOnFilterViewResultListener(...) ``` to return JSONArray with data filtered.\n\n# Sections\n\n* SingleSection with SingleOption control.\n* SliderSection with SliderOption control.\n* TagSection with String tags.\n* ExtraSection with:\n  * ExtraBoolean\n  * ExtraCurrencyEditText\n  * ExtraDate\n  * ExtraHSM\n  * ExtraList\n  * ExtraEditText\n  \n\n# License\n\n```java Copyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierpe%2Fandroid-filterview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavierpe%2Fandroid-filterview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierpe%2Fandroid-filterview/lists"}