How can I completely change the color of my preferenceActivity background? Please see my screenshot. On a tablet there is sort of a white border around the window background and listview background. I can't figure out how to change its color/drawable. I just need to make it transparent.
This is how I achieved the screenshot. This code is placed in the onCreate of the PreferenceActivity.
this.getListView().setBackgroundDrawable(this.getResources().getDrawable(R.drawable.splash_bg));
this.getWindow().setBackgroundDrawable(this.getResources().getDrawable(R.drawable.splash_bg));
Hopefully I will not have to get into any styles and I can just access it in code for simplicity's sake.
Okay so you need to set the layout to a custom one. The only requirement for the custom layout is to have a list view with id of android:id/list
Like this :
Than in your onCreate of the PrefActivity: