Hi all,
First time I post a question, didn't find any answer with www-search
or search-this-group.
Reducing my problem to a minimal program, I ended up with this:
I have a
public class MyPreferenceActivity extends PreferenceActivity
In its onCreate method I call
addPreferencesFromResource(R.layout.preferences);
file res/layout/preferences.xml only specified my own
EditTextPreference with a minimum of attributes.
EditTextPreference extends Preference
itself is just a wrapper around an EditText
MyPreferenceActivity is specified in AndroidManifest.xml at the
Activity to launch when the launcher icon is pressed.
that's it.
for reference, the full source-code is available here:
http://qyanu.com/android/example_preference-loose-focus/
Actual behaviour:
When App is startet, MyPreferenceActivity is created, started, resumed
and displayed on screen of device.
the EditText appears and shows the hint.
when user taps onto touch-screen inside EditText, EditText gains
focus. Then SoftKeyboard is show on screen and EditText looses focus
again.
This forces the user to tap inside EditText a second time in order to
enter some text there.
Desired Behaviour:
Like Actual behaviour, but EditText should not loose focus so user can
type without tapping a second time.
Environment:
Hardware: Samsung Galaxy GT-I9000
Android: 2.1-update1
Compile&Deploy with Eclipse Galileo and Android SDK.
Any hints what I am missing, why the damed EditText is loosing focus
are very welcome.
with kind regards,
Max-Julian Pogner
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en