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

关于Toolbar #2

Open
wzgl5533 opened this issue Jun 4, 2019 · 2 comments
Open

关于Toolbar #2

wzgl5533 opened this issue Jun 4, 2019 · 2 comments

Comments

@wzgl5533
Copy link

wzgl5533 commented Jun 4, 2019

我看都需要使用Toolbar控件,不使用Toolbar ,自定义标题栏 可行?

@Ye-Miao
Copy link
Owner

Ye-Miao commented Jun 4, 2019

可以的,你只需要设置setPadding(this,mView)即可延伸到状态栏显示,mView可以是toolbar可以是其它自定义的view

@sxf141
Copy link

sxf141 commented Nov 18, 2019

可以的,你只需要设置setPadding(this,mView)即可延伸到状态栏显示,mView可以是toolbar可以是其它自定义的view

有个问题如果Toolbar父布局为ConstraintLayout,会报java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference

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

3 participants