Android changing the background color for preference fragment -


i have set theme application, includes blue background...

however, made preference fragment blue too. want keep original "android:theme.holo.light.darkactionbar".

how so? thanks!

add following code preferencefragment implementation:

@override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) {     view view = super.oncreateview(inflater, container, savedinstancestate);     view.setbackgroundcolor(getresources().getcolor(android.r.color.your_color));      return view; } 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -