开发者

how to create simple voting app like hot or not for android

I was looking for some tutorial or any opensource implementation of simple vote up / vote down any pic on android. Something similar to hot or not.

Can you please tell me how can i impleme开发者_JS百科nt it?. Should i keep the up/down button constant and change the pic or whole activity needs to be changed?

Thanks


You don't need to change the activity. Just implement ImageView. When a vote has been made, simply change the picture in the ImageView. setImageResource(R.drawable.something); or an image file from storage. EDIT: The votes can be stored in Preferences.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜