How can I change the background color for an alertbox\'s title bar?
AlertDialog.Builder alert=new AlertDialog.Builder(getParent()); alert.setTitle(\"sample\"); a
You can just set custom title like this
LayoutInflater inflater = this.getLayoutInflater(); View titleView = inflater.inflate(R.layout.custom_title, null); new AlertDialog.Builder(SubCategoryActivity.this) .setCustomTitle(titleView);
and in custom_title layout you can create custom title like this