android - How do I let the user move a circle into another circles by dragging it in Android?
问题描述
At the start I want the user to see:
The then want to give the user the choice to be able to drag H or C into the circle, so that it looks like:
This means while the user drags the H into the circles the other items that are already in the circle are have to move to make space for it. Ideally I would want them to be evenly distributed in the bigger circle. To have a nice UX I want the transition between the two images to be visible.
How do I best implement this UI?
解决方案
最好的方法是使用单独的重叠图像视图来构建大图像并为每个部分图像使用单独的图像视图。然后使用 imageview.setOnDragListener() 拖动图像和 imgview.setOnTouchListener() 创建阴影。研究这个,你一定会做到的。
推荐阅读
- php - 如何在没有内存崩溃的情况下将大块存储到 json 文件中?
- reactjs - 成功登录后导航到不同的页面
- nginx - 用于 nginx 的 kubernetes 持久卷未显示默认 index.html 文件
- android - 从 Firebasedatabase 检索数据并设置到 recyclierview 适配器
- python - 如何安装张量流?
- redis - 如何使用 NX 选项设置值并使用 ServiceStack.Redis 过期?
- influxdb - InfluxDB 在查询特定日期时返回空结果集
- wpf - WPF - 在 MVVM 中添加 CRUD 操作的位置
- sinch - Android Studio 中的 Sinch 电话会议
- kotlin - 如何在 AutoCompleteTextView 项目建议中添加刻度符号?