diff --git a/.gitignore b/.gitignore index c9c2248..76be0fa 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ proguard/ # Android Studio captures folder captures/ + +*.iml diff --git a/Android-ExpandableTextView.iml b/Android-ExpandableTextView.iml deleted file mode 100644 index d569d2c..0000000 --- a/Android-ExpandableTextView.iml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..994a1ea --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +CHANGE LOG +========================== + +1.0.0 +----- +Initial version of the ExpandableTextView diff --git a/ExpandableTextView.iml b/ExpandableTextView.iml deleted file mode 100644 index 488df12..0000000 --- a/ExpandableTextView.iml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/README.md b/README.md index 30d0d47..1492242 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,144 @@ -# Android-ExpandableTextView -An expandable TextView for Android applications +Android-ExpandableTextView +========================== +An expandable TextView for Android applications (4.0+). + +[ ![Download](https://api.bintray.com/packages/blogcat/maven/android-expandabletextview/images/download.svg) ](https://bintray.com/blogcat/maven/android-expandabletextview/_latestVersion) + +Demo +---- +This repository also contains a demo project. + +![Demo](https://raw.githubusercontent.com/Blogcat/Android-ExpandableTextView/release/1.0.0/demo.gif) + +Add dependency +-------------- +This library is not yet released in Maven Central, but instead you can use [Bintray](https://www.bintray.com). + +```groovy + repositories { + maven { + url "https://dl.bintray.com/blogcat/maven" + } + } +``` + +library dependency + +```groovy + dependencies { + compile ('at.blogc:expandabletextview:1.0.0@aar') + } +``` + +Usage +----- +Using the ExpandableTextView is very easy, it's just a regular TextView with some extra functionality added to it. By defining the android:maxLines attribute, you can set the default number of lines for the TextView collapsed state. + +```xml + + + + + + +