Android 11.0 framework修改AlertDialog 对话框的button样式

在11.0系统中 AlertDialog 对话框 针对确定和取消 两个button 字体默认颜色的不太好看,由于客户的需求修改button字体的颜色
首选先看布局文件alert_dialog.xml 中采用的哪个布局样式
布局为:frameworks\base\core\res\res\layout\alert_dialog.xml

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/parentPanel"
android:layout_width=

猜你喜欢

转载自blog.csdn.net/baidu_41666295/article/details/124739942