21.03.2011 20:05, Wall-E пишет:
03-21 16:12:24.395: ERROR/AndroidRuntime(1472): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
PreferenceActivity uses a list view to display its content. If you wish use your own layout for the activity, include a ListView with id="@android:id/list".
So assuming that I should be able to what I described above, my question should be how to inflate the PreferenceActivity using my layout created for the dialog but also sneaking in Preference views such as ListPreference in that same layout.
Start with your own views, then a list view that would be used for preference views.
I'm just now thinking I should create a Preference Screen layout and include all the views I had in my dialog layout.
You can integrate your own views by using Preference, with or without subclassing, by using "android:layout" attribute in XML or setLayoutResource in code.
-- Kostya Vasilyev -- http://kmansoft.wordpress.com -- 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

