社区相关UI更改

This commit is contained in:
kehaoyuan
2019-07-31 16:41:44 +08:00
parent 9e5b8b5f29
commit 3ca7b7c9bd
6 changed files with 50 additions and 32 deletions

View File

@ -880,6 +880,7 @@ public class DialogUtils {
final Dialog dialog = new Dialog(context, R.style.GhAlertDialog);
View contentView = LayoutInflater.from(context).inflate(R.layout.dialog_community, null);
View contentContainer = contentView.findViewById(R.id.content_container);
TextView titleTv = contentView.findViewById(R.id.title);
TextView contentTitleTv = contentView.findViewById(R.id.content_title);
TextView contentDesTv = contentView.findViewById(R.id.content_des);
@ -918,6 +919,12 @@ public class DialogUtils {
// dialog.dismiss();
});
contentContainer.setOnClickListener(v -> {
if (cmListener != null) {
cmListener.onConfirm();
}
});
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setContentView(contentView);
dialog.show();