Skip to content

Commit

Permalink
Added Data change observable
Browse files Browse the repository at this point in the history
  • Loading branch information
hb committed May 17, 2018
1 parent b3adaa8 commit 899996c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ adapter.setOnDataUpdateListener {

Use tools attribute for previewing Layout, so you don't need to always run application

- **recyclerview**
**recyclerview**

``` xml
tools:listitem="@layout/inflater_category"
Expand All @@ -182,23 +182,23 @@ Use tools attribute for previewing Layout, so you don't need to always run appli

```

- **layout**
**layout**

``` xml
tools:text="Sample Text"
tools:visibility="VISIBLE"
tools:background="@color/colorPrimary"
```

- **android predefine sample data**
**android predefine sample data**

``` xml
tools:text="@tools:sample/cities,first_names,us_phones,lorem,lorem/random"
tools:background="@tools:sample/backgrounds/scenic"
tools:src="@tools/avatars"
```

- **custom sample data**
**custom sample data**

To create your fake/sample data folder,
just right click on the “app” folder then “new > Sample Data directory” <br />
Expand Down

0 comments on commit 899996c

Please sign in to comment.