Git Product home page Git Product logo

Comments (7)

addappcn avatar addappcn commented on August 29, 2024

请具体描述问题

from android-pickers.

jason609 avatar jason609 commented on August 29, 2024

点击弹窗外区域,弹窗不消失,看源码 是你在创建弹窗时 直接设置setOutsideTouchable(true),能否把这个方法让调用者自己设置

from android-pickers.

LOWANGA avatar LOWANGA commented on August 29, 2024

这个不能设置只能改源码 比较难受

from android-pickers.

huang0228 avatar huang0228 commented on August 29, 2024

点击弹窗区域外不消失 能否提供一个方法 自己去选择消不消失
this.dialog.setCanceledOnTouchOutside(false);
this.dialog.setCancelable(false);
这个方法能否暴露出来供使用者自己设定,要不然得改下载源码修改,不方便

from android-pickers.

mailiang1995 avatar mailiang1995 commented on August 29, 2024

你好,在BaseDialog类中增加一个方法即可:
public void setCanceledOnTouchOutside(boolean canceled){
if (canceled){
dialog.setCancelable(true);
dialog.setCanceledOnTouchOutside(true);
}
}
调用picker.setCanceledOnTouchOutside(true);可实现该功能

from android-pickers.

huang0228 avatar huang0228 commented on August 29, 2024

thanks,try later

from android-pickers.

addappcn avatar addappcn commented on August 29, 2024

不好意思,前段时间有事,现在才修改。加上去了

from android-pickers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.