Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pchmn authored Apr 14, 2017
1 parent 915f4ba commit 1cb0023
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ But everything is configurable (optional avatar icon, optional full detailed vie
### Basic Usage

#### XML
Use the ChipsInput view in your layout and customize it ([see](#chipsinput-attributes) all attributes) :
Use the ChipsInput view in your layout with default options :

```xml
<com.pchmn.materialchips.ChipsInput
android:id="@+id/chips_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="Enter a name" />
```
You can also customize it ([see](#chipsinput-attributes) all attributes) :
```xml
<com.pchmn.materialchips.ChipsInput
android:id="@+id/chips_input"
Expand All @@ -55,7 +63,6 @@ Use the ChipsInput view in your layout and customize it ([see](#chipsinput-attri
app:chip_backgroundColor="@color/customColor"
app:chip_deletable="false"
app:chip_deleteIconColor="@color/customColor"
app:showChipDetailed="true"
app:chip_detailed_textColor="@color/customColor"
app:chip_detailed_backgroundColor="@color/customColor"
app:chip_detailed_deleteIconColor="@color/customColor"
Expand Down

0 comments on commit 1cb0023

Please sign in to comment.