Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Android Chips

Basic chips implementation. Still in very early development, interfaces, names and behaviour may change considerably in upcoming releases.

Ideally this library should follow material design spec but most of the details are still not implemented.

alt tag

Version

[ Download ](https://bintray .com/tengioltd/maven/android-chips/_latestVersion)

HOW TO

Dependencies

dependencies {
    ...
    compile('com.tengio.android:chips:latest_version')
    ...
}

By adding locations library dependency you will automatically get the following dependencies:

compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:design:25.0.0'

Layouts

Add ChipsView to the layout, like this:

<com.tengio.android.chips.ChipsView android:id="@+id/custom_chips"
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content"/>

When you get a reference to the ChipsView you can add a list of Chips (Interface for any kind of model that you want to pass through).

chipsView.setItems(chipList);

You can also register listeners to receive callbacks when chips are removed from the list.

chipsView.setOnChipRemovedListener(new OnChipRemovedListener() {
    @Override
    public void onRemoved(Chip chip) {

    }
});

Library updates

We use bintray to deploy changes to jcenter. To deploy a new version make sure to define BINTRAY_USER and BINTRAY_KEY variables. Then run:

gradle bintrayUpload

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published

Languages