I have an idea that I am scaling a list that simulates scaling a list of items vertically in full screen mode.
Here's an example github project to play with animation code here

The code is as follows:
<FrameLayout android:layout_width="match_parent" android:layout_height="match_parent"> <View android:id="@+id/growView" android:layout_width="match_parent" android:layout_height="1dp" android:background="@color/fiftyBlack" /> </FrameLayout>
and
view.setOnClickListener { val listItemHeight = it.measuredHeight val toolBarHeight = (it.parent as RecyclerView).y val scalingView = it.rootView.findViewById<View>(R.id.growView) val screenHeight = (scalingView.parent as FrameLayout).measuredHeight
As you can see, the problem is determining the pivot point y for each element:
val scaleAnime = ScaleAnimation( /.....* Dynamic vertical pivot */)
I struggle for a few days to determine the fulcrum, but I canβt understand what it depends on.
Any ideas what this could be?
source share