Keep button with setPressed

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Keep button with setPressed

Postby skuz » Sun Oct 11, 2009 12:05 am

Heya, i have three buttons and i want the user to know which button that is currently pressed.

button.isPressed(true) makes the button orange focus mark, which is what i want. But when i release the button, the focus disappears. Does a function like onRelease or something exist for onClickListener, or how can i solve this? :)

thx!
skuz
Freshman
Freshman
 
Posts: 2
Joined: Tue Sep 08, 2009 1:24 pm

Top

Postby wiederke » Mon Oct 12, 2009 10:13 am

Hallo,

use the Toggle Button (http://developer.android.com/reference/ ... utton.html) if you need a button which stays in the pressed state.


Cheers,

Torsten
wiederke
Experienced Developer
Experienced Developer
 
Posts: 72
Joined: Mon Mar 02, 2009 6:46 pm
Location: Germany

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests