EditText

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

EditText

Postby triplem » Wed Jun 11, 2008 9:04 pm

I apologize if this is a stupid question, but how do I set an onFocus event? I'm new to programming with android, and to accustom myself to programming this, I'm making a simple temperature conversion application. Right now i have three edit text fields, one for each temp. scale. I want to have it set so that the other two fields are erased as a user selects one field, preventing them from entering data in more than one field per conversion. Is there some sort of TextView.onFocus(){} thing I can do?
<insert wise comment here>
triplem
Freshman
Freshman
 
Posts: 5
Joined: Tue Jun 10, 2008 2:53 pm

Top

Postby michael_g_hu » Wed Jul 02, 2008 9:25 am

just use setOnfocusChangedListener of view. I think you need to read the doc by detail
michael_g_hu
Developer
Developer
 
Posts: 35
Joined: Fri Mar 21, 2008 9:46 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google Feedfetcher and 5 guests