Hi,

I want to define an own layout for a preference (including a Button
and a TextView), using the android:layout parameter. It is displayed
correctly, but I cant access the above Views in my self-defined layout
- neither in onCreate(), onStart() nor in onResume().

I used findViewById(), but null is returned every time i call it.
However, I found out that I can access the Views with findViewById()
in onPreferenceTreeClick()! So is there a possibility to access them
in onCreate() already?

I'm using SDK1.1, if this helps.

Is there any different solution to mix the preferences and their
comfortable handling (different existing subclasses like
ListPreference, setting title & summary, register for changing values,
possibility to define them in an xml file) with own defined views/
layouts?

Christian Feldbacher

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to