Skip to content

Commit

Permalink
Prepare release 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielemariotti committed Oct 13, 2013
1 parent 4ffb9a0 commit c67d607
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -17,6 +19,7 @@ Card Library provides 3 custom tags:

**It requires API 14+**

---------------------------------------

`CardView` displays a UI Card.

Expand All @@ -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.

Expand Down Expand Up @@ -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.

Expand All @@ -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
Expand All @@ -138,7 +141,10 @@ Author: Gabriele Mariotti ([email protected])
<img alt="Follow me on Twitter"
src="https://github.com/gabrielemariotti/cardslib/raw/master/demo/images/twitter64.png" />
</a>

<a href="http://it.linkedin.com/in/gabrielemariotti">
<img alt="Follow me on LinkedIn"
src="https://github.com/gabrielemariotti/cardslib/raw/master/demo/images/linkedin.png" />
</a>

License
-------
Expand All @@ -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
[2]: https://github.com/romannurik/Android-SwipeToDismiss
[3]: https://code.google.com/p/romannurik-code/source/browse/#git%2Fmisc%2Fundobar
Binary file added demo/images/card/cardWithUndo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/images/card/different_inner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/images/card/exportCard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/images/linkedin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/images/screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/images/screen2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions doc/CARD.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand All @@ -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.
8 changes: 5 additions & 3 deletions doc/CARDLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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]
You can see the example in `ListGplayUndoCardFragment`.

![Screen](https://github.com/gabrielemariotti/cardslib/raw/master/demo/images/card/cardWithUndo.png)
3 changes: 2 additions & 1 deletion doc/THUMBNAIL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -153,6 +153,7 @@ This Intent includes extras that provide additional details:
```



---

Google and the Google Maps logo are registered trademarks of Google Inc.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c67d607

Please sign in to comment.