Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class NoTitleListPref extends ListPreference {
- public NoTitleListPref(Context context, AttributeSet attrs) {
- super(context, attrs);
- }
- @Override
- protected void onPrepareDialogBuilder(AlertDialog.Builder builder) {
- super.onPrepareDialogBuilder(builder);
- builder.setNegativeButton(null,null);
- builder.setTitle(null);
- }
- @Override
- protected View onCreateDialogView() {
- View view = super.onCreateDialogView();
- if (view != null ){
- view.setBackgroundColor(Color.BLUE);
- }
- return view;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement