you have to make a simple function like When in my app In a activity If user swipe down then it becomes Short like in YouTube after playing video If we swipe down then it becomes a small layout in main activity.
I want to make Same floating activity In android studio using java.
please note that My app is a music app not a Video app so I want layout like spotify
I hope you understand
I can implement the floating activity using the latest PictureInPicture technology in Android Studio using Java. I will use the PictureInPictureParams class to do so. But before that I will set the android:supportsPict Daha Fazla