i want to do some thing like instagram app when user double tab on photo it make like and while he just tab one time it open as full screen
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Do the Java Integer and Double objects have unnece
- Listening to outgoing sms not working android
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- 关于C#中 float、double、decimal 的运算不精确的问题。
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
if ()//add this block
you can not change click another row thne click selected row.This code prevent click another view then you want to click row.
then change if control
I made this one based on Graeme's answer, it's works for me.
I think this answers to Your question as well. Check this link:
how to implement double click in android
If you don't want to use a
GestureListener
for every list item or aGestureListener
for theListView
which then needs to determine the item located under the double tap area you can use the following extension to theonItemClickListener
.This implementation waits to confirm a single click so it introduces single click latency.
This implementation doesn't wait to confirm a single click, it fires a single click event on the first click of a double click:
You can use the code below (
lvData
is aListView
variable):If you don't need to prevent single click to be fired, you can do much more simple: