version:1.7.3

fix:
update:样式修改,目录调整
This commit is contained in:
2025-09-03 11:19:07 +08:00
parent 8c7c3bef54
commit 780909c403
124 changed files with 2773 additions and 1436 deletions

View File

@@ -37,7 +37,7 @@ public class DeleteDialog extends AlertDialog {
* 确认和取消按钮
*/
private TextView positiveBn;
private TextView negtiveBn;
private TextView negativeBn;
/**
* 按钮之间的分割线
@@ -56,7 +56,7 @@ public class DeleteDialog extends AlertDialog {
*/
private String message;
private String title;
private String positive, negtive;
private String positive, negative;
private int imageResId = -1;
/**
@@ -92,7 +92,7 @@ public class DeleteDialog extends AlertDialog {
}
});
//设置取消按钮被点击后,向外界提供监听
negtiveBn.setOnClickListener(new View.OnClickListener() {
negativeBn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (onClickBottomListener != null) {
@@ -122,10 +122,10 @@ public class DeleteDialog extends AlertDialog {
} else {
positiveBn.setText("确定");
}
if (!TextUtils.isEmpty(negtive)) {
negtiveBn.setText(negtive);
if (!TextUtils.isEmpty(negative)) {
negativeBn.setText(negative);
} else {
negtiveBn.setText("取消");
negativeBn.setText("取消");
}
if (imageResId != -1) {
@@ -156,7 +156,7 @@ public class DeleteDialog extends AlertDialog {
* 初始化界面控件
*/
private void initView() {
negtiveBn = findViewById(R.id.negtive);
negativeBn = findViewById(R.id.negative);
positiveBn = findViewById(R.id.positive);
titleTv = findViewById(R.id.title);
messageTv = findViewById(R.id.message);
@@ -212,17 +212,17 @@ public class DeleteDialog extends AlertDialog {
return this;
}
public String getNegtive() {
return negtive;
public String getNegative() {
return negative;
}
public DeleteDialog setNegtive(String negtive) {
this.negtive = negtive;
public DeleteDialog setNegative(String negative) {
this.negative = negative;
return this;
}
public DeleteDialog setNegtiveText(String negtive) {
negtiveBn.setText(negtive);
public DeleteDialog setNegtiveText(String negative) {
negativeBn.setText(negative);
return this;
}