I have an Activity
that holds a Fragment
and other Views
. When showing the Fragment
, it is shown as full screen (match_parent
). The behavior I am looking for is dragging the Fragment
down to minimize it so it appears as a floating view with a height of 100dp
on top of the Activity
(check YouTube player animation as a reference).
Also, child views need to change position depends on if Fragment
is fullscreen or floating mini state
Since I have little to no experience on advanced view animations. Would love to get some references or code samples on how to achieve this.
For now, I am trying to achieve this using GestureDetectorCompat
while manipulating the ViewGroup
LayoutParams
.
from Android animate and resize Fragment on drag
No comments:
Post a Comment