Closed HuChangyin closed 5 years ago
1、是否在同一项目同一设备(手机)测试的效果,只是修改了版本产生的分割线不同 2、分割线默认设置0.5dp可能部分手机会显示不出通过设置dp_line_size 覆盖库里默认值 3、我这所有版本都可正常显示也没有升级去修改过这个默认值
1, 是同一部手机,同一项目
麻烦提供下,示例代码 。我这 setDividerWidth()是可行的
new UIAlertDialog.DividerIOSBuilder(getActivity())
.setDividerWidth(20)
.setMessage("确定" + tvAgainSell.getText().toString() + "?")
.setNegativeButton("取消", null)
.setPositiveButton("确定", (dialog, which) -> changeSellStatus())
.setMinHeight(SizeUtils.dp2px(160))
// .setNeutralButton("测试" ,onAlertClick) // .setNeutralButtonTextColorResource( R.color.colorAlertButton ) .create() // .setDimAmount(0.6f) .show();
是不是,我没有使用androidx的原因?
你直接运行 demo也是一样的问题吗
这是用你代码效果
new UIAlertDialog.DividerIOSBuilder(mContext) .setDividerWidth(20) .setMessage("确定?") .setNegativeButton("取消", null) .setPositiveButton("确定", null) .setMinHeight(SizeUtil.dp2px(160)) // .setNeutralButton("测试" ,onAlertClick) // .setNeutralButtonTextColorResource( R.color.colorAlertButton ) .create() // .setDimAmount(0.6f) .show();
你先试一试最新版本 3.2.9在你手机上是否运行正常?实在不行就使用3.2.6
3.2.7,3.2.8.0...UIAlertDialog IOS风格 ,两个按钮,不显示水平分割线..3.2.6正常