I have set a theme for my application, which includes a blue background...
However, this made my preference fragment blue too. I want to keep the original "android:Theme.Holo.Light.DarkActionBar".
How to do so? thanks!
Add the following code to your 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;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With