https://github.com/jakebonk/chipview
A simple Chip based EditText with a searchable ListView
https://github.com/jakebonk/chipview
android android-development android-lib android-libraries android-library android-libs androidstudio chips chipview java tags
Last synced: 5 months ago
JSON representation
A simple Chip based EditText with a searchable ListView
- Host: GitHub
- URL: https://github.com/jakebonk/chipview
- Owner: jakebonk
- License: apache-2.0
- Created: 2018-01-14T16:00:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-18T23:55:57.000Z (almost 5 years ago)
- Last Synced: 2025-04-01T06:01:53.889Z (6 months ago)
- Topics: android, android-development, android-lib, android-libraries, android-library, android-libs, androidstudio, chips, chipview, java, tags
- Language: Java
- Homepage:
- Size: 137 KB
- Stars: 45
- Watchers: 1
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://jitpack.io/#jakebonk/ChipView)
# Chip View
This is a simple chip library that allows you to create your own chip views and views for the listview all within one adapter.## Example

## Download library with Jitpack.io
Add this to your build.gradle file for your app.
```java
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```Add this to your dependencies in build.gradle for your project.
```java
dependencies {
compile 'com.github.jakebonk:ChipView:1.0.1'
}
```
## Usage
Create a ChipView in your xml file
```
```
Then in your Java code create and set the SimpleChipAdapter.```java
ChipView cvTag = (ChipView)findViewById(R.id.cvTag);
ArrayList data = new ArrayList<>();
data.add("First Item");
data.add("Second Item");
data.add("Third Item");
data.add("Fourth Item");
data.add("Fifth Item");
data.add("Sixth Item");
data.add("Seventh Item");
SimpleChipAdapter adapter = new SimpleChipAdapter(data);
cvTag.setAdapter(adapter);
```
If you want to create your own adapter just extend the ChipAdapter class and use the SimpleChipAdapter class as a reference.