Skip to content

Commit

Permalink
Update README and MIGRATION for 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-stoneuk committed Jul 13, 2020
1 parent 60410bb commit 05165de
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Migration Guide

### Release 3.2.0

* RecycledViewPool is now used to improve performance in longer lists

* Change back to old style of card with elevation and no outline with `.outline(false)` on your card builder.

### Release 3.1.0

* New layout shouldn't cause any issues.
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ dependencies {
}
```

Help test `3.2.0` with shared views between adapters (may cause crashes):

```gradle
dependencies {
implementation 'com.github.daniel-stoneuk:material-about-library:3.2.0-rc01'
}
```

## Migration

View the migration guide [here](/MIGRATION.md)
Expand Down Expand Up @@ -141,6 +149,15 @@ MaterialAboutCard card = new MaterialAboutCard.Builder()
.build();
```


Enable elevation and disable the outline to get a more classic design by calling `.outline(false)` on the `MaterialAboutCard.Builder`

```java
MaterialAboutCard card = new MaterialAboutCard.Builder()
.outline(false)
.build();
```

### Add Items to a card:

There are currently two types of items you can add to a card - [`MaterialAboutTitleItem`][9] and [`MaterialAboutActionItem`][10]. Other types of items are planned, for example "person" items which feature buttons to showcase a single person. Feel free to submit a PR or Issue for more item ideas.
Expand Down

0 comments on commit 05165de

Please sign in to comment.