Comments (8)
好的,稍后有空我补充一下demo
from basepopup.
demo已经上传,请更新到1.4.4版本。
代码链接点我
ps:
下午抽空研究了一下,发现showAtLocation在match_parent的时候,设置x或者y的offset居然是失效的。。。真的是醉了(毕竟在此之前用showAtLocation基本都能精确定位)
没有办法(源码里面大多数都是private...除非hook掉)
只好加上两个方法了:
setShowAtDown()
:设置为true则可以使用showAsDropDown
另外增加一个点击popup外部不消失的方法,默认点击外部消失setDismissWhenTouchOuside()
from basepopup.
另外关于anchorView的一些参考点/位移方法特指
setRelativeToAnchorView()
setRelativePivot()
暂时不稳定,如果有这方面的需要,请慎重考虑。。。。
from basepopup.
如果问题不大,这个issue由您来关闭了哦
from basepopup.
收到,万分感谢,我先研究下
from basepopup.
1.8.2版本,使用setDismissWhenTouchOuside(false)方法不管用,,仍然消失
from basepopup.
麻烦看一下
from basepopup.
@LeeCharry 好的,麻烦新建一个issue....这个是已经关闭过的了
from basepopup.
Related Issues (20)
- setOutSideDismiss=true的时候setOutSideTouchable=true不生效 HOT 1
- Edittext导致背景颜色失效,变成透明(8.0及以下才会出现) HOT 3
- 如何从底部弹出到屏幕中心 HOT 4
- 录屏时,能否屏蔽pop? HOT 1
- 您好,怎么样可以不拦截返回键 HOT 1
- 华为的底部导航条沉浸式失效
- ContentView区域的背景上如何支持事件穿透? HOT 1
- setOutSideTouchable(true)后事件并没有穿透 HOT 4
- 安卓12默认支持Background blur以及Blur behind,希望可以适配一下 HOT 1
- 弹窗背景触摸后透明 HOT 1
- 华为平板(平行世界模式)状态栏无法覆盖问题 HOT 1
- 希望加上弹性动画 HOT 1
- 各位大佬,有没有办法拿到栈顶activity的dialog对象呢? HOT 1
- 使用showPopupWindow(view)的方式显示,动画效果无效 HOT 1
- 希望可以支持Jetpack Startup HOT 1
- 当Context是Activity的时候找不到DecorView HOT 1
- 隐藏导航栏+ 任意位置显示: 弹窗无法放到最低,底部永远留着一个导航栏的高度 HOT 2
- 3.2.1版本maven仓库缺少源码 HOT 2
- 使用hideKeyboardOnShow(false)设置弹窗时不收起键盘不生效
- java.lang.ClassCastException: razerdp.basepopup.WindowManagerProxy cannot be cast to android.view.WindowManagerImpl HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basepopup.