Comments (3)
绝对坐标的话,大概你只能通过setOffsetX和setOffsetY来定了。
我们这里并不提供绝对坐标的方法(事实上也不打算提供,因为分辨率不同,[x,y]坐标需要处理(比如乘以dpi什么的))。
如果用setOffsetX可以在调用showPopupWindow之前set,也可以通过setOnBeforeShowCallback在回调里面设置
from basepopup.
另外,在调用showPopupWindow(View v)方法的时候,内部我已经帮你把popup与锚点view进行左上角(View原点)对齐【popup显示空间不足除外】。
这算是一个参考点吧。
from basepopup.
非常感谢你的思路
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.