Questions tagged [android-touch-event]

For questions about detecting, handling and responding to touch events in a view, in the Android platform.

Use this tag for questions related to detecting, handling and responding to touch events in a view, in the Android platform.

Documentation:

190 questions
0
votes
0 answers

I have implemented this code to detect incoming call and charging... how can I disable touch for this functionality?

public class MyReceiver extends BroadcastReceiver { private Context mcontext; TelephonyManager telephonyManager = (TelephonyManager) mcontext.getSystemService(Context.TELEPHONY_SERVICE); public void onReceive(Context context,…
0
votes
1 answer

setClickable() to false wont work on Android ChromeCast's MediaRouterButton

I have a MediaRouterButton for chromecast in my android device. Now i want to programmatically enable/disable its click, so I have such line of code: mediaButton.setClickable( false ). But it doesnt disable its click , the chromecast dialog still…
Qing
  • 1,401
  • 2
  • 21
  • 41
-1
votes
1 answer

What methods do i use to implement Android Gestures like "Tap , Double Tap, Hold, Drag , Flick, Swipe " in Touch mode

I was implementing Different Gestures in Android. I want to know what methods do I use for implementing different gestures like "Tap,Double Tap,Hold,Drag,Flick,Swipe" etc
-1
votes
2 answers

How to limit or disble clicks/touch events for a specific amount of time in android?

I have an app where I animate some views on click. However while the animation is going on it's still possible to initiate other on click events, which in the end cause multiple problems with the animations. I would need to make it so that no new…
user10285737
-1
votes
1 answer

Android Recycler - OnClickListener called when clicking everywhere

I have a simple adapter on a recycler view and a simple xml layout for inflation. In the xml i have 2 textviews and i register an onClickListener only to the first. But when i click to the second textview, the listener is called again. Anywhere i…
Nick
  • 2,818
  • 5
  • 42
  • 60
-1
votes
1 answer

Implementing TouchListener on Recycler

I have this code below which is implemeting a touch listener for recyclerView. But when touching the View on Touch is not called. What am i doing wrong? public class MainActivity extends AppCompatActivity { private RecyclerView…
Nick
  • 2,818
  • 5
  • 42
  • 60
-1
votes
1 answer

Enable click items, even when scrolling RecyclerView

Normal behaviour : When we fling scroll recycler view, items will scroll, then tap, RV will stops scroll, not perform item click. What I need: Stop scroll + perform item click! Any hacky way?
-1
votes
1 answer

How to handle automatic screen switching and also touch event to move to another screen android?

I am doing a splash screen in which after certain duration it switch over to another screen. If user doesn't want to wait for that duration, they can tap on the splash screen to switch over to another screen. But problem is, when user tap on the…
Shadow
  • 6,864
  • 6
  • 44
  • 93
-1
votes
1 answer

how can i do when i swipe my finger all clickable under my finger became clicked in android?

I have six Image View in horizontal when I swipe my finger on them no item press? I want to these all buttons pressed when I swipe my finger on them and perform their click functionality like piano and guitar. When we swipe finger on screen all…
-2
votes
1 answer

On button(in Activity) clicks opens alert dialog,contains edittext so I want that when user click outside of the alert dialog keyboard should hide

on outside click of alert Dialog hide keyboard but dialog should remain same, I am checking motion event but not working @Override public boolean dispatchTouchEvent(MotionEvent ev) { View v = getCurrentFocus(); if (v != null && …
1 2 3
12
13