CoordinatorBehaviorExample icon indicating copy to clipboard operation
CoordinatorBehaviorExample copied to clipboard

How can I use mFinalLeftAvatarPadding?

Open CeccoCQ opened this issue 8 years ago • 3 comments

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).

CeccoCQ avatar Mar 15 '16 12:03 CeccoCQ

+1

jkwiecien avatar May 07 '16 18:05 jkwiecien

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)

macr00 avatar Jul 13 '16 14:07 macr00

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

drinfernoo avatar Mar 09 '18 05:03 drinfernoo