Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Drawable, listener?  RSS feed

Ranch Hand
Posts: 103
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have such problem: I have created my View with this variable:

And im adding images on my view using this

and by adding bounds setBounds(...)

Im just simply generating tiled map. And now im wondering how to add action to each tile.

I have been reading its to possibile to receive actions by drawable, so i guess imagebutton for each tile would be good, dont you think so?

So can someone tell me how to create imagebutton and add it to view by drawable?

I just removed most of the logic, to make my question clean, hope someone have any idea how to do it, thanks

Pay attention! Tiny ad!
Thread Boost - a very different sort of advertising
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!