android 设置AlertDialog默认弹出框样式
- AlertDialog.Builder builder=new AlertDialog.Builder(this);//默认主题
- AlertDialog.Builder builder = new AlertDialog.Builder(this,AlertDialog.THEME_TRADITIONAL);//传统主题
- AlertDialog.Builder builder = new AlertDialog.Builder(this,AlertDialog.THEME_HOLO_DARK);//使用深色背景 主题
- AlertDialog.Builder builder = new AlertDialog.Builder(this,AlertDialog.THEME_HOLO_LIGHT);//使用浅色背景 主题
- AlertDialog.Builder builder = new AlertDialog.Builder(this,AlertDialog.THEME_DEVICE_DEFAULT_DARK);//使用默认设备 深色主题
- AlertDialog.Builder builder = new AlertDialog.Builder(this,AlertDialog.THEME_DEVICE_DEFAULT_LIGHT);//使用默认设备 浅色主题
扫描二维码,手机查看
声明:本文来源于互联网,观点仅代表作者本人,不代表欢乐你我,真实性请妥善甄别。