问题:自定义AlertDialog出现黑边
运行代码段:
View view = View.inflate(context, R.layout.dialog_common, null);mDialog = new AlertDialog.Builder(context).create();mDialog.setView(view);mDialog.show();
dialog_common.xml
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="wrap_content"android:background="@drawable/shape_dialog_white"android:orientation="vertical" >

本文详细介绍了如何解决Android AlertDialog显示时出现的黑边问题,通过自定义布局实现完美效果,附带3张示例图片。
最低0.47元/天 解锁文章
7703

被折叠的 条评论
为什么被折叠?



