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

[DrawerLayout] I found unintentional error inside NavigationView.setSubheaderInsetEnd function (It is pointing to incorrect function) #2976

Closed
tahasami2500 opened this issue Sep 19, 2022 · 1 comment

Comments

@tahasami2500
Copy link

tahasami2500 commented Sep 19, 2022

According to this issue, I tried app:subheaderInsetEnd="28dp" inside XML, Also I tried navigation.setSubheaderInsetEnd(84) programmatically but all of these not solve the problem.

I found unintentional error inside NavigationView.setSubheaderInsetEnd function, It is pointing to incorrect function:

Untitled

Also to make sure the problem is from there, I tried this:

Log.w("...", String.valueOf(navigation.getSubheaderInsetStart())); -> The output is 84
navigation.setSubheaderInsetEnd(400);
Log.w("...", String.valueOf(navigation.getSubheaderInsetStart())); -> The output is 400

Thank you for your efforts.

@drchen
Copy link
Contributor

drchen commented Sep 20, 2022

Ah...that's a dumb mistake. Thanks @pubiqq for pushing a fix!

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

No branches or pull requests

2 participants