Skip to content
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

在fragment 中使用 显示正常, 但是切换页面的时候出现这个android.view.View.unFocus #68

Open
initzf opened this issue Sep 28, 2017 · 5 comments

Comments

@initzf
Copy link

initzf commented Sep 28, 2017

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.unFocus(android.view.View)' on a null object reference
at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4593)
at android.view.ViewGroup.removeViewAt(ViewGroup.java:4555)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(SourceFile:1540)
at android.support.v4.app.BackStackRecord.executeOps(SourceFile:753)
at android.support.v4.app.FragmentManagerImpl.executeOps(SourceFile:2363)
at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(SourceFile:2149)
at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(SourceFile:2103)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(SourceFile:2013)
at android.support.v4.app.FragmentManagerImpl$1.run(SourceFile:710)
at android.os.Handler.handleCallback(Handler.java:742)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5548)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:743)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)

请大神指点一下,谢谢。

@Cashdispenser
Copy link

.anchor(mActivity.findViewById(R.id.id_container))//如果是Activity上增加引导层,不需要设置anchor
那个id写上Activity的根布局的id就可以了

@wimwu
Copy link

wimwu commented Jan 9, 2018

anchor(mActivity.findViewById(R.id.id_container))添加后没有效果?还是有这个问题

@moyergo
Copy link

moyergo commented Jul 9, 2018

我也遇到了这个问题,要怎么解决呢?

@initzf
Copy link
Author

initzf commented Jul 10, 2018

@moyergo 抱歉啊, 我已经没有使用这个库了,换成其实方式实现了。

@jinshenglongsw
Copy link

@moyergo 抱歉啊,我已经没有使用这个库了,换成其实方式实现了。

请问,您用了什么库解决的问题呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants