An android library to display your changelog
I've published a small library to display your changelog.
You can find sources, docs and examples in github.
ChangeLog Library provides an easy way to display a change log in your Android app.
It provides a custom
Implementing this library in your own apps is pretty simple.
First, you need an XML layout that will contain the
It automatically searches for
There are many ways you can customize the changelog view.
For more detailed information you can see this page.
Custom Header Layout
Library uses
You can use your own xml layout with
There's a specific set of views you need to have in your layout:
You can find an example in
Custom Row Layout
Library uses
You can use your own xml layout with
There's a specific set of views you need to have in your layout:
You can find an example in
Custom ChangeLog XML
Library uses
You can use your own file with
You can find an example in
Bullet Point
The quickest way to customize this character is to specify this resource in your
If you don't want a bullet list you can specify it in
Html Text Markup
You can use some html text markup as bold and italic in your changelog.xml
Customize `Version` String
You can customize `Version` String in header.
The quickest way to customize this character is to specify this resource in your
Use string with quotes if you want a space.
For more detailed information and examples you can read this document.
You can get code from GitHub:
You can find sources, docs and examples in github.
ChangeLog Library provides an easy way to display a change log in your Android app.
It provides a custom
ListView to display a change log through a xml file.- it supports multi language
- you can use it in Activities, Fragments, Dialogs
- it supports html text markup as bold and italics
- you can customize layout and behaviour
Implementing this library in your own apps is pretty simple.
First, you need an XML layout that will contain the
ChangeLogListView that displays your changelog.Then, you need a XML file with change log in
res/raw folder.It automatically searches for
res/raw/changelog.xml but you can customize filename.Last, if you would like a multi language changelog, you just have to put the translated filesInitial release. [b]New![/b] Add new attrs to customize header and row layout Fixed log while parsing Add support for html markup Add bullet point in Support for customized xml filename
changelog.xml in the appropriate folders res/raw-xx/.
There are many ways you can customize the changelog view.
For more detailed information you can see this page.
Custom Header Layout
Library uses
res/layout/changelogrowheader_layout.xml XML layout for each header.You can use your own xml layout with
chg:rowHeaderLayoutId attribute in ChangeLogListView element.The quickest way to start with this would be to copy the
changelogrowheader_layout.xml file layout resource file from this project into your own and modify its contents.There's a specific set of views you need to have in your layout:
- A
TextViewwith the IDchg_headerVersionthat display the Version Number - A
TextViewwith the IDchg_headerDatethat display the Version Date
You can find an example in
demo_changelogrowheader_layout.xml file.
Custom Row Layout
Library uses
res/layout/changelogrow_layout.xml XML layout for each row.You can use your own xml layout with
chg:rowLayoutId attribute in ChangeLogListView element.The quickest way to start with this would be to copy the
changelogrow_layout.xml file layout resource file from this project into your own and modify its contents.There's a specific set of views you need to have in your layout:
- A
TextViewwith the IDchg_textbulletthat display the bullet point - A
TextViewwith the IDchg_textthat display the actual text that will be displayed as a change in your List
You can find an example in
demo_changelogrow_layout.xml fileCustom ChangeLog XML
Library uses
res/raw/changelog.xml.You can use your own file with
chg:changeLogFileResourceId attribute in ChangeLogListView element.You can find an example in
demo_changelogrow_fragment_customlayout.xml file.Bullet Point
The quickest way to customize this character is to specify this resource in your
strings.xml.\u2022"
If you don't want a bullet list you can specify it in
changelog.xml file with bulletedList="false" attribute......
Html Text Markup
You can use some html text markup as bold and italic in your changelog.xml
You can use:[b]New![/b] Add new attrs to customize header and row layout Fixed log while [i]parsing[/i] performance <b>improvement</b> ....
-
[b]text[/b]for a bold style, or<b> text </b> -
[i]text[/i]for an italic style, or<b> text </i>
Customize `Version` String
You can customize `Version` String in header.
The quickest way to customize this character is to specify this resource in your
strings.xml.
"Revision "
Use string with quotes if you want a space.
For more detailed information and examples you can read this document.
You can get code from GitHub:
Comments
Post a Comment