A View which displays a map for navigation.
Users of this class must forward all the life cycle methods from the Activity
or Fragment
containing this view to the corresponding
ones in this class. In particular, you must forward on the following methods:
onCreate(Bundle)
onStart()
onResume()
onPause()
onStop()
onDestroy()
onConfigurationChanged(Configuration)
onSaveInstanceState(Bundle)
onTrimMemory(int)
If the NavView is added after its parent Activity
or Fragment
has been through its creation lifecycle, you must call onCreate(Bundle)
,
onStart()
and onResume()
manually to properly initialize it. Similarly, if a
NavView is detached from its parent Activity
or Fragment
,
you must manually call onPause()
, onStop()
and onDestroy()
to prevent leaks.
Note: You are advised not to add children to this view.
All calls to NavView should be performed on the UI thread.
Nested Class Summary
interface | NavigationView.OnNightModeChangedListener | Interface for a listener which will be notified when the UI enters or exits "night mode". | |
interface | NavigationView.OnRecenterButtonClickedListener | Interface for a listener which will be notified when the recenter button is clicked. |
Inherited Constant Summary
int | ABOVE | |
int | ALIGN_BASELINE | |
int | ALIGN_BOTTOM | |
int | ALIGN_END | |
int | ALIGN_LEFT | |
int | ALIGN_PARENT_BOTTOM | |
int | ALIGN_PARENT_END | |
int | ALIGN_PARENT_LEFT | |
int | ALIGN_PARENT_RIGHT | |
int | ALIGN_PARENT_START | |
int | ALIGN_PARENT_TOP | |
int | ALIGN_RIGHT | |
int | ALIGN_START | |
int | ALIGN_TOP | |
int | BELOW | |
int | CENTER_HORIZONTAL | |
int | CENTER_IN_PARENT | |
int | CENTER_VERTICAL | |
int | END_OF | |
int | LEFT_OF | |
int | RIGHT_OF | |
int | START_OF | |
int | TRUE |
int | FOCUS_AFTER_DESCENDANTS | |
int | FOCUS_BEFORE_DESCENDANTS | |
int | FOCUS_BLOCK_DESCENDANTS | |
int | LAYOUT_MODE_CLIP_BOUNDS | |
int | LAYOUT_MODE_OPTICAL_BOUNDS | |
int | PERSISTENT_ALL_CACHES | |
int | PERSISTENT_ANIMATION_CACHE | |
int | PERSISTENT_NO_CACHE | |
int | PERSISTENT_SCROLLING_CACHE |
int | ACCESSIBILITY_DATA_SENSITIVE_AUTO | |
int | ACCESSIBILITY_DATA_SENSITIVE_NO | |
int | ACCESSIBILITY_DATA_SENSITIVE_YES | |
int | ACCESSIBILITY_LIVE_REGION_ASSERTIVE | |
int | ACCESSIBILITY_LIVE_REGION_NONE | |
int | ACCESSIBILITY_LIVE_REGION_POLITE | |
int | AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS | |
String | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE | |
String | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY | |
String | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH | |
String | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR | |
String | AUTOFILL_HINT_CREDIT_CARD_NUMBER | |
String | AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE | |
String | AUTOFILL_HINT_EMAIL_ADDRESS | |
String | AUTOFILL_HINT_NAME | |
String | AUTOFILL_HINT_PASSWORD | |
String | AUTOFILL_HINT_PHONE | |
String | AUTOFILL_HINT_POSTAL_ADDRESS | |
String | AUTOFILL_HINT_POSTAL_CODE | |
String | AUTOFILL_HINT_USERNAME | |
int | AUTOFILL_TYPE_DATE | |
int | AUTOFILL_TYPE_LIST | |
int | AUTOFILL_TYPE_NONE | |
int | AUTOFILL_TYPE_TEXT | |
int | AUTOFILL_TYPE_TOGGLE | |
int | CONTENT_SENSITIVITY_AUTO | |
int | CONTENT_SENSITIVITY_NOT_SENSITIVE | |
int | CONTENT_SENSITIVITY_SENSITIVE | |
int | DRAG_FLAG_ACCESSIBILITY_ACTION | |
int | DRAG_FLAG_GLOBAL | |
int | DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION | |
int | DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION | |
int | DRAG_FLAG_GLOBAL_SAME_APPLICATION | |
int | DRAG_FLAG_GLOBAL_URI_READ | |
int | DRAG_FLAG_GLOBAL_URI_WRITE | |
int | DRAG_FLAG_HIDE_CALLING_TASK_ON_DRAG_START | |
int | DRAG_FLAG_OPAQUE | |
int | DRAG_FLAG_START_INTENT_SENDER_ON_UNHANDLED_DRAG | |
int | DRAWING_CACHE_QUALITY_AUTO | |
int | DRAWING_CACHE_QUALITY_HIGH | |
int | DRAWING_CACHE_QUALITY_LOW | |
int | FIND_VIEWS_WITH_CONTENT_DESCRIPTION | |
int | FIND_VIEWS_WITH_TEXT | |
int | FOCUSABLE | |
int | FOCUSABLES_ALL | |
int | FOCUSABLES_TOUCH_MODE | |
int | FOCUSABLE_AUTO | |
int | FOCUS_BACKWARD | |
int | FOCUS_DOWN | |
int | FOCUS_FORWARD | |
int | FOCUS_LEFT | |
int | FOCUS_RIGHT | |
int | FOCUS_UP | |
int | GONE | |
int | HAPTIC_FEEDBACK_ENABLED | |
int | IMPORTANT_FOR_ACCESSIBILITY_AUTO | |
int | IMPORTANT_FOR_ACCESSIBILITY_NO | |
int | IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS | |
int | IMPORTANT_FOR_ACCESSIBILITY_YES | |
int | IMPORTANT_FOR_AUTOFILL_AUTO | |
int | IMPORTANT_FOR_AUTOFILL_NO | |
int | IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS | |
int | IMPORTANT_FOR_AUTOFILL_YES | |
int | IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS | |
int | IMPORTANT_FOR_CONTENT_CAPTURE_AUTO | |
int | IMPORTANT_FOR_CONTENT_CAPTURE_NO | |
int | IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS | |
int | IMPORTANT_FOR_CONTENT_CAPTURE_YES | |
int | IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS | |
int | INVISIBLE | |
int | KEEP_SCREEN_ON | |
int | LAYER_TYPE_HARDWARE | |
int | LAYER_TYPE_NONE | |
int | LAYER_TYPE_SOFTWARE | |
int | LAYOUT_DIRECTION_INHERIT | |
int | LAYOUT_DIRECTION_LOCALE | |
int | LAYOUT_DIRECTION_LTR | |
int | LAYOUT_DIRECTION_RTL | |
int | MEASURED_HEIGHT_STATE_SHIFT | |
int | MEASURED_SIZE_MASK | |
int | MEASURED_STATE_MASK | |
int | MEASURED_STATE_TOO_SMALL | |
int | NOT_FOCUSABLE | |
int | NO_ID | |
int | OVER_SCROLL_ALWAYS | |
int | OVER_SCROLL_IF_CONTENT_SCROLLS | |
int | OVER_SCROLL_NEVER | |
float | REQUESTED_FRAME_RATE_CATEGORY_DEFAULT | |
float | REQUESTED_FRAME_RATE_CATEGORY_HIGH | |
float | REQUESTED_FRAME_RATE_CATEGORY_LOW | |
float | REQUESTED_FRAME_RATE_CATEGORY_NORMAL | |
float | REQUESTED_FRAME_RATE_CATEGORY_NO_PREFERENCE | |
int | SCREEN_STATE_OFF | |
int | SCREEN_STATE_ON | |
int | SCROLLBARS_INSIDE_INSET | |
int | SCROLLBARS_INSIDE_OVERLAY | |
int | SCROLLBARS_OUTSIDE_INSET | |
int | SCROLLBARS_OUTSIDE_OVERLAY | |
int | SCROLLBAR_POSITION_DEFAULT | |
int | SCROLLBAR_POSITION_LEFT | |
int | SCROLLBAR_POSITION_RIGHT | |
int | SCROLL_AXIS_HORIZONTAL | |
int | SCROLL_AXIS_NONE | |
int | SCROLL_AXIS_VERTICAL | |
int | SCROLL_CAPTURE_HINT_AUTO | |
int | SCROLL_CAPTURE_HINT_EXCLUDE | |
int | SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS | |
int | SCROLL_CAPTURE_HINT_INCLUDE | |
int | SCROLL_INDICATOR_BOTTOM | |
int | SCROLL_INDICATOR_END | |
int | SCROLL_INDICATOR_LEFT | |
int | SCROLL_INDICATOR_RIGHT | |
int | SCROLL_INDICATOR_START | |
int | SCROLL_INDICATOR_TOP | |
int | SOUND_EFFECTS_ENABLED | |
int | STATUS_BAR_HIDDEN | |
int | STATUS_BAR_VISIBLE | |
int | SYSTEM_UI_FLAG_FULLSCREEN | |
int | SYSTEM_UI_FLAG_HIDE_NAVIGATION | |
int | SYSTEM_UI_FLAG_IMMERSIVE | |
int | SYSTEM_UI_FLAG_IMMERSIVE_STICKY | |
int | SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | |
int | SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | |
int | SYSTEM_UI_FLAG_LAYOUT_STABLE | |
int | SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR | |
int | SYSTEM_UI_FLAG_LIGHT_STATUS_BAR | |
int | SYSTEM_UI_FLAG_LOW_PROFILE | |
int | SYSTEM_UI_FLAG_VISIBLE | |
int | SYSTEM_UI_LAYOUT_FLAGS | |
int | TEXT_ALIGNMENT_CENTER | |
int | TEXT_ALIGNMENT_GRAVITY | |
int | TEXT_ALIGNMENT_INHERIT | |
int | TEXT_ALIGNMENT_TEXT_END | |
int | TEXT_ALIGNMENT_TEXT_START | |
int | TEXT_ALIGNMENT_VIEW_END | |
int | TEXT_ALIGNMENT_VIEW_START | |
int | TEXT_DIRECTION_ANY_RTL | |
int | TEXT_DIRECTION_FIRST_STRONG | |
int | TEXT_DIRECTION_FIRST_STRONG_LTR | |
int | TEXT_DIRECTION_FIRST_STRONG_RTL | |
int | TEXT_DIRECTION_INHERIT | |
int | TEXT_DIRECTION_LOCALE | |
int | TEXT_DIRECTION_LTR | |
int | TEXT_DIRECTION_RTL | |
int | VISIBLE |
Inherited Field Summary
public static final Property<View, Float> | ALPHA | |
public static final Property<View, Float> | ROTATION | |
public static final Property<View, Float> | ROTATION_X | |
public static final Property<View, Float> | ROTATION_Y | |
public static final Property<View, Float> | SCALE_X | |
public static final Property<View, Float> | SCALE_Y | |
public static final Property<View, Float> | TRANSLATION_X | |
public static final Property<View, Float> | TRANSLATION_Y | |
public static final Property<View, Float> | TRANSLATION_Z | |
public static final Property<View, Float> | X | |
public static final Property<View, Float> | Y | |
public static final Property<View, Float> | Z |
Public Constructor Summary
NavigationView(Context context)
|
|
NavigationView(Context context, GoogleMapOptions googleMapOptions)
|
|
NavigationView(Context context, AttributeSet attrs)
|
|
NavigationView(Context context, AttributeSet attrs, GoogleMapOptions googleMapOptions)
|
|
NavigationView(Context context, AttributeSet attrs, int defStyleAttr)
|
|
NavigationView(Context context, AttributeSet attrs, int defStyleAttr, GoogleMapOptions googleMapOptions)
|
Public Method Summary
void |
addOnNavigationUiChangedListener(OnNavigationUiChangedListener listener)
Adds a listener to the list of listeners which will be notified when navigation UI is enabled
or disabled.
|
void |
addOnNightModeChangedListener(NavigationView.OnNightModeChangedListener listener)
Adds a listener to the list of listeners which will be notified when the UI enters or exits
night mode.
|
void |
addOnRecenterButtonClickedListener(NavigationView.OnRecenterButtonClickedListener listener)
Adds a listener to the list of listeners which will be notified when the recenter button is
clicked.
|
void |
getMapAsync(OnMapReadyCallback mapReadyCallback)
Returns a non-null instance of the
GoogleMap , ready to be used. |
boolean |
isNavigationUiEnabled()
Returns whether navigation UI is enabled.
|
void |
onConfigurationChanged(Configuration config)
|
void |
onCreate(Bundle savedInstanceState)
|
void | |
void |
onPause()
|
void |
onResume()
|
void |
onSaveInstanceState(Bundle outState)
|
void |
onStart()
|
void |
onStop()
|
void |
onTrimMemory(int level)
|
void |
removeOnNavigationUiChangedListener(OnNavigationUiChangedListener listener)
Removes a listener added via
addOnNavigationUiChangedListener(OnNavigationUiChangedListener) . |
void |
removeOnNightModeChangedListener(NavigationView.OnNightModeChangedListener listener)
Removes a listener added via
addOnNightModeChangedListener(OnNightModeChangedListener) . |
void |
removeOnRecenterButtonClickedListener(NavigationView.OnRecenterButtonClickedListener listener)
Removes a listener added via
addOnRecenterButtonClickedListener(OnRecenterButtonClickedListener) . |
void |
setCalloutInfoDisplayModeOverride(NavigationCalloutDisplayMode calloutInfoDisplayModeOverride)
Overrides default display mode for navigation callouts.
|
void |
setCalloutInfoFormatOverride(RouteCalloutInfoFormat calloutInfoFormatOverride)
Sets the callout info format mode for route callouts.
|
void |
setCustomControl(View control, CustomControlPosition position)
Sets a custom control view which will appear at the given position in the navigation UI.
|
void |
setEtaCardEnabled(boolean enabled)
Sets whether the ETA card is visible during navigation.
|
void |
setForceNightMode(int nightMode)
Sets the current
ForceNightMode . |
void |
setHeaderEnabled(boolean enabled)
Sets whether the turn-by-turn navigation header is visible during navigation.
|
void |
setNavigationUiEnabled(boolean enableNavigationUi)
Enables or disables navigation UI.
|
void |
setRecenterButtonEnabled(boolean enabled)
Sets whether the re-center button should be shown.
|
void |
setSpeedLimitIconEnabled(boolean enabled)
Specifies whether the speed limit icon is shown.
|
void |
setSpeedometerEnabled(boolean enabled)
Specifies whether the speedometer is shown.
|
void |
setSpeedometerUiOptions(SpeedometerUiOptions speedometerUiOptions)
Sets the speedometer UI configuration
SpeedometerUiOptions based on SpeedAlertSeverity . |
void | |
void |
setTrafficIncidentCardsEnabled(boolean enabled)
Sets whether traffic incident cards should be shown when the user clicks on a traffic incident
icon.
|
void |
setTrafficPromptsEnabled(boolean enabled)
Sets whether traffic prompts should be shown.
|
void |
setTripProgressBarEnabled(boolean enabled)
Sets whether the trip progress bar is visible during navigation.
|
void |
showRouteOverview()
Pans and zooms the map to show an overview of the remaining route.
|
Inherited Method Summary
ViewGroup.LayoutParams |
generateLayoutParams(AttributeSet arg0)
|
CharSequence |
getAccessibilityClassName()
|
int |
getBaseline()
|
int |
getGravity()
|
int |
getIgnoreGravity()
|
void |
requestLayout()
|
void |
setGravity(int arg0)
|
void |
setHorizontalGravity(int arg0)
|
void |
setIgnoreGravity(int arg0)
|
void |
setVerticalGravity(int arg0)
|
boolean |
shouldDelayChildPressedState()
|
void |
addChildrenForAccessibility(ArrayList<View> arg0)
|
void |
addExtraDataToAccessibilityNodeInfo(AccessibilityNodeInfo arg0, String arg1, Bundle arg2)
|
void |
addFocusables(ArrayList<View> arg0, int arg1, int arg2)
|
void |
addKeyboardNavigationClusters(Collection<View> arg0, int arg1)
|
boolean |
addStatesFromChildren()
|
void |
addTouchables(ArrayList<View> arg0)
|
void |
addView(View arg0, ViewGroup.LayoutParams arg1)
|
void |
addView(View arg0, int arg1)
|
void |
addView(View arg0, int arg1, ViewGroup.LayoutParams arg2)
|
void |
addView(View arg0)
|
void |
addView(View arg0, int arg1, int arg2)
|
void |
bringChildToFront(View arg0)
|
void |
childDrawableStateChanged(View arg0)
|
void |
childHasTransientStateChanged(View arg0, boolean arg1)
|
void |
clearChildFocus(View arg0)
|
void |
clearDisappearingChildren()
|
void |
clearFocus()
|
WindowInsets |
dispatchApplyWindowInsets(WindowInsets arg0)
|
boolean |
dispatchCapturedPointerEvent(MotionEvent arg0)
|
void |
dispatchConfigurationChanged(Configuration arg0)
|
void |
dispatchCreateViewTranslationRequest(Map<AutofillId, long[]> arg0, int[] arg1, TranslationCapability arg2, List<ViewTranslationRequest> arg3)
|
void |
dispatchDisplayHint(int arg0)
|
boolean |
dispatchDragEvent(DragEvent arg0)
|
void |
dispatchDrawableHotspotChanged(float arg0, float arg1)
|
void |
dispatchFinishTemporaryDetach()
|
boolean |
dispatchKeyEvent(KeyEvent arg0)
|
boolean |
dispatchKeyEventPreIme(KeyEvent arg0)
|
boolean |
dispatchKeyShortcutEvent(KeyEvent arg0)
|
void |
dispatchPointerCaptureChanged(boolean arg0)
|
void |
dispatchProvideAutofillStructure(ViewStructure arg0, int arg1)
|
void |
dispatchProvideStructure(ViewStructure arg0)
|
void |
dispatchScrollCaptureSearch(Rect arg0, Point arg1, Consumer<ScrollCaptureTarget> arg2)
|
void |
dispatchSetActivated(boolean arg0)
|
void |
dispatchSetSelected(boolean arg0)
|
void |
dispatchStartTemporaryDetach()
|
void |
dispatchSystemUiVisibilityChanged(int arg0)
|
boolean |
dispatchTouchEvent(MotionEvent arg0)
|
boolean |
dispatchTrackballEvent(MotionEvent arg0)
|
boolean |
dispatchUnhandledMove(View arg0, int arg1)
|
void |
dispatchWindowFocusChanged(boolean arg0)
|
void |
dispatchWindowInsetsAnimationEnd(WindowInsetsAnimation arg0)
|
void |
dispatchWindowInsetsAnimationPrepare(WindowInsetsAnimation arg0)
|
WindowInsets |
dispatchWindowInsetsAnimationProgress(WindowInsets arg0, List<WindowInsetsAnimation> arg1)
|
WindowInsetsAnimation.Bounds |
dispatchWindowInsetsAnimationStart(WindowInsetsAnimation arg0, WindowInsetsAnimation.Bounds arg1)
|
void |
dispatchWindowSystemUiVisiblityChanged(int arg0)
|
void |
dispatchWindowVisibilityChanged(int arg0)
|
void |
endViewTransition(View arg0)
|
View |
findFocus()
|
OnBackInvokedDispatcher |
findOnBackInvokedDispatcherForChild(View arg0, View arg1)
|
void |
findViewsWithText(ArrayList<View> arg0, CharSequence arg1, int arg2)
|
View |
focusSearch(View arg0, int arg1)
|
void |
focusableViewAvailable(View arg0)
|
boolean |
gatherTransparentRegion(Region arg0)
|
ViewGroup.LayoutParams |
generateLayoutParams(AttributeSet arg0)
|
CharSequence |
getAccessibilityClassName()
|
View |
getChildAt(int arg0)
|
int |
getChildCount()
|
final int |
getChildDrawingOrder(int arg0)
|
static int |
getChildMeasureSpec(int arg0, int arg1, int arg2)
|
boolean |
getChildVisibleRect(View arg0, Rect arg1, Point arg2)
|
boolean |
getClipChildren()
|
boolean |
getClipToPadding()
|
int |
getDescendantFocusability()
|
View |
getFocusedChild()
|
LayoutAnimationController |
getLayoutAnimation()
|
Animation.AnimationListener |
getLayoutAnimationListener()
|
int |
getLayoutMode()
|
LayoutTransition |
getLayoutTransition()
|
int |
getNestedScrollAxes()
|
ViewOverlay |
getOverlay()
|
int |
getPersistentDrawingCache()
|
boolean |
getTouchscreenBlocksFocus()
|
boolean |
hasFocus()
|
boolean |
hasTransientState()
|
int |
indexOfChild(View arg0)
|
final void |
invalidateChild(View arg0, Rect arg1)
|
ViewParent |
invalidateChildInParent(int[] arg0, Rect arg1)
|
boolean |
isAlwaysDrawnWithCacheEnabled()
|
boolean |
isAnimationCacheEnabled()
|
boolean |
isLayoutSuppressed()
|
boolean |
isMotionEventSplittingEnabled()
|
boolean |
isTransitionGroup()
|
void |
jumpDrawablesToCurrentState()
|
final void |
layout(int arg0, int arg1, int arg2, int arg3)
|
void |
notifySubtreeAccessibilityStateChanged(View arg0, View arg1, int arg2)
|
final void |
offsetDescendantRectToMyCoords(View arg0, Rect arg1)
|
final void |
offsetRectIntoDescendantCoords(View arg0, Rect arg1)
|
void |
onDescendantInvalidated(View arg0, View arg1)
|
boolean |
onInterceptHoverEvent(MotionEvent arg0)
|
boolean |
onInterceptTouchEvent(MotionEvent arg0)
|
boolean |
onNestedFling(View arg0, float arg1, float arg2, boolean arg3)
|
boolean |
onNestedPreFling(View arg0, float arg1, float arg2)
|
boolean |
onNestedPrePerformAccessibilityAction(View arg0, int arg1, Bundle arg2)
|
void |
onNestedPreScroll(View arg0, int arg1, int arg2, int[] arg3)
|
void |
onNestedScroll(View arg0, int arg1, int arg2, int arg3, int arg4)
|
void |
onNestedScrollAccepted(View arg0, View arg1, int arg2)
|
boolean |
onRequestSendAccessibilityEvent(View arg0, AccessibilityEvent arg1)
|
PointerIcon |
onResolvePointerIcon(MotionEvent arg0, int arg1)
|
boolean |
onStartNestedScroll(View arg0, View arg1, int arg2)
|
void |
onStopNestedScroll(View arg0)
|
void |
onViewAdded(View arg0)
|
void |
onViewRemoved(View arg0)
|
void |
propagateRequestedFrameRate(float arg0, boolean arg1)
|
void |
recomputeViewAttributes(View arg0)
|
void |
removeAllViews()
|
void |
removeAllViewsInLayout()
|
void |
removeView(View arg0)
|
void |
removeViewAt(int arg0)
|
void |
removeViewInLayout(View arg0)
|
void |
removeViews(int arg0, int arg1)
|
void |
removeViewsInLayout(int arg0, int arg1)
|
void |
requestChildFocus(View arg0, View arg1)
|
boolean |
requestChildRectangleOnScreen(View arg0, Rect arg1, boolean arg2)
|
void |
requestDisallowInterceptTouchEvent(boolean arg0)
|
boolean |
requestFocus(int arg0, Rect arg1)
|
boolean |
requestSendAccessibilityEvent(View arg0, AccessibilityEvent arg1)
|
void |
requestTransparentRegion(View arg0)
|
boolean |
restoreDefaultFocus()
|
void |
scheduleLayoutAnimation()
|
void |
setAddStatesFromChildren(boolean arg0)
|
void |
setAlwaysDrawnWithCacheEnabled(boolean arg0)
|
void |
setAnimationCacheEnabled(boolean arg0)
|
void |
setClipChildren(boolean arg0)
|
void |
setClipToPadding(boolean arg0)
|
void |
setDescendantFocusability(int arg0)
|
void |
setLayoutAnimation(LayoutAnimationController arg0)
|
void |
setLayoutAnimationListener(Animation.AnimationListener arg0)
|
void |
setLayoutMode(int arg0)
|
void |
setLayoutTransition(LayoutTransition arg0)
|
void |
setMotionEventSplittingEnabled(boolean arg0)
|
void |
setOnHierarchyChangeListener(ViewGroup.OnHierarchyChangeListener arg0)
|
void |
setPersistentDrawingCache(int arg0)
|
void |
setRequestedFrameRate(float arg0)
|
void |
setTouchscreenBlocksFocus(boolean arg0)
|
void |
setTransitionGroup(boolean arg0)
|
void |
setWindowInsetsAnimationCallback(WindowInsetsAnimation.Callback arg0)
|
boolean |
shouldDelayChildPressedState()
|
boolean |
showContextMenuForChild(View arg0, float arg1, float arg2)
|
boolean |
showContextMenuForChild(View arg0)
|
ActionMode |
startActionModeForChild(View arg0, ActionMode.Callback arg1, int arg2)
|
ActionMode |
startActionModeForChild(View arg0, ActionMode.Callback arg1)
|
void |
startLayoutAnimation()
|
void |
startViewTransition(View arg0)
|
void |
suppressLayout(boolean arg0)
|
void |
updateViewLayout(View arg0, ViewGroup.LayoutParams arg1)
|
void |
addChildrenForAccessibility(ArrayList<View> arg0)
|
void |
addExtraDataToAccessibilityNodeInfo(AccessibilityNodeInfo arg0, String arg1, Bundle arg2)
|
void |
addFocusables(ArrayList<View> arg0, int arg1)
|
void |
addFocusables(ArrayList<View> arg0, int arg1, int arg2)
|
void |
addKeyboardNavigationClusters(Collection<View> arg0, int arg1)
|
void |
addOnAttachStateChangeListener(View.OnAttachStateChangeListener arg0)
|
void |
addOnLayoutChangeListener(View.OnLayoutChangeListener arg0)
|
void |
addOnUnhandledKeyEventListener(View.OnUnhandledKeyEventListener arg0)
|
void |
addTouchables(ArrayList<View> arg0)
|
ViewPropertyAnimator |
animate()
|
void |
announceForAccessibility(CharSequence arg0)
|
void |
autofill(AutofillValue arg0)
|
void |
autofill(SparseArray<AutofillValue> arg0)
|
void |
bringToFront()
|
void |
buildDrawingCache(boolean arg0)
|
void |
buildDrawingCache()
|
void |
buildLayer()
|
boolean |
callOnClick()
|
boolean |
canResolveLayoutDirection()
|
boolean |
canResolveTextAlignment()
|
boolean |
canResolveTextDirection()
|
boolean |
canScrollHorizontally(int arg0)
|
boolean |
canScrollVertically(int arg0)
|
final void |
cancelDragAndDrop()
|
void |
cancelLongPress()
|
final void |
cancelPendingInputEvents()
|
boolean |
checkInputConnectionProxy(View arg0)
|
void |
clearAnimation()
|
void |
clearFocus()
|
void |
clearPendingCredentialRequest()
|
void |
clearViewTranslationCallback()
|
static int |
combineMeasuredStates(int arg0, int arg1)
|
void |
computeScroll()
|
WindowInsets |
computeSystemWindowInsets(WindowInsets arg0, Rect arg1)
|
AccessibilityNodeInfo |
createAccessibilityNodeInfo()
|
void |
createContextMenu(ContextMenu arg0)
|
void |
destroyDrawingCache()
|
WindowInsets |
dispatchApplyWindowInsets(WindowInsets arg0)
|
boolean |
dispatchCapturedPointerEvent(MotionEvent arg0)
|
void |
dispatchConfigurationChanged(Configuration arg0)
|
void |
dispatchCreateViewTranslationRequest(Map<AutofillId, long[]> arg0, int[] arg1, TranslationCapability arg2, List<ViewTranslationRequest> arg3)
|
void |
dispatchDisplayHint(int arg0)
|
boolean |
dispatchDragEvent(DragEvent arg0)
|
void |
dispatchDrawableHotspotChanged(float arg0, float arg1)
|
void |
dispatchFinishTemporaryDetach()
|
boolean |
dispatchGenericMotionEvent(MotionEvent arg0)
|
boolean |
dispatchKeyEvent(KeyEvent arg0)
|
boolean |
dispatchKeyEventPreIme(KeyEvent arg0)
|
boolean |
dispatchKeyShortcutEvent(KeyEvent arg0)
|
boolean |
dispatchNestedFling(float arg0, float arg1, boolean arg2)
|
boolean |
dispatchNestedPreFling(float arg0, float arg1)
|
boolean |
dispatchNestedPrePerformAccessibilityAction(int arg0, Bundle arg1)
|
boolean |
dispatchNestedPreScroll(int arg0, int arg1, int[] arg2, int[] arg3)
|
boolean |
dispatchNestedScroll(int arg0, int arg1, int arg2, int arg3, int[] arg4)
|
void |
dispatchPointerCaptureChanged(boolean arg0)
|
boolean |
dispatchPopulateAccessibilityEvent(AccessibilityEvent arg0)
|
void |
dispatchProvideAutofillStructure(ViewStructure arg0, int arg1)
|
void |
dispatchProvideStructure(ViewStructure arg0)
|
void |
dispatchScrollCaptureSearch(Rect arg0, Point arg1, Consumer<ScrollCaptureTarget> arg2)
|
void |
dispatchStartTemporaryDetach()
|
void |
dispatchSystemUiVisibilityChanged(int arg0)
|
boolean |
dispatchTouchEvent(MotionEvent arg0)
|
boolean |
dispatchTrackballEvent(MotionEvent arg0)
|
boolean |
dispatchUnhandledMove(View arg0, int arg1)
|
void |
dispatchWindowFocusChanged(boolean arg0)
|
void |
dispatchWindowInsetsAnimationEnd(WindowInsetsAnimation arg0)
|
void |
dispatchWindowInsetsAnimationPrepare(WindowInsetsAnimation arg0)
|
WindowInsets |
dispatchWindowInsetsAnimationProgress(WindowInsets arg0, List<WindowInsetsAnimation> arg1)
|
WindowInsetsAnimation.Bounds |
dispatchWindowInsetsAnimationStart(WindowInsetsAnimation arg0, WindowInsetsAnimation.Bounds arg1)
|
void |
dispatchWindowSystemUiVisiblityChanged(int arg0)
|
void |
dispatchWindowVisibilityChanged(int arg0)
|
void |
draw(Canvas arg0)
|
void |
drawableHotspotChanged(float arg0, float arg1)
|
View |
findFocus()
|
final OnBackInvokedDispatcher |
findOnBackInvokedDispatcher()
|
final <T extends View> T |
findViewById(int arg0)
|
final <T extends View> T |
findViewWithTag(Object arg0)
|
void |
findViewsWithText(ArrayList<View> arg0, CharSequence arg1, int arg2)
|
View |
focusSearch(int arg0)
|
void |
forceHasOverlappingRendering(boolean arg0)
|
void |
forceLayout()
|
boolean |
gatherTransparentRegion(Region arg0)
|
void |
generateDisplayHash(String arg0, Rect arg1, Executor arg2, DisplayHashResultCallback arg3)
|
static int |
generateViewId()
|
CharSequence |
getAccessibilityClassName()
|
View.AccessibilityDelegate |
getAccessibilityDelegate()
|
int |
getAccessibilityLiveRegion()
|
AccessibilityNodeProvider |
getAccessibilityNodeProvider()
|
CharSequence |
getAccessibilityPaneTitle()
|
int |
getAccessibilityTraversalAfter()
|
int |
getAccessibilityTraversalBefore()
|
String |
getAllowedHandwritingDelegatePackageName()
|
String |
getAllowedHandwritingDelegatorPackageName()
|
float |
getAlpha()
|
Animation |
getAnimation()
|
Matrix |
getAnimationMatrix()
|
IBinder |
getApplicationWindowToken()
|
int[] |
getAttributeResolutionStack(int arg0)
|
Map<Integer, Integer> |
getAttributeSourceResourceMap()
|
String[] |
getAutofillHints()
|
final AutofillId |
getAutofillId()
|
int |
getAutofillType()
|
AutofillValue |
getAutofillValue()
|
Drawable |
getBackground()
|
BlendMode |
getBackgroundTintBlendMode()
|
ColorStateList |
getBackgroundTintList()
|
PorterDuff.Mode |
getBackgroundTintMode()
|
int |
getBaseline()
|
final int |
getBottom()
|
float |
getCameraDistance()
|
boolean |
getClipBounds(Rect arg0)
|
Rect |
getClipBounds()
|
final boolean |
getClipToOutline()
|
final ContentCaptureSession |
getContentCaptureSession()
|
CharSequence |
getContentDescription()
|
final int |
getContentSensitivity()
|
final Context |
getContext()
|
final boolean |
getDefaultFocusHighlightEnabled()
|
static int |
getDefaultSize(int arg0, int arg1)
|
Display |
getDisplay()
|
final int[] |
getDrawableState()
|
Bitmap |
getDrawingCache()
|
Bitmap |
getDrawingCache(boolean arg0)
|
int |
getDrawingCacheBackgroundColor()
|
int |
getDrawingCacheQuality()
|
void |
getDrawingRect(Rect arg0)
|
long |
getDrawingTime()
|
float |
getElevation()
|
int |
getExplicitStyle()
|
boolean |
getFilterTouchesWhenObscured()
|
boolean |
getFitsSystemWindows()
|
int |
getFocusable()
|
ArrayList<View> |
getFocusables(int arg0)
|
void |
getFocusedRect(Rect arg0)
|
Drawable |
getForeground()
|
int |
getForegroundGravity()
|
BlendMode |
getForegroundTintBlendMode()
|
ColorStateList |
getForegroundTintList()
|
PorterDuff.Mode |
getForegroundTintMode()
|
float |
getFrameContentVelocity()
|
final boolean |
getGlobalVisibleRect(Rect arg0)
|
boolean |
getGlobalVisibleRect(Rect arg0, Point arg1)
|
Handler |
getHandler()
|
float |
getHandwritingBoundsOffsetBottom()
|
float |
getHandwritingBoundsOffsetLeft()
|
float |
getHandwritingBoundsOffsetRight()
|
float |
getHandwritingBoundsOffsetTop()
|
int |
getHandwritingDelegateFlags()
|
Runnable |
getHandwritingDelegatorCallback()
|
final boolean |
getHasOverlappingRendering()
|
final int |
getHeight()
|
void |
getHitRect(Rect arg0)
|
int |
getHorizontalFadingEdgeLength()
|
Drawable |
getHorizontalScrollbarThumbDrawable()
|
Drawable |
getHorizontalScrollbarTrackDrawable()
|
int |
getId()
|
int |
getImportantForAccessibility()
|
int |
getImportantForAutofill()
|
int |
getImportantForContentCapture()
|
boolean |
getKeepScreenOn()
|
KeyEvent.DispatcherState |
getKeyDispatcherState()
|
int |
getLabelFor()
|
int |
getLayerType()
|
int |
getLayoutDirection()
|
ViewGroup.LayoutParams |
getLayoutParams()
|
final int |
getLeft()
|
final boolean |
getLocalVisibleRect(Rect arg0)
|
void |
getLocationInSurface(int[] arg0)
|
void |
getLocationInWindow(int[] arg0)
|
void |
getLocationOnScreen(int[] arg0)
|
Matrix |
getMatrix()
|
final int |
getMeasuredHeight()
|
final int |
getMeasuredHeightAndState()
|
final int |
getMeasuredState()
|
final int |
getMeasuredWidth()
|
final int |
getMeasuredWidthAndState()
|
int |
getMinimumHeight()
|
int |
getMinimumWidth()
|
int |
getNextClusterForwardId()
|
int |
getNextFocusDownId()
|
int |
getNextFocusForwardId()
|
int |
getNextFocusLeftId()
|
int |
getNextFocusRightId()
|
int |
getNextFocusUpId()
|
View.OnFocusChangeListener |
getOnFocusChangeListener()
|
int |
getOutlineAmbientShadowColor()
|
ViewOutlineProvider |
getOutlineProvider()
|
int |
getOutlineSpotShadowColor()
|
int |
getOverScrollMode()
|
ViewOverlay |
getOverlay()
|
int |
getPaddingBottom()
|
int |
getPaddingEnd()
|
int |
getPaddingLeft()
|
int |
getPaddingRight()
|
int |
getPaddingStart()
|
int |
getPaddingTop()
|
final ViewParent |
getParent()
|
ViewParent |
getParentForAccessibility()
|
final OutcomeReceiver<GetCredentialResponse, GetCredentialException> |
getPendingCredentialCallback()
|
final GetCredentialRequest |
getPendingCredentialRequest()
|
float |
getPivotX()
|
float |
getPivotY()
|
PointerIcon |
getPointerIcon()
|
final List<Rect> |
getPreferKeepClearRects()
|
String[] |
getReceiveContentMimeTypes()
|
float |
getRequestedFrameRate()
|
Resources |
getResources()
|
final boolean |
getRevealOnFocusHint()
|
final int |
getRight()
|
AttachedSurfaceControl |
getRootSurfaceControl()
|
View |
getRootView()
|
WindowInsets |
getRootWindowInsets()
|
float |
getRotation()
|
float |
getRotationX()
|
float |
getRotationY()
|
float |
getScaleX()
|
float |
getScaleY()
|
int |
getScrollBarDefaultDelayBeforeFade()
|
int |
getScrollBarFadeDuration()
|
int |
getScrollBarSize()
|
int |
getScrollBarStyle()
|
int |
getScrollCaptureHint()
|
int |
getScrollIndicators()
|
final int |
getScrollX()
|
final int |
getScrollY()
|
int |
getSolidColor()
|
int |
getSourceLayoutResId()
|
final CharSequence |
getStateDescription()
|
StateListAnimator |
getStateListAnimator()
|
CharSequence |
getSupplementalDescription()
|
List<Rect> |
getSystemGestureExclusionRects()
|
int |
getSystemUiVisibility()
|
Object |
getTag()
|
Object |
getTag(int arg0)
|
int |
getTextAlignment()
|
int |
getTextDirection()
|
CharSequence |
getTooltipText()
|
final int |
getTop()
|
TouchDelegate |
getTouchDelegate()
|
ArrayList<View> |
getTouchables()
|
float |
getTransitionAlpha()
|
String |
getTransitionName()
|
float |
getTranslationX()
|
float |
getTranslationY()
|
float |
getTranslationZ()
|
long |
getUniqueDrawingId()
|
int |
getVerticalFadingEdgeLength()
|
int |
getVerticalScrollbarPosition()
|
Drawable |
getVerticalScrollbarThumbDrawable()
|
Drawable |
getVerticalScrollbarTrackDrawable()
|
int |
getVerticalScrollbarWidth()
|
ViewTranslationResponse |
getViewTranslationResponse()
|
ViewTreeObserver |
getViewTreeObserver()
|
int |
getVisibility()
|
final int |
getWidth()
|
WindowId |
getWindowId()
|
WindowInsetsController |
getWindowInsetsController()
|
int |
getWindowSystemUiVisibility()
|
IBinder |
getWindowToken()
|
int |
getWindowVisibility()
|
void |
getWindowVisibleDisplayFrame(Rect arg0)
|
float |
getX()
|
float |
getY()
|
float |
getZ()
|
boolean |
hasExplicitFocusable()
|
boolean |
hasFocus()
|
boolean |
hasFocusable()
|
boolean |
hasNestedScrollingParent()
|
boolean |
hasOnClickListeners()
|
boolean |
hasOnLongClickListeners()
|
boolean |
hasOverlappingRendering()
|
boolean |
hasPointerCapture()
|
boolean |
hasTransientState()
|
boolean |
hasWindowFocus()
|
static View |
inflate(Context arg0, int arg1, ViewGroup arg2)
|
void |
invalidate()
|
void |
invalidate(Rect arg0)
|
void |
invalidate(int arg0, int arg1, int arg2, int arg3)
|
void |
invalidateDrawable(Drawable arg0)
|
void |
invalidateOutline()
|
boolean |
isAccessibilityDataSensitive()
|
boolean |
isAccessibilityFocused()
|
boolean |
isAccessibilityHeading()
|
boolean |
isActivated()
|
boolean |
isAttachedToWindow()
|
boolean |
isAutoHandwritingEnabled()
|
boolean |
isClickable()
|
final boolean |
isContentSensitive()
|
boolean |
isContextClickable()
|
boolean |
isCredential()
|
boolean |
isDirty()
|
boolean |
isDrawingCacheEnabled()
|
boolean |
isDuplicateParentStateEnabled()
|
boolean |
isEnabled()
|
final boolean |
isFocusable()
|
final boolean |
isFocusableInTouchMode()
|
boolean |
isFocused()
|
final boolean |
isFocusedByDefault()
|
boolean |
isForceDarkAllowed()
|
boolean |
isHandwritingDelegate()
|
boolean |
isHapticFeedbackEnabled()
|
boolean |
isHardwareAccelerated()
|
boolean |
isHorizontalFadingEdgeEnabled()
|
boolean |
isHorizontalScrollBarEnabled()
|
boolean |
isHovered()
|
boolean |
isImportantForAccessibility()
|
final boolean |
isImportantForAutofill()
|
final boolean |
isImportantForContentCapture()
|
boolean |
isInEditMode()
|
boolean |
isInLayout()
|
boolean |
isInTouchMode()
|
final boolean |
isKeyboardNavigationCluster()
|
boolean |
isLaidOut()
|
boolean |
isLayoutDirectionResolved()
|
boolean |
isLayoutRequested()
|
boolean |
isLongClickable()
|
boolean |
isNestedScrollingEnabled()
|
boolean |
isOpaque()
|
boolean |
isPaddingRelative()
|
boolean |
isPivotSet()
|
final boolean |
isPreferKeepClear()
|
boolean |
isPressed()
|
boolean |
isSaveEnabled()
|
boolean |
isSaveFromParentEnabled()
|
boolean |
isScreenReaderFocusable()
|
boolean |
isScrollContainer()
|
boolean |
isScrollbarFadingEnabled()
|
boolean |
isSelected()
|
final boolean |
isShowingLayoutBounds()
|
boolean |
isShown()
|
boolean |
isSoundEffectsEnabled()
|
final boolean |
isTemporarilyDetached()
|
boolean |
isTextAlignmentResolved()
|
boolean |
isTextDirectionResolved()
|
boolean |
isVerticalFadingEdgeEnabled()
|
boolean |
isVerticalScrollBarEnabled()
|
boolean |
isVisibleToUserForAutofill(int arg0)
|
void |
jumpDrawablesToCurrentState()
|
View |
keyboardNavigationClusterSearch(View arg0, int arg1)
|
void |
layout(int arg0, int arg1, int arg2, int arg3)
|
final void |
measure(int arg0, int arg1)
|
void |
offsetLeftAndRight(int arg0)
|
void |
offsetTopAndBottom(int arg0)
|
WindowInsets |
onApplyWindowInsets(WindowInsets arg0)
|
void |
onCancelPendingInputEvents()
|
boolean |
onCapturedPointerEvent(MotionEvent arg0)
|
boolean |
onCheckIsTextEditor()
|
InputConnection |
onCreateInputConnection(EditorInfo arg0)
|
void |
onCreateViewTranslationRequest(int[] arg0, Consumer<ViewTranslationRequest> arg1)
|
void |
onCreateVirtualViewTranslationRequests(long[] arg0, int[] arg1, Consumer<ViewTranslationRequest> arg2)
|
boolean |
onDragEvent(DragEvent arg0)
|
void |
onDrawForeground(Canvas arg0)
|
boolean |
onFilterTouchEventForSecurity(MotionEvent arg0)
|
void |
onFinishTemporaryDetach()
|
boolean |
onGenericMotionEvent(MotionEvent arg0)
|
void |
onHoverChanged(boolean arg0)
|
boolean |
onHoverEvent(MotionEvent arg0)
|
void |
onInitializeAccessibilityEvent(AccessibilityEvent arg0)
|
void |
onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo arg0)
|
boolean |
onKeyDown(int arg0, KeyEvent arg1)
|
boolean |
onKeyLongPress(int arg0, KeyEvent arg1)
|
boolean |
onKeyMultiple(int arg0, int arg1, KeyEvent arg2)
|
boolean |
onKeyPreIme(int arg0, KeyEvent arg1)
|
boolean |
onKeyShortcut(int arg0, KeyEvent arg1)
|
boolean |
onKeyUp(int arg0, KeyEvent arg1)
|
void |
onPointerCaptureChange(boolean arg0)
|
void |
onPopulateAccessibilityEvent(AccessibilityEvent arg0)
|
void |
onProvideAutofillStructure(ViewStructure arg0, int arg1)
|
void |
onProvideAutofillVirtualStructure(ViewStructure arg0, int arg1)
|
void |
onProvideContentCaptureStructure(ViewStructure arg0, int arg1)
|
void |
onProvideStructure(ViewStructure arg0)
|
void |
onProvideVirtualStructure(ViewStructure arg0)
|
ContentInfo |
onReceiveContent(ContentInfo arg0)
|
PointerIcon |
onResolvePointerIcon(MotionEvent arg0, int arg1)
|
void |
onRtlPropertiesChanged(int arg0)
|
void |
onScreenStateChanged(int arg0)
|
void |
onScrollCaptureSearch(Rect arg0, Point arg1, Consumer<ScrollCaptureTarget> arg2)
|
void |
onStartTemporaryDetach()
|
boolean |
onTouchEvent(MotionEvent arg0)
|
boolean |
onTrackballEvent(MotionEvent arg0)
|
void |
onViewTranslationResponse(ViewTranslationResponse arg0)
|
void |
onVirtualViewTranslationResponses(LongSparseArray<ViewTranslationResponse> arg0)
|
void |
onVisibilityAggregated(boolean arg0)
|
void |
onWindowFocusChanged(boolean arg0)
|
void |
onWindowSystemUiVisibilityChanged(int arg0)
|
boolean |
performAccessibilityAction(int arg0, Bundle arg1)
|
boolean |
performClick()
|
boolean |
performContextClick(float arg0, float arg1)
|
boolean |
performContextClick()
|
boolean |
performHapticFeedback(int arg0)
|
boolean |
performHapticFeedback(int arg0, int arg1)
|
boolean |
performLongClick(float arg0, float arg1)
|
boolean |
performLongClick()
|
ContentInfo |
performReceiveContent(ContentInfo arg0)
|
void |
playSoundEffect(int arg0)
|
boolean |
post(Runnable arg0)
|
boolean |
postDelayed(Runnable arg0, long arg1)
|
void |
postInvalidate()
|
void |
postInvalidate(int arg0, int arg1, int arg2, int arg3)
|
void |
postInvalidateDelayed(long arg0, int arg1, int arg2, int arg3, int arg4)
|
void |
postInvalidateDelayed(long arg0)
|
void |
postInvalidateOnAnimation(int arg0, int arg1, int arg2, int arg3)
|
void |
postInvalidateOnAnimation()
|
void |
postOnAnimation(Runnable arg0)
|
void |
postOnAnimationDelayed(Runnable arg0, long arg1)
|
void |
refreshDrawableState()
|
void |
releasePointerCapture()
|
boolean |
removeCallbacks(Runnable arg0)
|
void |
removeOnAttachStateChangeListener(View.OnAttachStateChangeListener arg0)
|
void |
removeOnLayoutChangeListener(View.OnLayoutChangeListener arg0)
|
void |
removeOnUnhandledKeyEventListener(View.OnUnhandledKeyEventListener arg0)
|
void |
requestApplyInsets()
|
void |
requestFitSystemWindows()
|
final boolean |
requestFocus(int arg0)
|
final boolean |
requestFocus()
|
boolean |
requestFocus(int arg0, Rect arg1)
|
final boolean |
requestFocusFromTouch()
|
void |
requestLayout()
|
void |
requestPointerCapture()
|
boolean |
requestRectangleOnScreen(Rect arg0)
|
boolean |
requestRectangleOnScreen(Rect arg0, boolean arg1)
|
final void |
requestUnbufferedDispatch(int arg0)
|
final void |
requestUnbufferedDispatch(MotionEvent arg0)
|
final <T extends View> T |
requireViewById(int arg0)
|
void |
resetPivot()
|
static int |
resolveSize(int arg0, int arg1)
|
static int |
resolveSizeAndState(int arg0, int arg1, int arg2)
|
boolean |
restoreDefaultFocus()
|
void |
restoreHierarchyState(SparseArray<Parcelable> arg0)
|
final void |
saveAttributeDataForStyleable(Context arg0, int[] arg1, AttributeSet arg2, TypedArray arg3, int arg4, int arg5)
|
void |
saveHierarchyState(SparseArray<Parcelable> arg0)
|
void |
scheduleDrawable(Drawable arg0, Runnable arg1, long arg2)
|
void |
scrollBy(int arg0, int arg1)
|
void |
scrollTo(int arg0, int arg1)
|
void |
sendAccessibilityEvent(int arg0)
|
void |
sendAccessibilityEventUnchecked(AccessibilityEvent arg0)
|
void |
setAccessibilityDataSensitive(int arg0)
|
void |
setAccessibilityDelegate(View.AccessibilityDelegate arg0)
|
void |
setAccessibilityHeading(boolean arg0)
|
void |
setAccessibilityLiveRegion(int arg0)
|
void |
setAccessibilityPaneTitle(CharSequence arg0)
|
void |
setAccessibilityTraversalAfter(int arg0)
|
void |
setAccessibilityTraversalBefore(int arg0)
|
void |
setActivated(boolean arg0)
|
void |
setAllowClickWhenDisabled(boolean arg0)
|
void |
setAllowedHandwritingDelegatePackage(String arg0)
|
void |
setAllowedHandwritingDelegatorPackage(String arg0)
|
void |
setAlpha(float arg0)
|
void |
setAnimation(Animation arg0)
|
void |
setAnimationMatrix(Matrix arg0)
|
void |
setAutoHandwritingEnabled(boolean arg0)
|
void |
setAutofillHints(String... arg0)
|
void |
setAutofillId(AutofillId arg0)
|
void |
setBackground(Drawable arg0)
|
void |
setBackgroundColor(int arg0)
|
void |
setBackgroundDrawable(Drawable arg0)
|
void |
setBackgroundResource(int arg0)
|
void |
setBackgroundTintBlendMode(BlendMode arg0)
|
void |
setBackgroundTintList(ColorStateList arg0)
|
void |
setBackgroundTintMode(PorterDuff.Mode arg0)
|
final void |
setBottom(int arg0)
|
void |
setCameraDistance(float arg0)
|
void |
setClickable(boolean arg0)
|
void |
setClipBounds(Rect arg0)
|
void |
setClipToOutline(boolean arg0)
|
void |
setContentCaptureSession(ContentCaptureSession arg0)
|
void |
setContentDescription(CharSequence arg0)
|
final void |
setContentSensitivity(int arg0)
|
void |
setContextClickable(boolean arg0)
|
void |
setDefaultFocusHighlightEnabled(boolean arg0)
|
void |
setDrawingCacheBackgroundColor(int arg0)
|
void |
setDrawingCacheEnabled(boolean arg0)
|
void |
setDrawingCacheQuality(int arg0)
|
void |
setDuplicateParentStateEnabled(boolean arg0)
|
void |
setElevation(float arg0)
|
void |
setEnabled(boolean arg0)
|
void |
setFadingEdgeLength(int arg0)
|
void |
setFilterTouchesWhenObscured(boolean arg0)
|
void |
setFitsSystemWindows(boolean arg0)
|
void |
setFocusable(boolean arg0)
|
void |
setFocusable(int arg0)
|
void |
setFocusableInTouchMode(boolean arg0)
|
void |
setFocusedByDefault(boolean arg0)
|
void |
setForceDarkAllowed(boolean arg0)
|
void |
setForeground(Drawable arg0)
|
void |
setForegroundGravity(int arg0)
|
void |
setForegroundTintBlendMode(BlendMode arg0)
|
void |
setForegroundTintList(ColorStateList arg0)
|
void |
setForegroundTintMode(PorterDuff.Mode arg0)
|
void |
setFrameContentVelocity(float arg0)
|
void |
setHandwritingBoundsOffsets(float arg0, float arg1, float arg2, float arg3)
|
void |
setHandwritingDelegateFlags(int arg0)
|
void |
setHandwritingDelegatorCallback(Runnable arg0)
|
void |
setHapticFeedbackEnabled(boolean arg0)
|
void |
setHasTransientState(boolean arg0)
|
void |
setHorizontalFadingEdgeEnabled(boolean arg0)
|
void |
setHorizontalScrollBarEnabled(boolean arg0)
|
void |
setHorizontalScrollbarThumbDrawable(Drawable arg0)
|
void |
setHorizontalScrollbarTrackDrawable(Drawable arg0)
|
void |
setHovered(boolean arg0)
|
void |
setId(int arg0)
|
void |
setImportantForAccessibility(int arg0)
|
void |
setImportantForAutofill(int arg0)
|
void |
setImportantForContentCapture(int arg0)
|
void |
setIsCredential(boolean arg0)
|
void |
setIsHandwritingDelegate(boolean arg0)
|
void |
setKeepScreenOn(boolean arg0)
|
void |
setKeyboardNavigationCluster(boolean arg0)
|
void |
setLabelFor(int arg0)
|
void |
setLayerPaint(Paint arg0)
|
void |
setLayerType(int arg0, Paint arg1)
|
void |
setLayoutDirection(int arg0)
|
void |
setLayoutParams(ViewGroup.LayoutParams arg0)
|
final void |
setLeft(int arg0)
|
final void |
setLeftTopRightBottom(int arg0, int arg1, int arg2, int arg3)
|
void |
setLongClickable(boolean arg0)
|
void |
setMinimumHeight(int arg0)
|
void |
setMinimumWidth(int arg0)
|
void |
setNestedScrollingEnabled(boolean arg0)
|
void |
setNextClusterForwardId(int arg0)
|
void |
setNextFocusDownId(int arg0)
|
void |
setNextFocusForwardId(int arg0)
|
void |
setNextFocusLeftId(int arg0)
|
void |
setNextFocusRightId(int arg0)
|
void |
setNextFocusUpId(int arg0)
|
void |
setOnApplyWindowInsetsListener(View.OnApplyWindowInsetsListener arg0)
|
void |
setOnCapturedPointerListener(View.OnCapturedPointerListener arg0)
|
void |
setOnClickListener(View.OnClickListener arg0)
|
void |
setOnContextClickListener(View.OnContextClickListener arg0)
|
void |
setOnCreateContextMenuListener(View.OnCreateContextMenuListener arg0)
|
void |
setOnDragListener(View.OnDragListener arg0)
|
void |
setOnFocusChangeListener(View.OnFocusChangeListener arg0)
|
void |
setOnGenericMotionListener(View.OnGenericMotionListener arg0)
|
void |
setOnHoverListener(View.OnHoverListener arg0)
|
void |
setOnKeyListener(View.OnKeyListener arg0)
|
void |
setOnLongClickListener(View.OnLongClickListener arg0)
|
void |
setOnReceiveContentListener(String[] arg0, OnReceiveContentListener arg1)
|
void |
setOnScrollChangeListener(View.OnScrollChangeListener arg0)
|
void |
setOnSystemUiVisibilityChangeListener(View.OnSystemUiVisibilityChangeListener arg0)
|
void |
setOnTouchListener(View.OnTouchListener arg0)
|
void |
setOutlineAmbientShadowColor(int arg0)
|
void |
setOutlineProvider(ViewOutlineProvider arg0)
|
void |
setOutlineSpotShadowColor(int arg0)
|
void |
setOverScrollMode(int arg0)
|
void |
setPadding(int arg0, int arg1, int arg2, int arg3)
|
void |
setPaddingRelative(int arg0, int arg1, int arg2, int arg3)
|
void |
setPendingCredentialRequest(GetCredentialRequest arg0, OutcomeReceiver<GetCredentialResponse, GetCredentialException> arg1)
|
void |
setPivotX(float arg0)
|
void |
setPivotY(float arg0)
|
void |
setPointerIcon(PointerIcon arg0)
|
final void |
setPreferKeepClear(boolean arg0)
|
final void |
setPreferKeepClearRects(List<Rect> arg0)
|
void |
setPressed(boolean arg0)
|
void |
setRenderEffect(RenderEffect arg0)
|
void |
setRequestedFrameRate(float arg0)
|
final void |
setRevealOnFocusHint(boolean arg0)
|
final void |
setRight(int arg0)
|
void |
setRotation(float arg0)
|
void |
setRotationX(float arg0)
|
void |
setRotationY(float arg0)
|
void |
setSaveEnabled(boolean arg0)
|
void |
setSaveFromParentEnabled(boolean arg0)
|
void |
setScaleX(float arg0)
|
void |
setScaleY(float arg0)
|
void |
setScreenReaderFocusable(boolean arg0)
|
void |
setScrollBarDefaultDelayBeforeFade(int arg0)
|
void |
setScrollBarFadeDuration(int arg0)
|
void |
setScrollBarSize(int arg0)
|
void |
setScrollBarStyle(int arg0)
|
final void |
setScrollCaptureCallback(ScrollCaptureCallback arg0)
|
void |
setScrollCaptureHint(int arg0)
|
void |
setScrollContainer(boolean arg0)
|
void |
setScrollIndicators(int arg0, int arg1)
|
void |
setScrollIndicators(int arg0)
|
void |
setScrollX(int arg0)
|
void |
setScrollY(int arg0)
|
void |
setScrollbarFadingEnabled(boolean arg0)
|
void |
setSelected(boolean arg0)
|
void |
setSoundEffectsEnabled(boolean arg0)
|
void |
setStateDescription(CharSequence arg0)
|
void |
setStateListAnimator(StateListAnimator arg0)
|
void |
setSupplementalDescription(CharSequence arg0)
|
void |
setSystemGestureExclusionRects(List<Rect> arg0)
|
void |
setSystemUiVisibility(int arg0)
|
void |
setTag(int arg0, Object arg1)
|
void |
setTag(Object arg0)
|
void |
setTextAlignment(int arg0)
|
void |
setTextDirection(int arg0)
|
void |
setTooltipText(CharSequence arg0)
|
final void |
setTop(int arg0)
|
void |
setTouchDelegate(TouchDelegate arg0)
|
void |
setTransitionAlpha(float arg0)
|
final void |
setTransitionName(String arg0)
|
void |
setTransitionVisibility(int arg0)
|
void |
setTranslationX(float arg0)
|
void |
setTranslationY(float arg0)
|
void |
setTranslationZ(float arg0)
|
void |
setVerticalFadingEdgeEnabled(boolean arg0)
|
void |
setVerticalScrollBarEnabled(boolean arg0)
|
void |
setVerticalScrollbarPosition(int arg0)
|
void |
setVerticalScrollbarThumbDrawable(Drawable arg0)
|
void |
setVerticalScrollbarTrackDrawable(Drawable arg0)
|
void |
setViewTranslationCallback(ViewTranslationCallback arg0)
|
void |
setVisibility(int arg0)
|
void |
setWillNotCacheDrawing(boolean arg0)
|
void |
setWillNotDraw(boolean arg0)
|
void |
setWindowInsetsAnimationCallback(WindowInsetsAnimation.Callback arg0)
|
void |
setX(float arg0)
|
void |
setY(float arg0)
|
void |
setZ(float arg0)
|
boolean |
showContextMenu()
|
boolean |
showContextMenu(float arg0, float arg1)
|
ActionMode |
startActionMode(ActionMode.Callback arg0, int arg1)
|
ActionMode |
startActionMode(ActionMode.Callback arg0)
|
void |
startAnimation(Animation arg0)
|
final boolean |
startDrag(ClipData arg0, View.DragShadowBuilder arg1, Object arg2, int arg3)
|
final boolean |
startDragAndDrop(ClipData arg0, View.DragShadowBuilder arg1, Object arg2, int arg3)
|
boolean |
startNestedScroll(int arg0)
|
void |
stopNestedScroll()
|
String |
toString()
|
void |
transformMatrixToGlobal(Matrix arg0)
|
void |
transformMatrixToLocal(Matrix arg0)
|
void |
unscheduleDrawable(Drawable arg0, Runnable arg1)
|
void |
unscheduleDrawable(Drawable arg0)
|
final void |
updateDragShadow(View.DragShadowBuilder arg0)
|
boolean |
willNotCacheDrawing()
|
boolean |
willNotDraw()
|
boolean |
equals(Object arg0)
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
abstract void |
addView(View arg0, ViewGroup.LayoutParams arg1)
|
abstract void |
removeView(View arg0)
|
abstract void |
updateViewLayout(View arg0, ViewGroup.LayoutParams arg1)
|
abstract void |
bringChildToFront(View arg0)
|
abstract boolean |
canResolveLayoutDirection()
|
abstract boolean |
canResolveTextAlignment()
|
abstract boolean |
canResolveTextDirection()
|
abstract void |
childDrawableStateChanged(View arg0)
|
abstract void |
childHasTransientStateChanged(View arg0, boolean arg1)
|
abstract void |
clearChildFocus(View arg0)
|
abstract void |
createContextMenu(ContextMenu arg0)
|
OnBackInvokedDispatcher |
findOnBackInvokedDispatcherForChild(View arg0, View arg1)
|
abstract View |
focusSearch(View arg0, int arg1)
|
abstract void |
focusableViewAvailable(View arg0)
|
abstract boolean |
getChildVisibleRect(View arg0, Rect arg1, Point arg2)
|
abstract int |
getLayoutDirection()
|
abstract ViewParent |
getParent()
|
abstract ViewParent |
getParentForAccessibility()
|
abstract int |
getTextAlignment()
|
abstract int |
getTextDirection()
|
abstract void |
invalidateChild(View arg0, Rect arg1)
|
abstract ViewParent |
invalidateChildInParent(int[] arg0, Rect arg1)
|
abstract boolean |
isLayoutDirectionResolved()
|
abstract boolean |
isLayoutRequested()
|
abstract boolean |
isTextAlignmentResolved()
|
abstract boolean |
isTextDirectionResolved()
|
abstract View |
keyboardNavigationClusterSearch(View arg0, int arg1)
|
abstract void |
notifySubtreeAccessibilityStateChanged(View arg0, View arg1, int arg2)
|
void |
onDescendantInvalidated(View arg0, View arg1)
|
abstract boolean |
onNestedFling(View arg0, float arg1, float arg2, boolean arg3)
|
abstract boolean |
onNestedPreFling(View arg0, float arg1, float arg2)
|
abstract boolean |
onNestedPrePerformAccessibilityAction(View arg0, int arg1, Bundle arg2)
|
abstract void |
onNestedPreScroll(View arg0, int arg1, int arg2, int[] arg3)
|
abstract void |
onNestedScroll(View arg0, int arg1, int arg2, int arg3, int arg4)
|
abstract void |
onNestedScrollAccepted(View arg0, View arg1, int arg2)
|
abstract boolean |
onStartNestedScroll(View arg0, View arg1, int arg2)
|
abstract void |
onStopNestedScroll(View arg0)
|
abstract void |
recomputeViewAttributes(View arg0)
|
abstract void |
requestChildFocus(View arg0, View arg1)
|
abstract boolean |
requestChildRectangleOnScreen(View arg0, Rect arg1, boolean arg2)
|
abstract void |
requestDisallowInterceptTouchEvent(boolean arg0)
|
abstract void |
requestFitSystemWindows()
|
abstract void |
requestLayout()
|
abstract boolean |
requestSendAccessibilityEvent(View arg0, AccessibilityEvent arg1)
|
abstract void |
requestTransparentRegion(View arg0)
|
abstract boolean |
showContextMenuForChild(View arg0)
|
abstract boolean |
showContextMenuForChild(View arg0, float arg1, float arg2)
|
abstract ActionMode |
startActionModeForChild(View arg0, ActionMode.Callback arg1, int arg2)
|
abstract ActionMode |
startActionModeForChild(View arg0, ActionMode.Callback arg1)
|
abstract void |
sendAccessibilityEvent(int arg0)
|
abstract void |
sendAccessibilityEventUnchecked(AccessibilityEvent arg0)
|
abstract void |
invalidateDrawable(Drawable arg0)
|
abstract void |
scheduleDrawable(Drawable arg0, Runnable arg1, long arg2)
|
abstract void |
unscheduleDrawable(Drawable arg0, Runnable arg1)
|
abstract boolean |
onKeyDown(int arg0, KeyEvent arg1)
|
abstract boolean |
onKeyLongPress(int arg0, KeyEvent arg1)
|
abstract boolean |
onKeyMultiple(int arg0, int arg1, KeyEvent arg2)
|
abstract boolean |
onKeyUp(int arg0, KeyEvent arg1)
|
Public Constructors
public NavigationView (Context context)
Parameters
context |
---|
public NavigationView (Context context, GoogleMapOptions googleMapOptions)
Parameters
context | |
---|---|
googleMapOptions |
public NavigationView (Context context, AttributeSet attrs)
Parameters
context | |
---|---|
attrs |
public NavigationView (Context context, AttributeSet attrs, GoogleMapOptions googleMapOptions)
Parameters
context | |
---|---|
attrs | |
googleMapOptions |
public NavigationView (Context context, AttributeSet attrs, int defStyleAttr)
Parameters
context | |
---|---|
attrs | |
defStyleAttr |
public NavigationView (Context context, AttributeSet attrs, int defStyleAttr, GoogleMapOptions googleMapOptions)
Parameters
context | |
---|---|
attrs | |
defStyleAttr | |
googleMapOptions |
Public Methods
public void addOnNavigationUiChangedListener (OnNavigationUiChangedListener listener)
Adds a listener to the list of listeners which will be notified when navigation UI is enabled or disabled.
Navigation UI can be turned on or off via:
setNavigationUiEnabled(boolean)
.GoogleMap.followMyLocation(int)
, which always turns on navigation UI.
Parameters
listener | the listener to be added. |
---|
public void addOnNightModeChangedListener (NavigationView.OnNightModeChangedListener listener)
Adds a listener to the list of listeners which will be notified when the UI enters or exits night mode. This method should only be called on the UI thread.
Note: In order to avoid memory leaks, use removeOnNightModeChangedListener(OnNightModeChangedListener)
to remove the listener that is
no longer required.
Parameters
listener | a listener which will be notified when the UI enters or exits night mode. |
---|
public void addOnRecenterButtonClickedListener (NavigationView.OnRecenterButtonClickedListener listener)
Adds a listener to the list of listeners which will be notified when the recenter button is clicked. This method should only be called on the UI thread.
Note: In order to avoid memory leaks, use removeOnRecenterButtonClickedListener(OnRecenterButtonClickedListener)
to remove the listener
that is no longer required.
Parameters
listener | a listener which will be notified when the recenter button is clicked |
---|
public void getMapAsync (OnMapReadyCallback mapReadyCallback)
Returns a non-null instance of the GoogleMap
, ready to be used.
Note that:
- This method must be called from the main thread.
- The callback will be executed in the main thread.
- The
GoogleMap
object provided by the callback is non-null.
Parameters
mapReadyCallback | The callback object that will be triggered when the map is ready to be used. |
---|
public boolean isNavigationUiEnabled ()
Returns whether navigation UI is enabled.
Navigation UI can be turned on or off via:
setNavigationUiEnabled(boolean)
.GoogleMap.followMyLocation(int)
, which by default turns on navigation UI.
public void onConfigurationChanged (Configuration config)
Parameters
config |
---|
public void onCreate (Bundle savedInstanceState)
Parameters
savedInstanceState |
---|
public void onDestroy ()
public void onPause ()
public void onResume ()
public void onSaveInstanceState (Bundle outState)
Parameters
outState |
---|
public void onStart ()
public void onStop ()
public void onTrimMemory (int level)
Parameters
level |
---|
public void removeOnNavigationUiChangedListener (OnNavigationUiChangedListener listener)
Removes a listener added via addOnNavigationUiChangedListener(OnNavigationUiChangedListener)
.
Parameters
listener | the listener to be removed. |
---|
public void removeOnNightModeChangedListener (NavigationView.OnNightModeChangedListener listener)
Removes a listener added via addOnNightModeChangedListener(OnNightModeChangedListener)
.
Parameters
listener | added via addOnRecenterButtonClickedListener(OnRecenterButtonClickedListener) .
|
---|
public void removeOnRecenterButtonClickedListener (NavigationView.OnRecenterButtonClickedListener listener)
Removes a listener added via addOnRecenterButtonClickedListener(OnRecenterButtonClickedListener)
.
Parameters
listener | added via addOnRecenterButtonClickedListener(OnRecenterButtonClickedListener) .
|
---|
public void setCalloutInfoDisplayModeOverride (NavigationCalloutDisplayMode calloutInfoDisplayModeOverride)
Overrides default display mode for navigation callouts. Passing null resets the default display mode.
Parameters
calloutInfoDisplayModeOverride | the new desired display mode. |
---|
public void setCalloutInfoFormatOverride (RouteCalloutInfoFormat calloutInfoFormatOverride)
Sets the callout info format mode for route callouts. If this method is not called, callouts will follow the behavior as defined by RouteCalloutInfoFormat.DEFAULT.
Parameters
calloutInfoFormatOverride | the new desired callout format. |
---|
public void setCustomControl (View control, CustomControlPosition position)
Sets a custom control view which will appear at the given position in the navigation UI. If any custom control already exists at the given position it will be replaced. Calling this method with a null control value will remove the custom control at the given position. If the control has already been added at a different position or already has a parent, it will be ignored. This method should only be called on the UI thread.
Parameters
control | a view that will be positioned within the navigation UI |
---|---|
position | determines where the custom control will be placed in the UI relative to built-in controls. |
public void setEtaCardEnabled (boolean enabled)
Sets whether the ETA card is visible during navigation. This method should only be called on the UI thread.
Parameters
enabled |
---|
public void setHeaderEnabled (boolean enabled)
Sets whether the turn-by-turn navigation header is visible during navigation. This method should only be called on the UI thread.
Parameters
enabled |
---|
public void setNavigationUiEnabled (boolean enableNavigationUi)
Enables or disables navigation UI.
When navigation UI is enabled, the view is in a navigation-ready state to focus on providing navigation experience. Navigation oriented features will be available under this mode. For example: the camera follows the user’s location, night mode support, navigation focused tile style, speedometer, high detail map style, etc. In contrast, features that are maps focused and conflict with navigation will be unavailable. For example: indoor, zoom control buttons(use gestures instead), my location button.
When navigation UI is disabled, the view will be in a maps focused state where these
navigation focused features will be unavailable and those maps focused features would be
available. However, if there is an ongoing guided navigation session, it will continue in the
background. Guided navigation must be stopped by calling Navigator.stopGuidance()
.
Navigation UI will also be enabled when GoogleMap.followMyLocation(int)
is called.
This call might be asynchronous. For example, when tries to enable navigation UI but no
Navigator
has not been created. In this case, navigation UI will be enabled only after
an instance of Navigator
is created. Uses addOnNavigationUiChangedListener(OnNavigationUiChangedListener)
to listen to navigation UI
change result.
Parameters
enableNavigationUi | whether to enable navigation UI. |
---|
public void setRecenterButtonEnabled (boolean enabled)
Sets whether the re-center button should be shown. This method should only be called on the UI thread.
Parameters
enabled |
---|
public void setSpeedLimitIconEnabled (boolean enabled)
Specifies whether the speed limit icon is shown. Only call this method on the UI thread. By default, the speed limit icon is not shown.
When enabled, a speed limit icon that indicates the speed limit of the road appears in the bottom start corner during guidance. The icon only appears in locations where reliable speed limit data is available. When speedometer icon is visible, they are attached.
If the recenter button is enabled, the speed limit icon is temporarily hidden when the recenter button is shown.
Note: Drivers must follow all posted signs on the road, and use the speed limit icon only as a reference. The accuracy of speed limit data cannot be guaranteed. You may report inaccuracies in our speed limit data by filing a case in the Google Cloud Support Portal.
Parameters
enabled |
---|
public void setSpeedometerEnabled (boolean enabled)
Specifies whether the speedometer is shown. Only call this method on the UI thread. By default, the speedometer is not shown.
When enabled, a speedometer that indicates the vehicle speed appears in the bottom start corner during guidance. When speed limit icon is visible, they are attached, and then speedometer can have different colors for text and background, depending on the speeding severity.
Enabling speedometer also enables the speed limit icon altogether, however you can use
setSpeedLimitIconEnabled(boolean)
to disable/enable speed the limit icon separately.
When the recenter button is enabled, the speedometer is temporarily hidden when the recenter button displays.
Parameters
enabled |
---|
public void setSpeedometerUiOptions (SpeedometerUiOptions speedometerUiOptions)
Sets the speedometer UI configuration SpeedometerUiOptions
based on SpeedAlertSeverity
. Only call this method on the UI thread.
By setting a null
SpeedometerUiOptions
, you are clearing the previous one if
set. When no SpeedometerUiOptions
is configured, speedometer UI fallbacks to NavSDK
default configurations for speed alerts of different SpeedAlertSeverity
:
SpeedAlertSeverity.MINOR
speed alert in day mode: red text in white backgroundSpeedAlertSeverity.MINOR
speed alert in night mode: red text in dark backgroundSpeedAlertSeverity.MAJOR
speed alert in day mode: white text in red backgroundSpeedAlertSeverity.MAJOR
speed alert in night mode: white text in red background
Parameters
speedometerUiOptions |
---|
public void setStylingOptions (StylingOptions stylingOptions)
Sets some styling options for the navigation UI. This method should only be called on the UI thread.
Parameters
stylingOptions |
---|
public void setTrafficIncidentCardsEnabled (boolean enabled)
Sets whether traffic incident cards should be shown when the user clicks on a traffic incident icon. This method should only be called on the UI thread.
Note that when guided navigation is running, traffic incident details are shown in prompts.
To disable traffic incident details during navigation, setTrafficPromptsEnabled(boolean)
should
be used instead.
Parameters
enabled |
---|
See Also
public void setTrafficPromptsEnabled (boolean enabled)
Sets whether traffic prompts should be shown. Traffic prompts periodically appear to update the user on traffic conditions during navigation. This method should only be called on the UI thread.
Parameters
enabled |
---|
public void setTripProgressBarEnabled (boolean enabled)
Sets whether the trip progress bar is visible during navigation. This method should only be called on the UI thread.
THIS API IS A BETA RELEASE.
IT IS SUBJECT TO CHANGE AND BACKWARDS COMPATIBILITY IS NOT GUARANTEED
Parameters
enabled |
---|
public void showRouteOverview ()
Pans and zooms the map to show an overview of the remaining route. This will temporarily prevent the camera from following the user's position.
The camera can be reset to follow the user using GoogleMap.followMyLocation(int)
.