跟随手指移动的布局
implementation 'com.ulfy.android.controls:fingerfollow-layout:x.x.x'
<com.ulfy.android.controls.FingerFollowLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:action_mode="position_fixed">
...
</com.ulfy.android.controls.FingerFollowLayout>
<com.ulfy.android.controls.FingerFollowLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:action_mode="auto_attach_side">
...
</com.ulfy.android.controls.FingerFollowLayout>
通常情况下布局是不会死贴在屏幕边界的,可以通过设置margin来设置组件的边距。当自动贴边时会排除掉横向的margin。