You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I use this layout in a fragment, so the code was changed a bit to work in fragment
The view was inflated in onCreateView and onActivityCreated.
Instead of interpolating header_logo to the action bar icon, I want header_logo to interpolating to the header_logo_hide. The code changed:
interpolate(mHeaderLogo, mHeaderLogoHide, sSmoothInterpolator.getInterpolation(ratio));
Issue: when open the fragment, the header_logo is not displayed unless I make a initial action like scroll or touch or click.
Please help to advise me.
The text was updated successfully, but these errors were encountered:
I debugged and found the issue.
The calculation of ScaleX and ScaleY return "NaN" by somehow.
Solution: change the calculation
float scaleX = 1.0F + interpolation * (mRect2.width() /360.0F - 1.0F);
It worked as a charm
Hi,
I edited the layout a bit for my project's purpose as below:
// I replace the imageview with a custom view
and I use this layout in a fragment, so the code was changed a bit to work in fragment
interpolate(mHeaderLogo, mHeaderLogoHide, sSmoothInterpolator.getInterpolation(ratio));
Issue: when open the fragment, the header_logo is not displayed unless I make a initial action like scroll or touch or click.
Please help to advise me.
The text was updated successfully, but these errors were encountered: