-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Comments
@hedongBlog OnDismissListener |
@xiaosong520 thank you |
OnDismissListener只是监听dialog的dimiss吧,我想监听取消按钮呢? |
通过阅读源码 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
No description provided.
The text was updated successfully, but these errors were encountered: