Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
am3n committed Apr 15, 2022
1 parent c2b0b56 commit 93b7674
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ Usage
Add log history as xml sources to `/res/xml`

```xml

<changelog>

<release version="1.3.0" versioncode="70" date="2021-11-20">
Expand Down Expand Up @@ -104,9 +103,8 @@ If use `layoutDirection` should add this your project & handle Rtl supporting in
yourself.

```xml

<application android:supportsRtl="false">

<application
android:supportsRtl="false">
</application>
```

Expand All @@ -129,7 +127,6 @@ Customization
- Can add change logs in other locales (e.g. `/res/xml-fa-rIR/`)

```xml

<changelog>

<release version="۱.۳.۰" versioncode="70" date="1401/1/20">
Expand All @@ -155,33 +152,31 @@ Customization

###

- Can override the `new`, `change`, `info`, `fix` tag icons.
- new: `R.drawable.ic_changelog_item_new`
- change: `R.drawable.ic_changelog_item_change`
- info: `R.drawable.ic_changelog_item_info`
- fix: `R.drawable.ic_changelog_item_fix`
- Can override the `new`, `change`, `info`, `fix` tag icons by creating your own custom icons with
the same name as the drawables below:
- new tag: `R.drawable.ic_changelog_item_new`
- change tag: `R.drawable.ic_changelog_item_change`
- info tag: `R.drawable.ic_changelog_item_info`
- fix tag: `R.drawable.ic_changelog_item_fix`

###

- Can change default icon for all `custom` tags that has no `icon` parameter:
- Can change default icon for all `custom` tags that has no `icon` attribute by
overriding the `R.drawable.ic_changelog_item_custom_default`

```xml

<release>
...
<custom>Added features</custom>
</release>
```

by overriding drawable: `R.drawable.ic_changelog_item_custom_default`

###

- Can override the `new`, `change`, `info`, `fix` tag icon default colors.
(e.g. `/res/values/`, `/res/values-night/`)

```xml

<resources>
...
<color name="colorChangelogItemNew">?</color>
Expand Down

0 comments on commit 93b7674

Please sign in to comment.