motionevent Questions
2
Is it possible to create a method that receive an event and a view and determines whether the event happened in within the view coordinates?
Something along the lines of:
private boolean isEventO...
Vitrine asked 11/3, 2016 at 22:5
5
Solved
I am working through debugging some touch handling stuff on Android, and am trying to figure out why the MotionEvent sent to my View's onTouchListener contains a cancel action. I have not been able...
Arawakan asked 14/8, 2012 at 21:16
4
I am able to simulate tap events on typical android views (textbox, button, etc.) using MotionEvent.obtain, like this:
int meta_state = 0;
MotionEvent motionEvent = MotionEvent.obtain(
SystemCl...
Galahad asked 2/1, 2014 at 16:8
2
Is it possible to resize by pulling the matrix on the 4 side of the view? I can resize from a single point to a ratio like this.
The example above works as follows:
protected boolean onTouchDow...
Verine asked 16/12, 2018 at 20:5
4
Solved
I m referring to some websites like
http://developer.android.com/reference/android/view/MotionEvent.html
http://www.vogella.com/tutorials/AndroidTouch/article.html
to learn MotionEvent for design...
Barbee asked 16/3, 2014 at 7:8
4
Solved
I have 4 buttons in my android app activity. This is what it looks like:
As you can see, the textViews at the bottom of the screen display the x and y coordinates. The coordinates are in refere...
Fennec asked 19/2, 2014 at 6:9
2
Solved
I want to track a finger touch on the screen. So what I did was to start recording the position when MotionEvent triggers ACTION_DOWN, but how do I know when the action is finished, at ACTION_CANCE...
Gean asked 9/3, 2011 at 2:40
2
Solved
I have an image larger than viewport that I'm trying to pan on the x plan according to device Acceleration value.
_____________________
| |
| Device |
| |
________|___________________|______...
Triune asked 13/4, 2018 at 14:13
4
I have a top level ViewGroup, which I call SliderView, in which I want to detect swiping. This is mostly working, but one weird failure persists.
The essence of SliderView is to override onInterce...
Fibula asked 25/9, 2012 at 23:35
1
Solved
I was troubleshooting a view-related issue: a click listener that is not fired when it's supposed to. After a long session of trial-and-error, I found out that a parent view was disabled, thus disc...
Eucken asked 4/4, 2017 at 15:27
2
As i already tried views with motion drag reading Android docs.
I have clearly not saying about basics of it but i want to hide orinvisible view which will be visible when other view which is bein...
Eiderdown asked 2/11, 2016 at 13:31
1
Solved
I have a problem with my Android app that requires touch tracking events (tracking when/where finger goes down, move, up, etc). I have to use event.getX() and event.getY() functions to get the curr...
Pb asked 19/9, 2016 at 22:3
2
Solved
I have a Canvas that is scaled so everything fits better:
@Override
public void draw(Canvas c){
super.draw(c);
final float scaleFactorX = getWidth()/(WIDTH*1.f);
final float scaleFactorY = getH...
Naaman asked 27/6, 2016 at 19:26
1
My problem is that all touch events are being detected but not the Action_Down event. the log results in events 1, 2 and not 0 (for down).
here is my code
final ViewPager homeViewPager = (ViewPag...
Havener asked 25/11, 2015 at 15:11
3
Solved
I have a ListView in a ScrollView to show comments and I would like to do the following:
When the user swipes down, first the ScrollView should fully scroll down as the list is at the bottom. Once...
Jibe asked 17/9, 2015 at 13:28
3
How can I find the view causing a MotionEvent ACTION_CANCEL? I have a view "A" which is receiving ACTION_CANCEL and I don't want that to happen. Somewhere, a view "B" is "consuming" the MotionEvent...
Dayle asked 21/7, 2015 at 19:49
1
Solved
I have a parent recyclerview with filled with cards and an inner recyclerview inside each card.
The scrolling for the inner recyclerview inside the cards has been disabled but this has also affect...
Oxidase asked 30/8, 2015 at 11:2
6
Solved
I read many tickets on the topic of Zooming in WebViews and didnt came to an answer for my case.
Here´s my setup:
I´m using a custom webview with generally these settings:
getSettings().setBui...
Continually asked 6/9, 2012 at 13:58
1
Solved
I have a UX requirement that the user triggers a Dialog by long pressing a cell in a GridView.
While the Dialog is displayed the user must be able to move their finger/thumb around the screen wit...
Nephogram asked 21/10, 2014 at 15:45
1
I've been trying to figure out how to make an application that detects whether the device has been moved a significant amount, something more than just shakes. I am trying to detect a distance of, ...
Scapegrace asked 4/7, 2014 at 5:41
1
Solved
I have implemented a window with size 1 and want to catch ACTION_OUTSIDE event.
mWindowManager = (WindowManager) getSystemService(WINDOW_SERVICE);
WindowManager.LayoutParams mParams = new WindowMa...
Americana asked 26/2, 2014 at 12:36
1
Solved
I have a custom ViewGroup with an override of onInterceptTouchEvent(). It receives ACTION_DOWN but never receives ACTION_MOVE. It is my understanding that, unless it returns "true", it should recei...
Chemmy asked 18/5, 2014 at 17:54
0
Imagine that I have a service that receives coordinates from a bluetooth device, now I want to display a mouse cursor whenever it moves.
I managed to send MotionEvents with a toolType = TOOL_TYPE_...
Canned asked 14/5, 2014 at 10:14
2
I've been trying to figure out the behavior of MotionEvents in ScrollViews in Android and there's something i can't figure out.
As an example I made an Activity that has a ScrollView inside of it ...
Sb asked 14/10, 2012 at 16:35
1
Solved
I have the following XML:
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/palette2"
android:id="@+id/fl" >
<Image...
Limiting asked 9/2, 2014 at 17:28
1 Next >
© 2022 - 2024 — McMap. All rights reserved.