Making a button only selectable through touch?

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

Making a button only selectable through touch?

Postby jmejiaa » Fri Dec 05, 2008 3:46 pm

Hello,

I wonder if there is an attrbiute for views/buttons to make them only accessible through touch? For example I don't want my button to be reachable through the trackball or moving left-right on the keyboard, only touch.

Is this possible?
jmejiaa
Junior Developer
Junior Developer
 
Posts: 22
Joined: Sat Nov 15, 2008 6:36 pm

Top

Postby jmejiaa » Sun Dec 07, 2008 6:48 pm

For anyone in the future with the same question, it was the focusable attribute.
jmejiaa
Junior Developer
Junior Developer
 
Posts: 22
Joined: Sat Nov 15, 2008 6:36 pm

Postby MrSnowflake » Sun Dec 07, 2008 6:59 pm

Extend Button and have the OnKey methods return for key events.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 8 guests