Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么监听dialog是否dismiss和监听取消按钮 #375

Open
hdProj opened this issue Aug 30, 2017 · 4 comments
Open

怎么监听dialog是否dismiss和监听取消按钮 #375

hdProj opened this issue Aug 30, 2017 · 4 comments

Comments

@hdProj
Copy link

hdProj commented Aug 30, 2017

No description provided.

@xiaosong520
Copy link
Member

@hedongBlog OnDismissListener

@hdProj
Copy link
Author

hdProj commented Aug 31, 2017

@xiaosong520 thank you

@StomHong
Copy link

OnDismissListener只是监听dialog的dimiss吧,我想监听取消按钮呢?

@XuEnhao
Copy link

XuEnhao commented Sep 2, 2019

image

通过阅读源码 R.id.btnCancel是TimePickerView中的取消按钮 View viewById = pvTime.findViewById(R.id.btnCancel); viewById.setOnClickListener(new View.OnClickListener() { @OverRide public void onClick(View view) { startTime = ""; pvTime.dismiss(); timeImg.setImageResource(R.mipmap.teacher_unsort); sortImg.setImageResource(R.mipmap.teacher_unsort); contentImg.setImageResource(R.mipmap.teacher_unsort); loadData(); } });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants