{"id":13849371,"url":"https://github.com/kpbird/chips-edittext-library","last_synced_at":"2026-03-16T11:08:37.370Z","repository":{"id":7130698,"uuid":"8426597","full_name":"kpbird/chips-edittext-library","owner":"kpbird","description":"Chips EditText, Token EditText, Bubble EditText, Spannable EditText and etc.. There are many names of this control. Here I develop easy to understand , modify and integrate Chips Edit Text widget for Android","archived":false,"fork":false,"pushed_at":"2018-02-27T22:43:45.000Z","size":1196,"stargazers_count":380,"open_issues_count":12,"forks_count":75,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-08-05T19:37:00.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kpbird.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-26T06:24:38.000Z","updated_at":"2024-05-29T18:31:23.000Z","dependencies_parsed_at":"2022-09-08T00:52:21.816Z","dependency_job_id":null,"html_url":"https://github.com/kpbird/chips-edittext-library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpbird%2Fchips-edittext-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpbird%2Fchips-edittext-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpbird%2Fchips-edittext-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpbird%2Fchips-edittext-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kpbird","download_url":"https://codeload.github.com/kpbird/chips-edittext-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225829364,"owners_count":17530663,"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":[],"created_at":"2024-08-04T19:01:15.514Z","updated_at":"2025-12-25T23:47:18.838Z","avatar_url":"https://github.com/kpbird.png","language":null,"funding_links":[],"categories":["Others","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"Chips EditText Library\n=============\n\nChips EditText, Token EditText, Bubble EditText, Spannable EditText and etc.. There are many names of this control. Here I develop easy to understand , modify and integrate Chips Edit Text widget for Android\n\n=============\n\n![Alt text](http://4.bp.blogspot.com/-UbYkEsvo_sA/URjCXD6rf-I/AAAAAAAADs4/vIEa_MiiAu4/s320/device-2013-02-11-150502.png)\n\n\nStep 1: Clone git repor or download zip file\n\nStep 2: Import ChipsEditTextLibrary in your eclipse workspace\n\nStep 3: Create new Android project\n\nStep 4: Set ChipsEditTextLibrary as reference of your project\n\n![Alt text](http://1.bp.blogspot.com/-YN5yAxsAB60/USxiDr7QNJI/AAAAAAAADxY/eI7aNQYkM8Q/s320/Screen+Shot+2013-02-26+at+12.49.21+PM.png)\n\nRight Click on Project -\u003e Properties -\u003e Android -\u003eAdd\n\nStep 4: Open your xml layout file and add ChipsEditText control\n\n```xml\n  \u003ccom.kpbird.chipsedittextlibrary.ChipsMultiAutoCompleteTextview\n        android:id=\"@+id/chipsMultiAutoCompleteTextview1\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_alignParentTop=\"true\"\n        android:ems=\"10\"\n        android:text=\"\" \u003e\n\n        \u003crequestFocus /\u003e\n    \u003c/com.kpbird.chipsedittextlibrary.ChipsMultiAutoCompleteTextview\u003e\n```\n\nStep 5: Open your Activity class and write following code. \n\n```java\n  package com.kpbird.chipsedittextdemo;\n\n  import java.util.ArrayList;\n\n  import android.app.Activity;\n  import android.content.res.TypedArray;\n  import android.os.Bundle;\n  import android.util.Log;\n  \n  import com.kpbird.chipsedittextlibrary.ChipsAdapter;\n  import com.kpbird.chipsedittextlibrary.ChipsItem;\n  import com.kpbird.chipsedittextlibrary.ChipsMultiAutoCompleteTextview;\n  \n  public class MainActivity extends Activity {\n  \n @Override\n protected void onCreate(Bundle savedInstanceState) {\n  super.onCreate(savedInstanceState);\n  setContentView(R.layout.activity_main);\n\n  ChipsMultiAutoCompleteTextview ch = (ChipsMultiAutoCompleteTextview) findViewById(R.id.chipsMultiAutoCompleteTextview1);\n\n  String[] countries = getResources().getStringArray(R.array.country);\n  TypedArray imgs = getResources().obtainTypedArray(R.array.flags);\n\n  ArrayList\u003cChipsItem\u003e arrCountry = new ArrayList\u003cChipsItem\u003e();\n\n  for (int i = 0; i \u003c countries.length; i++) {\n   arrCountry.add(new ChipsItem(countries[i], imgs\n     .getResourceId(i, -1)));\n   Log.i(\"Main Activity\", arrCountry.get(i).getTitle() + \" = \"\n     + arrCountry.get(i).getImageid());\n  }\n\n  Log.i(\"MainActivity\", \"Array :\" + arrCountry.size());\n\n  ChipsAdapter chipsAdapter = new ChipsAdapter(this, arrCountry);\n  ch.setAdapter(chipsAdapter);\n\n }\n\n}\n```\n\nStep 6: You need to use ChipsItem and ChipsAdapter to provide data. ChipsItem has two field 1. Title and 2. Image Id (R.drawable.android), In above sample I have created two array in string.xml for title and images.\n\nFor more detail please refer : http://www.kpbird.com/2013/02/android-chips-edittext-token-edittext_26.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpbird%2Fchips-edittext-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkpbird%2Fchips-edittext-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpbird%2Fchips-edittext-library/lists"}