diff --git a/CHANGELOG.md b/CHANGELOG.md index 44ac64f9..76aa729a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ Change Log =============================================================================== -Version 0.5.0 *(2013-XX-XX)* +Version 0.5.0 *(2013-10-13)* ---------------------------- * LIB: Now you can export your card as Bitmap [You can read the section 'Export card as bitmap' in this page](https://github.com/gabrielemariotti/cardslib/tree/master/doc/CARD.md) diff --git a/README.md b/README.md index 1dbf3ead..856a9429 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,12 @@ Card Library provides an easy way to display a UI Card in your Android app. -You can display single cards, list of cards and a grid of Cards. +You can display **single cards**, **list** of cards and a **grid** of Cards. ![Screen](https://github.com/gabrielemariotti/cardslib/raw/master/demo/images/screen.png) +![Screen](https://github.com/gabrielemariotti/cardslib/raw/master/demo/images/screen2.png) + --- ## Feature @@ -17,6 +19,7 @@ Card Library provides 3 custom tags: **It requires API 14+** +--------------------------------------- `CardView` displays a UI Card. @@ -26,14 +29,14 @@ Card Library provides 3 custom tags: * `CardHeader` provides an overflow button with a PopupMenuListener, a button to expand/collapse an area, or a customizable button with its listener. * `CardThumbnail` loads a Bitmap with a resource ID or with a URL using `LRUCache` and an `AsyncTask` - +--------------------------------------- `CardListView` displays a List Card. * It uses `CardView` tag and all its properties. * It works with an `CardArrayAdapter` - +--------------------------------------- `CardGridView` displays a Grid Card. @@ -99,7 +102,7 @@ Here you can find some pages to customize this tag. ## Examples -Try out the apk with the [sample application](https://github.com/gabrielemariotti/cardslib/tree/master/apk/demo040.apk) or browse the [source code of the sample application](https://github.com/gabrielemariotti/cardslib/tree/master/demo) for a complete example of use. +Try out the apk with the [sample application](https://github.com/gabrielemariotti/cardslib/blob/master/apk/demo-0.5.0.apk?raw=true) or browse the [source code of the sample application](https://github.com/gabrielemariotti/cardslib/tree/master/demo) for a complete example of use. * [Example:](https://github.com/gabrielemariotti/cardslib/tree/master/doc/EXAMPLE.md) How to realize simple and nice cards. @@ -122,7 +125,7 @@ ChangeLog Acknowledgements -------------------- -* Thanks to [Roman Nurik][1] for [Android-SwipeToDismiss][2] classes +* Thanks to [Roman Nurik][1] for [Android-SwipeToDismiss][2] classes and [UndoBarController][3] Credits @@ -138,7 +141,10 @@ Author: Gabriele Mariotti (gabri.mariotti@gmail.com) Follow me on Twitter - + + Follow me on LinkedIn + License ------- @@ -164,4 +170,5 @@ License Google and the Google Maps logo are registered trademarks of Google Inc., used with permission. [1]: https://plus.google.com/u/0/+RomanNurik/about - [2]: https://github.com/romannurik/Android-SwipeToDismiss \ No newline at end of file + [2]: https://github.com/romannurik/Android-SwipeToDismiss + [3]: https://code.google.com/p/romannurik-code/source/browse/#git%2Fmisc%2Fundobar \ No newline at end of file diff --git a/demo/images/card/cardWithUndo.png b/demo/images/card/cardWithUndo.png new file mode 100644 index 00000000..8f4fc237 Binary files /dev/null and b/demo/images/card/cardWithUndo.png differ diff --git a/demo/images/card/different_inner.png b/demo/images/card/different_inner.png new file mode 100644 index 00000000..85d3906a Binary files /dev/null and b/demo/images/card/different_inner.png differ diff --git a/demo/images/card/exportCard.png b/demo/images/card/exportCard.png new file mode 100644 index 00000000..c0d3035b Binary files /dev/null and b/demo/images/card/exportCard.png differ diff --git a/demo/images/linkedin.png b/demo/images/linkedin.png new file mode 100644 index 00000000..c9599062 Binary files /dev/null and b/demo/images/linkedin.png differ diff --git a/demo/images/screen.png b/demo/images/screen.png index 65b4c3f8..6d461720 100644 Binary files a/demo/images/screen.png and b/demo/images/screen.png differ diff --git a/demo/images/screen2.png b/demo/images/screen2.png new file mode 100644 index 00000000..4f5be066 Binary files /dev/null and b/demo/images/screen2.png differ diff --git a/doc/CARD.md b/doc/CARD.md index c5831807..5a64f812 100644 --- a/doc/CARD.md +++ b/doc/CARD.md @@ -351,7 +351,7 @@ If you need to replace the inner layout in a card, you can use your `Card` model ``` In your `setupInnerViewElements()` method you should provide the correct way to put values in your ui elements according to the layout. -You can see the example in 'ChangeValueCardFragment'. +You can see the example in `ChangeValueCardFragment`. ### Customize Card background @@ -392,7 +392,7 @@ If you want to change the rounded corners, the quickest way would be to customiz ### Export card as bitmap -Now you can export your `Card` as a Bitmap. +You can export your `Card` as a Bitmap. It is very simple. @@ -401,14 +401,14 @@ It is very simple. Bitmap bitmap = cardView.createBitmap(); ``` -[todo:image] +![Screen](https://github.com/gabrielemariotti/cardslib/raw/master/demo/images/card/exportCard.png) You can use this bitmap for your scopes. In `BitmapUtils` class there are some built-in methods: -1. You can use `File photofile= BitmapUtils.createFileFromBitmap(bitmap)` to save image in `Environment.DIRECTORY_PICTURES` folder. -2. You can use `Intent intent = BitmapUtils.createIntentFromImage(photofile)` to put as `EXTRA_STREAM` in a `Intent`. +1. You can use `File photofile= BitmapUtils.createFileFromBitmap(bitmap)` to save the image in `Environment.DIRECTORY_PICTURES` folder. +2. You can use `Intent intent = BitmapUtils.createIntentFromImage(photofile)` to put the image as `EXTRA_STREAM` in a `Intent`. You can see the example in `BirthDayCardFragment` and `StockCardFragment` where you can share the card as a bitmap. \ No newline at end of file diff --git a/doc/CARDLIST.md b/doc/CARDLIST.md index 22dece06..2c4ff0eb 100644 --- a/doc/CARDLIST.md +++ b/doc/CARDLIST.md @@ -143,7 +143,8 @@ Moreover you can extend `CardArrayAdapter` and provide your logic. } ``` You can see the example in 'ListDifferentInnerBaseFragment'. -[todo:image] + +![Screen](https://github.com/gabrielemariotti/cardslib/raw/master/demo/images/card/different_inner.png) ### Swipe and Undo in `CardListView` @@ -220,6 +221,7 @@ Then you can set a `Card.OnUndoSwipeListListener` to listen the undo action. ``` You can customize the undo bar. The easiest way is to copy the styles inside `res/values/styles_undo.xml` in your project. -You can see the example in 'ListGplayUndoCardFragment'. -[todo:image] \ No newline at end of file +You can see the example in `ListGplayUndoCardFragment`. + +![Screen](https://github.com/gabrielemariotti/cardslib/raw/master/demo/images/card/cardWithUndo.png) \ No newline at end of file diff --git a/doc/THUMBNAIL.md b/doc/THUMBNAIL.md index 97bf46eb..980a62e4 100644 --- a/doc/THUMBNAIL.md +++ b/doc/THUMBNAIL.md @@ -122,7 +122,7 @@ If you would like to know when the image is downloaded and attached to ImageView `Constants.IntentManager.INTENT_ACTION_IMAGE_DOWNLOADED` Broadcast Intents, as shown: ``` java - activity.registerReceiver(mReceiver,new IntentFilter(Constants.IntentManager.INTENT_ACTION_IMAGE_DOWNLOADED)); + activity.registerReceiver(mReceiver,new IntentFilter(Constants.IntentManager.INTENT_ACTION_IMAGE_DOWNLOADED)); ``` This Intent includes extras that provide additional details: @@ -153,6 +153,7 @@ This Intent includes extras that provide additional details: ``` + --- Google and the Google Maps logo are registered trademarks of Google Inc. \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 274165be..59603144 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ -VERSION_NAME=0.4.1-SNAPSHOT -VERSION_CODE=8 +VERSION_NAME=0.5.1-SNAPSHOT +VERSION_CODE=9 GROUP=com.github.gabrielemariotti.cards POM_DESCRIPTION=Android Library to build a UI Card