Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. public class NoTitleListPref extends ListPreference {
  2.  
  3. public NoTitleListPref(Context context, AttributeSet attrs) {
  4. super(context, attrs);
  5. }
  6.  
  7. @Override
  8. protected void onPrepareDialogBuilder(AlertDialog.Builder builder) {
  9. super.onPrepareDialogBuilder(builder);
  10. builder.setNegativeButton(null,null);
  11. builder.setTitle(null);
  12. }
  13.  
  14. @Override
  15. protected View onCreateDialogView() {
  16. View view = super.onCreateDialogView();
  17. if (view != null ){
  18. view.setBackgroundColor(Color.BLUE);
  19. }
  20. return view;
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement