Android AlertDialog的白色边框
我需要在这个默认对话框周围加一个白色边框 以下是我正在研究的xml代码:Android AlertDialog的白色边框,android,android-alertdialog,Android,Android Alertdialog,我需要在这个默认对话框周围加一个白色边框 以下是我正在研究的xml代码: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="#000000" /> <stroke android:width="25dp" android:co
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#000000" />
<stroke
android:width="25dp"
android:color="#FFFFFF" />
<corners android:radius="10dp" />
</shape>
但这并没有产生预期的结果。结果如下:
如何解决此问题?创建这样的9补丁映像 并以这种方式应用它
<style name="RunesDialog" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@drawable/cadre_dialogue/>
......
</style>
@可绘图/干部对话/>
......
像这样创建一个9面片图像
并以这种方式应用它
<style name="RunesDialog" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@drawable/cadre_dialogue/>
......
</style>
@可绘图/干部对话/>
......
顺便说一句,你可以制作一个自定义对话框我想你的问题类似于[这个问题][1][1]:你的问题类似于这个问题顺便说一句,你可以制作一个自定义对话框我想你的问题类似于[这个问题][1][1]:你的问题类似于这个问题