Closed francophong closed 10 years ago
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: <FrameLayout android:id="@+id/header" android:layout_width="match_parent" android:layout_height="@dimen/header_height">
// I replace the imageview with a custom view <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"
and I use this layout in a fragment, so the code was changed a bit to work in fragment
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.