thanks, just hope someone fix it soon... On 4 dez, 22:35, Gergely Juhász <[email protected]> wrote: > yeah, it is a known bug:http://code.google.com/p/android/issues/detail?id=4611 > > On 3 December 2010 23:59, Douglas Fonseca <[email protected]> wrote: > > > > > > > > > Hi, > > I'm working on a preference screen to my app. The main preference screen is > > described in a .xml file and in this XML code I declared another > > PreferenceScreen that will appear when the user clicks on a button in the > > main preference screen. > > > <?xml version="1.0" encoding="utf-8"?> > > <PreferenceScreen > > xmlns:android="http://schemas.android.com/apk/res/android"> > > <CheckBoxPreference > > android:key="a" > > android:title="@string/a" > > android:summary="@string/a" /> > > <PreferenceScreen > > xmlns:android="http://schemas.android.com/apk/res/android" > > android:title="@string/a_screen" > > android:key="a_screen" > > android:summary="@string/a_screen" > > > <CheckBoxPreference > > android:key="vibrate_all_agendas" > > android:title="@string/none_agendas" /> > > </PreferenceScreen> > > </CheckBoxPreference> > > </PreferenceScreen> > > > It results in a button on my main preference screen that when clicked open > > the child a_screen. > > OK, now the problem, I can set a background image to my main screen doing > > this in onCreate method: > > > protected void onCreate(Bundle savedInstanceState) > > { > > super.onCreate(savedInstanceState); > > addPreferencesFromResource(R.xml.mainprefs); > > getListView().setBackgroundResource(R.drawable.bg); > > getListView().setCacheColorHint(0); > > . > > . > > . > > > But I can't set the same background image to my child preferences screens > > said above because I can't find the getListView method for them... > > Doing > > PreferenceScreen aPrefs = (PreferenceScreen) > > findPreference(OPT_VIBRATE_SELECT); > > Just give me a PreferenceScreen Object that have no getListView method... > > > Any tips?? > > > Thanks, > > > --------------------------------------------------- > > Douglas Fonseca > > Engenharia da Computação 2010 > > Universidade Estadual de Campinas > > > -- > > 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]<android-developers%2Bunsubs > > [email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en
-- 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

