Coder Social home page Coder Social logo

Comments (8)

razerdp avatar razerdp commented on June 10, 2024

好的,稍后有空我补充一下demo

from basepopup.

razerdp avatar razerdp commented on June 10, 2024

@zaaach

demo已经上传,请更新到1.4.4版本。

代码链接点我


ps:

下午抽空研究了一下,发现showAtLocation在match_parent的时候,设置x或者y的offset居然是失效的。。。真的是醉了(毕竟在此之前用showAtLocation基本都能精确定位)

没有办法(源码里面大多数都是private...除非hook掉)

只好加上两个方法了:
setShowAtDown():设置为true则可以使用showAsDropDown

另外增加一个点击popup外部不消失的方法,默认点击外部消失setDismissWhenTouchOuside()

from basepopup.

razerdp avatar razerdp commented on June 10, 2024

另外关于anchorView的一些参考点/位移方法特指

  • setRelativeToAnchorView()
  • setRelativePivot()

暂时不稳定,如果有这方面的需要,请慎重考虑。。。。

from basepopup.

razerdp avatar razerdp commented on June 10, 2024

如果问题不大,这个issue由您来关闭了哦

from basepopup.

zaaach avatar zaaach commented on June 10, 2024

收到,万分感谢,我先研究下

from basepopup.

LeeCharry avatar LeeCharry commented on June 10, 2024

1.8.2版本,使用setDismissWhenTouchOuside(false)方法不管用,,仍然消失

from basepopup.

LeeCharry avatar LeeCharry commented on June 10, 2024

麻烦看一下

from basepopup.

razerdp avatar razerdp commented on June 10, 2024

@LeeCharry 好的,麻烦新建一个issue....这个是已经关闭过的了

from basepopup.

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.