Hi, i'm beginner.
the Google tutorial is a very good work, but the things to learn are many. Thanks a lot to anddev.org.
My first simple question:
if i set an image for my button, how can i change it like onPressed effect?
regards
andreagosto wrote:Hi, i'm beginner.
the Google tutorial is a very good work, but the things to learn are many. Thanks a lot to anddev.org.
My first simple question:
if i set an image for my button, how can i change it like onPressed effect?
regards
ych.tiger wrote:andreagosto wrote:Hi, i'm beginner.
the Google tutorial is a very good work, but the things to learn are many. Thanks a lot to anddev.org.
My first simple question:
if i set an image for my button, how can i change it like onPressed effect?
regards
Hi ,your image is too large. you can use ImageButton.setAdjustViewBounds(true) to adjust the image.
Really isn't much of a help for beginners.you can define it in xml file, you need to read the doc carefully
Return to View, Layout & Resource Problems
Users browsing this forum: No registered users and 9 guests