ontouchlistener
Android stops sending onTouch events
I have a custom view which I wish to handle touch events for. In particular, dragging a finger over the view should cause its contents to scroll. To do this, I have implemented the following onTouchLi[详细]
2023-04-01 08:21 分类:问答Ontouch multitouch zooming in Imageswitcher?
I am trying to enable pinch-zooming on an imageswitcher. I am stuck right now in how to declare the imageview in the ontouch method. I realize that the ImageView i = (Imageview) v is incorrect, I just[详细]
2023-03-28 03:10 分类:问答onTouch event problem
In my activity, I have a ScrollView with an OnTouchListener. This scrollView contains some imageViews.[详细]
2023-03-27 03:51 分类:问答Creating an interface in Android
Can someone walk me through the best way to do this? I want to make an interface that extends OnTouchListener. Instead of one meathod called开发者_如何学C onTouch(View view, MotionEvent e) i want 3 me[详细]
2023-03-23 13:00 分类:问答How can i maintain ontouch events handled by a widget even if touch coords are not inside the widget anymore, in android
Sorry for the complex question let me explain. I\'ve created a custom widget that handles some ontouch events. What i want to do is when i start a touch event on that custom widget (onDown) i want tha[详细]
2023-03-22 06:50 分类:问答Get selected item when double click on listview item
Here is the code to display listview items and onclick listener action. ListView list = (ListView) findViewById(R.id.list);[详细]
2023-03-20 10:43 分类:问答Do i need to start and resume the OntouchListener?
I have attached the OnTouchListener with ImageView control, now my question is do i need to start and resume the listener (if possible) to save the resources, like we do in the case of other sensor de[详细]
2023-03-17 16:51 分类:问答How to make special zone for invoke on touch event?
I have next UI in my program: ui. I want to handle finger swipe event on set of the buttons, of course, without losing the ability to click on th开发者_开发技巧e button. How to do that?You are talking[详细]
2023-03-09 12:51 分类:问答How do you make something work after two clicks
I am trying to mak开发者_JAVA百科e an application for android and I think I need to make the program get one (X,Y) value for one point and then another after another click so that way I can draw a lin[详细]
2023-03-08 20:58 分类:问答Disabling layer under SlidingDrawer in Android
I\'ve found a few questions on this topic and i\'ve tried the solutions, but I can\'t seem to get it right.I have a TableLayout as开发者_运维技巧 the first child in a RelativeLayout and a SlidingDrawe[详细]
2023-03-05 01:07 分类:问答