This is a follow-up to my previous blog article about a StoreItemFragment object in Android. That fragment can be used to display items in a store. My plan is to use this fragment for purchases made in a game with virtual currency and to use it so a player can make an in-app purchase using real money to purchase game coins.
I have not finished the app. It’s still a couple of months out. However, I did want to report that the fragment for store items seems to be working out about right. A couple of screenshots are included below. The only modification I made to the code that I wrote about last time is the addition of some text to indicate to the user that equipment has already been installed.
Figure 1 – Upgrades screen
Figure 2 – Coins screen
On the Upgrades screen, the symbol to the right of the purchase button is a gold coin. On the Coins screen, the unit of currency while I am debugging the game is an alpha test dollar. Each of the activities uses four StoreItemFragment objects in its layout xml file.
If you are curious about the game, it is a turn-based space war game. It should be available for beta test in another 2-3 months.
(Update – January 10, 2014. For the latest on the space war app, see the recent post: Starship App Alpha Test.)