Back to project page Billy.
The source code is released under:
GNU General Public License
If you think the Android project Billy listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.vibin.billy; //from w w w . j av a 2s .co m import android.content.Context; import android.content.res.Resources; import android.os.Bundle; import android.preference.ListPreference; import android.util.AttributeSet; import android.util.Log; import android.view.View; public class CustomListPreference extends ListPreference { private static final String TAG = CustomListPreference.class.getSimpleName(); public CustomListPreference(Context context, AttributeSet attrs) { super(context, attrs); } public CustomListPreference(Context context) { super(context); } @Override protected void showDialog(Bundle state) { super.showDialog(state); try { int divierId = getDialog().getContext().getResources() .getIdentifier("android:id/titleDivider", null, null); View divider = getDialog().findViewById(divierId); divider.setBackgroundColor(getContext().getResources().getColor(R.color.billy)); } catch (NullPointerException e) { Log.d(TAG,e.toString()); } } }