Available Methods
- setClassName ( )
- getEventType ( )
- TYPE_WINDOW_STATE_CHANGED
- obtain ( )
- setEnabled ( )
- setPackageName ( )
- setFromIndex ( )
- TYPE_WINDOW_CONTENT_CHANGED
- setItemCount ( )
- setContentDescription ( )
- TYPE_VIEW_FOCUSED
- getText ( )
- getSource ( )
- getItemCount ( )
- TYPE_NOTIFICATION_STATE_CHANGED
- setCurrentItemIndex ( )
- TYPE_VIEW_SCROLLED
- getEventTime ( )
- setToIndex ( )
- setMaxScrollY ( )
- setScrollable ( )
- getParcelableData ( )
- getFromIndex ( )
- setChecked ( )
- setSource ( )
- TYPE_VIEW_ACCESSIBILITY_FOCUSED
- getPackageName ( )
- TYPE_VIEW_TEXT_CHANGED
- TYPE_WINDOWS_CHANGED
- appendRecord ( )
- TYPE_VIEW_CLICKED
- TYPE_VIEW_SELECTED
- TYPES_ALL_MASK
- getRecordCount ( )
- setAddedCount ( )
- getContentDescription ( )
- TYPE_VIEW_TEXT_SELECTION_CHANGED
- getWindowId ( )
- setMaxScrollX ( )
- TYPE_VIEW_HOVER_ENTER
- setBeforeText ( )
- TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED
- isPassword ( )
- getScrollY ( )
- setEventType ( )
- setRemovedCount ( )
- CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION
- getMaxScrollY ( )
- getScrollDeltaY ( )
- getToIndex ( )
- isFullScreen ( )
- TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY
- TYPE_VIEW_CONTEXT_CLICKED
- TYPE_TOUCH_INTERACTION_END
- TYPE_ANNOUNCEMENT
- TYPE_TOUCH_EXPLORATION_GESTURE_END
- getWindowChanges ( )
- getAddedCount ( )
- getClassName ( )
- getMaxScrollX ( )
- TYPE_VIEW_HOVER_EXIT
- CONTENT_CHANGE_TYPE_PANE_DISAPPEARED
- setScrollY ( )
Related Classes
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.os.Build
- android.widget.Button
- android.text.TextUtils
- android.view.MotionEvent
- android.content.pm.PackageManager
- android.content.SharedPreferences
- android.annotation.TargetApi
- android.graphics.Rect
- android.widget.ListView
- android.os.Parcelable
- android.view.KeyEvent
- android.app.PendingIntent
- java.util.concurrent.TimeoutException
- android.preference.PreferenceManager
- android.animation.Animator
- android.os.SystemClock
- android.app.Notification
- android.animation.ObjectAnimator
Java Code Examples for android.view.accessibility.AccessibilityEvent#getScrollDeltaY()
The following examples show how to use
android.view.accessibility.AccessibilityEvent#getScrollDeltaY() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScrollEventInterpreter.java From talkback with Apache License 2.0 | 5 votes |
@TargetApi(BuildVersionUtils.API_R) @SearchDirectionOrUnknown private int getScrollDirectionFromDeltas(AccessibilityEvent event) { int scrollDeltaX = event.getScrollDeltaX(); int scrollDeltaY = event.getScrollDeltaY(); if (scrollDeltaX == DELTA_UNDEFINED && scrollDeltaY == DELTA_UNDEFINED) { return TraversalStrategy.SEARCH_FOCUS_UNKNOWN; } if (scrollDeltaX > 0 || scrollDeltaY > 0) { return TraversalStrategy.SEARCH_FOCUS_FORWARD; } else if (scrollDeltaX < 0 || scrollDeltaY < 0) { return TraversalStrategy.SEARCH_FOCUS_BACKWARD; } return TraversalStrategy.SEARCH_FOCUS_UNKNOWN; }
Example 2
Source File: AccessibilityEventUtils.java From talkback with Apache License 2.0 | 4 votes |
public static int getScrollDeltaY(AccessibilityEvent event) { return BuildVersionUtils.isAtLeastP() ? event.getScrollDeltaY() : DELTA_UNDEFINED; }
Example 3
Source File: AccessibilityEventUtils.java From talkback with Apache License 2.0 | 4 votes |
public static boolean hasValidScrollDelta(AccessibilityEvent event) { return BuildVersionUtils.isAtLeastP() && ((event.getScrollDeltaX() != DELTA_UNDEFINED) || (event.getScrollDeltaY() != DELTA_UNDEFINED)); }