-
Notifications
You must be signed in to change notification settings - Fork 654
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
AppCompatDialogFragment 做的弹窗,在弹窗里的一个view上做guide,显示位置不正确,包括高亮部分 #54
Comments
方便贴一下调用代码吗? |
弹出dialog SysDialogFragment 是继承AppCOmpatDialogFragment
public class SysDialogFragment extends SyDialogFragment {
} |
弹窗里的view 调用蒙层
|
onActivityCreated 时你的fragment还没有attach在屏幕上,虽然你post到了下一个消息循环,但是并不能保证此时fragment已经attach到屏幕上了,你可以试试postdelay 500ms或者监听viewtreeobserver.ongloballayoutlistener 里处理,试一下 |
postdelay 测试 无效 |
我定义了一个基类,在基类的fragment中这样操作:
然后在子类的onGlobalLayout()方法中调用设置蒙板可以实现
|
怎么展示在 dialog 里 |
AppCompatDialogFragment 做的弹窗,
在弹窗里的一个view上做guide,
显示位置不正确,包括高亮部分。
无法正确显示在指定的view上
The text was updated successfully, but these errors were encountered: