ChangeLog Library provides an easy way to display a change log in your Android app.
ChangeLog Library 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.
<?xml version="1.0" encoding="utf-8"?>
<view xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:chg="http://schemas.android.com/apk/res-auto"
class="it.gmariotti.changelibs.library.view.ChangeLogListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/view"
/>
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.
<?xml version="1.0" encoding="utf-8"?>
<changelog bulletedList="true">
<changelogversion versionName="1.0" changeDate="Aug 26,2013">
<changelogtext>Initial release.</changelogtext>
</changelogversion>
<changelogversion versionName="0.9" changeDate="Aug 11,2013">
<changelogtext>[b]New![/b] Add new attrs to customize header and row layout</changelogtext>
<changelogtext>Fixed log while parsing </changelogtext>
<changelogtext>Add support for html markup</changelogtext>
<changelogtext>Add bullet point in </changelogtext>
<changelogtext>Support for customized xml filename</changelogtext>
</changelogversion>
</changelog>
Last, if you would like a multi language changelog, you just have to put the translated files changelog.xml
in the appropriate folders res/raw-xx/
.
For more detailed information and examples you can read this document:
See the customisation page: for more information.
Author: Gabriele Mariotti ([email protected])
Copyright 2013 Gabriele Mariotti
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.