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

How can I use mFinalLeftAvatarPadding? #18

Open
CeccoCQ opened this issue Mar 15, 2016 · 3 comments
Open

How can I use mFinalLeftAvatarPadding? #18

CeccoCQ opened this issue Mar 15, 2016 · 3 comments

Comments

@CeccoCQ
Copy link

CeccoCQ commented Mar 15, 2016

I'm working with NavigationIcon (?homeAsUpIndicator), can I set the left margin to avatar to avoid overlapping of the image above the indicator?

I've added:

        child.setY(mStartYPosition - distanceYToSubtract);
        if(mStartXPosition - distanceXToSubtract > mFinalLeftAvatarPadding) {
            child.setX(mStartXPosition - distanceXToSubtract);
        }

into onDependentViewChanged.
My spacing_normal size is 32dp + 8dp (size of indicator + default padding).

@jkwiecien
Copy link

+1

@macr00
Copy link

macr00 commented Jul 13, 2016

One solution is to replace R.dimen.abc_action_bar_content_inset_material in line 124
with a dimen allowing for navigation icon (I replaced it with a dimen resource of 40dp)

@drinfernoo
Copy link

@macr00 Does this require the code added by @CeccoCQ? And does it work?

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

4 participants