help detecting click on my widget

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

help detecting click on my widget

Postby moran679 » Sun May 09, 2010 9:03 am

Hi, I've created a widget that has some text on it and I can't seem to find how to detect a click on the widget itself (and start a new activity when clicked).

I managed to get a button on that widget that does stuff when clicked, but it messes up my whole widget!
Can I do that without a button (or make the button invisible so the text would stay in the same place)?

I tried to implement the same method I used for the button on a LinearLayout, but it doesn't react when I click on it, strangely.
moran679
Freshman
Freshman
 
Posts: 3
Joined: Sun May 09, 2010 8:55 am

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests