A wallet for your cards and various things.
This app is a modular, easy-to-extend thing that can show loyalty cards or anything else you would like in your wallet.
All of the logos used should be covered under fair-usage and it really helps me tap the right card in a hurry :)
- Clone this repo
git submodule init
git submodule update
to pull in ORMDroid- Import into Android Studio and it should work*
- Android Studio hated ActionBar-PullToRefresh for me; It compiles though, just ignore it!
- Fork this repo
- Create a new package name; I want it tidy!
- Define 2 layouts:
- An edit screen. This is where users input everything about their card. It's up to you to make this complete.
- A card view: This must use
@drawable/card_background
or it'll look stupid
- Write a subclass of
Card
(NOTStoredCard
!) - You will need 2 activities explained bellow
- Commit and send it back to me :)
This extends from ActivityEditCard. It does everything for you. If you want to do any validation
as you type, add it in OnCreate
.
Just make sure you allow the activity to do it's thing, it's pretty good at it's job
This shows the contents of your card once tapped. This is usually a barcode generated, and a simple
ActivityViewBarcode
is provided for you.
If you want a custom activity, override ActivityViewCard
and override showCard()
. This method is used because we want the screen to refresh if the card is updated.