Một thành phần hiển thị cho thấy bản đồ để điều hướng.
Người dùng lớp này phải chuyển tiếp tất cả phương thức vòng đời từ Activity
hoặc Fragment
chứa thành phần hiển thị này sang các phương thức tương ứng trong lớp này. Cụ thể, bạn phải chuyển tiếp trên các phương thức sau:
onCreate(Bundle)
onStart()
onResume()
onPause()
onStop()
onDestroy()
onConfigurationChanged(Configuration)
onSaveInstanceState(Bundle)
onTrimMemory(int)
Nếu NavView được thêm vào sau khi Activity
hoặc Fragment
mẹ đã trải qua vòng đời tạo, bạn phải gọi onCreate(Bundle)
,
onStart()
và onResume()
theo cách thủ công để khởi chạy đúng cách. Tương tự, nếu NavView bị tách khỏi Activity
hoặc Fragment
gốc, bạn phải gọi onPause()
, onStop()
và onDestroy()
theo cách thủ công để tránh rò rỉ dữ liệu.
Lưu ý: Bạn không nên thêm trẻ em vào chế độ xem này.
Tất cả lệnh gọi đến NavView phải được thực hiện trên luồng giao diện người dùng.
Tóm tắt lớp lồng ghép
giao diện | NavigationView.OnNightModeChangedListener | Giao diện cho một trình nghe sẽ nhận được thông báo khi giao diện người dùng chuyển sang hoặc thoát khỏi "chế độ ban đêm". | |
giao diện | NavigationView.OnRecenterButtonClickedListener | Giao diện của trình nghe sẽ được thông báo khi người dùng nhấp vào nút căn giữa. |
Tóm tắt hằng số kế thừa
int | Ở TRÊN | |
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 | BÊN dưới | |
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_LIVE_REGION_ASSERTIVE | |
int | ACCESSIBILITY_LIVE_REGION_NONE | |
int | ACCESSIBILITY_LIVE_REGION_POLITE | |
int | AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS | |
Chuỗi | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE | |
Chuỗi | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY | |
Chuỗi | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH | |
Chuỗi | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR | |
Chuỗi | AUTOFILL_HINT_CREDIT_CARD_NUMBER | |
Chuỗi | AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE | |
Chuỗi | AUTOFILL_HINT_EMAIL_ADDRESS | |
Chuỗi | AUTOFILL_HINT_NAME | |
Chuỗi | AUTOFILL_HINT_PASSWORD | |
Chuỗi | AUTOFILL_HINT_PHONE | |
Chuỗi | AUTOFILL_HINT_POSTAL_ADDRESS | |
Chuỗi | AUTOFILL_HINT_POSTAL_CODE | |
Chuỗi | AUTOFILL_HINT_USERNAME | |
int | AUTOFILL_TYPE_DATE | |
int | AUTOFILL_TYPE_LIST | |
int | AUTOFILL_TYPE_NONE | |
int | AUTOFILL_TYPE_TEXT | |
int | AUTOFILL_TYPE_TOGGLE | |
int | DRAG_FLAG_GLOBAL | |
int | DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION | |
int | DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION | |
int | DRAG_FLAG_GLOBAL_URI_READ | |
int | DRAG_FLAG_GLOBAL_URI_WRITE | |
int | DRAG_FLAG_OPAQUE | |
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 | KHÔNG TỒN TẠI | |
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 | ẨN | |
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 | |
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_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 | HIỆN |
Tóm tắt về trường kế thừa
công khai tĩnh cuối cùng Thuộc tính<View, Float> | ALPHA | |
công khai tĩnh cuối cùng Thuộc tính<View, Float> | XOÁ | |
công khai tĩnh cuối cùng Thuộc tính<View, Float> | ROTATION_X | |
công khai tĩnh cuối cùng Thuộc tính<View, Float> | ROTATION_Y | |
công khai tĩnh cuối cùng Thuộc tính<View, Float> | SCALE_X | |
công khai tĩnh cuối cùng Thuộc tính<View, Float> | SCALE_Y | |
công khai tĩnh cuối cùng Thuộc tính<View, Float> | TRANSLATION_X | |
công khai tĩnh cuối cùng Thuộc tính<View, Float> | TRANSLATION_Y | |
công khai tĩnh cuối cùng Thuộc tính<View, Float> | TRANSLATION_Z | |
công khai tĩnh cuối cùng Thuộc tính<View, Float> | X | |
công khai tĩnh cuối cùng Thuộc tính<View, Float> | Y | |
công khai tĩnh cuối cùng Thuộc tính<View, Float> | Z |
Tóm tắt về hàm khởi tạo công khai
NavigationView(Ngữ cảnh)
|
|
NavigationView(Ngữ cảnh theo bối cảnh, thuộc tính AttributesSet)
|
|
NavigationView(Ngữ cảnh theo bối cảnh, thuộc tính AttributesSet, int defStyleAttr)
|
Tóm tắt phương thức công khai
Máy ảnh |
getCamera()
Trả về đối tượng máy ảnh có thể được dùng để thay đổi khung nhìn của bản đồ.
|
NavigationMap |
getMap()
Trả về đối tượng có thể được dùng để thêm nội dung vào bản đồ.
|
void |
onConfigurationChanged(Cấu hình cấu hình)
|
void |
onCreate(Gói savedInstanceState)
|
void | |
void |
onPause()
|
void |
onResume()
|
void |
onSaveInstanceState(Gói outState)
|
void |
Hàm onStart()
|
void |
onStop()
|
void |
onTrimMemory(cấp độ int)
|
void |
setCalloutInfoDisplayModeOverride(NavigationCalloutDisplayMode calloutInfoDisplayModeOverride)
Ghi đè chế độ hiển thị mặc định cho chú thích ETA trong khi điều hướng.
|
void |
setCalloutInfoFormatOverride(RouteCalloutInfoFormat calloutInfoFormatOverride)
Đặt chế độ định dạng thông tin chú thích cho chú thích tuyến.
|
void |
setCompassEnabled(đã bật boolean)
Đặt xem la bàn có hiển thị hay không.
|
void |
setCustomControl(Kiểm soát chế độ xem, vị trí CustomControlPosition)
Đặt khung hiển thị điều khiển tuỳ chỉnh sẽ xuất hiện ở một vị trí nhất định trong giao diện người dùng điều hướng.
|
void |
setEtaCardEnabled(đã bật boolean)
Đặt liệu thẻ ETA có hiển thị trong khi điều hướng hay không.
|
void |
setForceNightMode(int NightMode)
Đặt
ForceNightMode hiện tại. |
void |
setHeaderEnabled(đã bật boolean)
Thiết lập liệu tiêu đề điều hướng từng chặng có hiển thị trong khi điều hướng hay không.
|
void |
setOnNightModeChangedListener(NavigationView.OnNightModeChangedListener)
Đặt một trình nghe sẽ được thông báo ngay lập tức về trạng thái "chế độ ban đêm" hiện tại và mỗi khi giao diện người dùng chuyển sang hoặc thoát khỏi "chế độ ban đêm".
|
void |
setOnRecenterButtonClickedListener(NavigationView.OnRecenterButtonClickedListener trình nghe)
Thiết lập trình nghe sẽ được thông báo khi người dùng nhấp vào nút căn giữa.
|
void |
setRecenterButtonEnabled(đã bật boolean)
Thiết lập có hiển thị nút căn giữa lại hay không.
|
void |
setSpeedAlertOptions(SpeedAlertOptions speedAlertOptions)
Đặt
SpeedAlertOptions để tuỳ chỉnh các ngưỡng kích hoạt cho các SpeedAlertSeverity . |
void |
setSpeedLimitIconEnabled(đã bật boolean)
Chỉ định xem biểu tượng giới hạn tốc độ có xuất hiện hay không.
|
void |
setSpeedometerIconEnabled(đã bật boolean)
Chỉ định xem biểu tượng đồng hồ tốc độ có xuất hiện hay không.
|
void |
setSpeedometerUiOptions(SpeedometerUiOptions SpeedometerUiOptions)
Đặt cấu hình giao diện người dùng cho đồng hồ tốc độ
SpeedometerUiOptions dựa trên SpeedAlertSeverity . |
void |
setStylingOptions(StylingOptions StyleOptions)
Đặt một số tuỳ chọn định kiểu cho giao diện người dùng điều hướng.
|
void |
setTrafficIncidentCardsEnabled(đã bật boolean)
Thiết lập xem có hiển thị thẻ sự cố giao thông khi người dùng nhấp vào biểu tượng sự cố giao thông hay không.
|
void |
setTrafficPromptsEnabled(đã bật boolean)
Đặt có hiển thị lời nhắc về lưu lượng truy cập hay không.
|
Tóm tắt phương thức kế thừa
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 |
addFocusables(ArrayList<View> arg0, int arg1, int arg2)
|
void |
addKeyboardNavigationClusters(Bộ sưu tập<View> arg0, int arg1)
|
boolean |
addStatesFromChildren()
|
void |
addTouchables(ArrayList<View> arg0)
|
void |
addView(Xem arg0, ViewGroup.LayoutParams arg1)
|
void |
addView(Xem arg0, int arg1)
|
void |
addView(Xem arg0, int arg1, ViewGroup.LayoutParams arg2)
|
void |
addView(Xem arg0)
|
void |
addView(Xem arg0, int arg1, int arg2)
|
void |
bringChildToFront(Xem arg0)
|
void |
childDrawableStateChanged(Xem arg0)
|
void |
childHasTransientStateChanged(View arg0, boolean arg1)
|
void |
clearChildFocus(Xem arg0)
|
void |
clearDisappearingChildren()
|
void |
clearFocus()
|
WindowInsets |
dispatchApplyWindowInsets(WindowInsets arg0)
|
boolean |
dispatchCapturedPointerEvent(MotionEvent arg0)
|
void |
dispatchConfigurationChanged(Cấu hình arg0)
|
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 |
dispatchSetActivated(boolean arg0)
|
void |
dispatchSetSelected(boolean arg0)
|
void |
dispatchStartTemporaryDetach()
|
void |
dispatchSystemUiVisibilityChanged(int arg0)
|
boolean |
dispatchTouchEvent(MotionEvent arg0)
|
boolean |
dispatchTrackballEvent(MotionEvent arg0)
|
boolean |
dispatchUnhandledMove(Xem arg0, int arg1)
|
void |
dispatchWindowFocusChanged(boolean arg0)
|
void |
dispatchWindowSystemUiVisibilityChanged(int arg0)
|
void |
dispatchWindowVisibilityChanged(int arg0)
|
void |
endViewTransition(Xem arg0)
|
Xem |
findFocus()
|
void |
findViewsWithText(ArrayList<View> arg0, CharSequence arg1, int arg2)
|
Xem |
focusSearch(Xem arg0, int arg1)
|
void |
focusableViewAvailable(Xem arg0)
|
boolean |
gatherTransparentRegion(Vùng arg0)
|
ViewGroup.LayoutParams |
generateLayoutParams(attributeSet arg0)
|
CharSequence |
getAccessibilityClassName()
|
Xem |
getChildAt(int arg0)
|
int |
getChildCount()
|
cuối cùng int |
getChildDrawingOrder(int arg0)
|
int |
getChildMeasureSpec(int arg0, int arg1, int arg2)
|
boolean |
getChildVisibleRect(Xem arg0, Rect arg1, Point arg2)
|
boolean |
getClipChildren()
|
boolean |
getClipToPadding()
|
int |
getDescendantFocusability()
|
Xem |
getFocusedChild()
|
LayoutAnimationController |
getLayoutAnimation()
|
Animation.AnimationListener |
getLayoutAnimationListener()
|
int |
getLayoutMode()
|
LayoutTransition |
getLayoutTransition()
|
int |
getNestedScrollAxes()
|
ViewOverlay |
getOverlay()
|
int |
getPersistentDrawingCache()
|
boolean |
getTouchscreenBlocksFocus()
|
boolean |
hasFocus()
|
boolean |
hasTransientState()
|
int |
indexOfChild(Xem arg0)
|
cuối cùng vô hiệu |
invalidateChild(Xem arg0, Rect arg1)
|
ViewParent |
invalidateChildInParent(int[] arg0, Rect arg1)
|
boolean |
isAlwaysDrawnWithCacheEnabled()
|
boolean |
isAnimationCacheEnabled()
|
boolean |
isLayoutSuppressed()
|
boolean |
isMotionEventSplittingEnabled()
|
boolean |
isTransitionGroup()
|
void |
jumpDrawablesToCurrentState()
|
cuối cùng vô hiệu |
layout(int arg0, int arg1, int arg2, int arg3)
|
void |
notifySubtreeAccessibilityStateChanged(Xem arg0, Chế độ xem arg1, int arg2)
|
cuối cùng vô hiệu |
offsetDescendantRectToMyCoords(Xem arg0, Rect arg1)
|
cuối cùng vô hiệu |
offsetRectIntoDescendantCoords(Xem arg0, Rect arg1)
|
void |
onDescendantInvalidated(Xem arg0, Xem arg1)
|
boolean |
onInterceptHoverEvent(MotionEvent arg0)
|
boolean |
onInterceptTouchEvent(MotionEvent arg0)
|
boolean |
onNestedFling(View arg0, float arg1, float arg2, boolean arg3)
|
boolean |
onNestedPreFling(Xem arg0, float arg1, float arg2)
|
boolean |
onNestedPrePerformAccessibilityAction(Xem arg0, int arg1, Bundle arg2)
|
void |
onNestedPreScroll(Xem arg0, int arg1, int arg2, int[] arg3)
|
void |
onNestedScroll(Xem arg0, int arg1, int arg2, int arg3, int arg4)
|
void |
onNestedScrollAccepted(Xem arg0, Xem arg1, int arg2)
|
boolean |
onRequestSendAccessibilityEvent(Xem arg0, AccessibilityEvent arg1)
|
PointerIcon |
onResolvePointerIcon(MotionEvent arg0, int arg1)
|
boolean |
onStartNestedScroll(Xem arg0, Chế độ xem arg1, int arg2)
|
void |
onStopNestedScroll(Xem arg0)
|
void |
onViewAdded(Xem arg0)
|
void |
onViewRemoved(Xem arg0)
|
void |
recomputeViewAttributes(Xem arg0)
|
void |
removeAllViews()
|
void |
removeAllViewsInLayout()
|
void |
removeView(Xem arg0)
|
void |
removeViewAt(int arg0)
|
void |
removeViewInLayout(Xem arg0)
|
void |
removeViews(int arg0, int arg1)
|
void |
removeViewsInLayout(int arg0, int arg1)
|
void |
requestChildFocus(Xem đối số arg0, Xem đối số 1)
|
boolean |
requestChildRectangleOnScreen(View arg0, Rect arg1, boolean arg2)
|
void |
requestDisallowInterceptTouchEvent(boolean arg0)
|
boolean |
requestFocus(int arg0, Rect arg1)
|
boolean |
requestSendAccessibilityEvent(Xem arg0, AccessibilityEvent arg1)
|
void |
requestTransparentRegion(Xem 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.OnKiểuChangeListener arg0)
|
void |
setPersistentDrawingCache(int arg0)
|
void |
setTouchscreenBlocksFocus(boolean arg0)
|
void |
setTransitionGroup(boolean arg0)
|
boolean |
shouldDelayChildPressedState()
|
boolean |
showContextMenuForChild(Xem arg0, float arg1, float arg2)
|
boolean |
showContextMenuForChild(Xem arg0)
|
ActionMode |
startActionModeForChild(Xem arg0, ActionMode.Callback arg1, int arg2)
|
ActionMode |
startActionModeForChild(Xem arg0, ActionMode.Callback arg1)
|
void |
startLayoutAnimation()
|
void |
startViewTransition(Xem arg0)
|
void |
suppressLayout(boolean arg0)
|
void |
updateViewLayout(Xem 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(Bộ sưu tập<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 |
tự động điền(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)
|
cuối cùng vô hiệu |
cancelDragAndDrop()
|
void |
cancelLongPress()
|
cuối cùng vô hiệu |
cancelPendingInputEvents()
|
boolean |
checkInputConnectionProxy(Xem arg0)
|
void |
clearAnimation()
|
void |
clearFocus()
|
int |
combineMeasuredStates(int arg0, int arg1)
|
void |
computeScroll()
|
WindowInsets |
computeSystemWindowInsets(WindowInsets arg0, Chỉnh sửa arg1)
|
AccessibilityNodeInfo |
createAccessibilityNodeInfo()
|
void |
createContextMenu(ContextMenu arg0)
|
void |
destroyDrawingCache()
|
WindowInsets |
dispatchApplyWindowInsets(WindowInsets arg0)
|
boolean |
dispatchCapturedPointerEvent(MotionEvent arg0)
|
void |
dispatchConfigurationChanged(Cấu hình arg0)
|
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(nổi 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 |
dispatchStartTemporaryDetach()
|
void |
dispatchSystemUiVisibilityChanged(int arg0)
|
boolean |
dispatchTouchEvent(MotionEvent arg0)
|
boolean |
dispatchTrackballEvent(MotionEvent arg0)
|
boolean |
dispatchUnhandledMove(Xem arg0, int arg1)
|
void |
dispatchWindowFocusChanged(boolean arg0)
|
void |
dispatchWindowSystemUiVisibilityChanged(int arg0)
|
void |
dispatchWindowVisibilityChanged(int arg0)
|
void |
draw(Canvas arg0)
|
void |
drawableHotspotChanged(float arg0, float arg1)
|
Xem |
findFocus()
|
cuối cùng <T mở rộng Chế độ xem> T |
findViewById(int arg0)
|
cuối cùng <T mở rộng Chế độ xem> T |
findViewWithTag(Đối tượng arg0)
|
void |
findViewsWithText(ArrayList<View> arg0, CharSequence arg1, int arg2)
|
Xem |
focusSearch(int arg0)
|
void |
forceHasOverlappingRendering(boolean arg0)
|
void |
forceLayout()
|
int |
generateViewId()
|
CharSequence |
getAccessibilityClassName()
|
View.AccessibilityDelegate |
getAccessibilityDelegate()
|
int |
getAccessibilityLiveRegion()
|
AccessibilityNodeProvider |
getAccessibilityNodeProvider()
|
CharSequence |
getAccessibilityPaneTitle()
|
int |
getAccessibilityTraversalAfter()
|
int |
getAccessibilityTraversalBefore()
|
float |
getAlpha()
|
Hoạt ảnh |
getAnimation()
|
Ma trận |
getAnimationMatrix()
|
IBinder |
getApplicationWindowToken()
|
int[] |
getAttributeResolutionStack(int arg0)
|
Bản đồ<Số nguyên, Số nguyên> |
getAttributeSourceResourceMap()
|
String[] (Chuỗi) |
getAutofillHints()
|
cuối cùng Mã tự động điền |
getAutofillId()
|
int |
getAutofillType()
|
AutofillValue |
getAutofillValue()
|
Đối tượng có thể vẽ |
getBackground()
|
BlendMode |
getBackgroundTintBlendMode()
|
ColorStateList |
getBackgroundTintList()
|
PorterDuff.Mode |
getBackgroundTintMode()
|
int |
getBaseline()
|
cuối cùng int |
getBottom()
|
float |
getCameraDistance()
|
boolean |
getClipBounds(Rect arg0)
|
Hình chữ nhật |
getClipBounds()
|
giá trị boolean cuối cùng |
getClipToOutline()
|
cuối cùng ContentCaptureSession |
getContentCaptureSession()
|
CharSequence |
getContentDescription()
|
cuối cùng Ngữ cảnh |
getContext()
|
giá trị boolean cuối cùng |
getDefaultFocusHighlightEnabled()
|
int |
getDefaultSize(int arg0, int arg1)
|
Mạng Hiển thị |
getDisplay()
|
cuối cùng 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)
|
Đối tượng có thể vẽ |
getForeground()
|
int |
getForegroundGravity()
|
BlendMode |
getForegroundTintBlendMode()
|
ColorStateList |
getForegroundTintList()
|
PorterDuff.Mode |
getForegroundTintMode()
|
giá trị boolean cuối cùng |
getGlobalVisibleRect(Rect arg0)
|
boolean |
getGlobalVisibleRect(Rect arg0, Point arg1)
|
Trình xử lý |
getHandler()
|
giá trị boolean cuối cùng |
getHasOverlappingRendering()
|
cuối cùng int |
getHeight()
|
void |
getHitRect(Rect arg0)
|
int |
getHorizontalFadingEdgeLength()
|
Đối tượng có thể vẽ |
getHorizontalScrollbarThumbDrawable()
|
Đối tượng có thể vẽ |
getHorizontalScrollbarTrackDrawable()
|
int |
getId()
|
int |
getImportantForAccessibility()
|
int |
getImportantForAutofill()
|
boolean |
getKeepScreenOn()
|
KeyEvent.DispatcherState |
getKeyDispatcherState()
|
int |
getLabelFor()
|
int |
getLayerType()
|
int |
getLayoutDirection()
|
ViewGroup.LayoutParams |
getLayoutParams()
|
cuối cùng int |
getLeft()
|
giá trị boolean cuối cùng |
getLocalVisibleRect(Rect arg0)
|
void |
getLocationInSurface(int[] arg0)
|
void |
getLocationInWindow(int[] arg0)
|
void |
getLocationOnScreen(int[] arg0)
|
Ma trận |
getMatrix()
|
cuối cùng int |
getMeasuredHeight()
|
cuối cùng int |
getMeasuredHeightAndState()
|
cuối cùng int |
getMeasuredState()
|
cuối cùng int |
getMeasuredWidth()
|
cuối cùng 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()
|
cuối cùng ViewParent |
getParent()
|
ViewParent |
getParentForAccessibility()
|
float |
getPivotX()
|
float |
getPivotY()
|
PointerIcon |
getPointerIcon()
|
Tài nguyên |
getResources (Tài nguyên)
|
giá trị boolean cuối cùng |
getRevealOnFocusHint()
|
cuối cùng int |
Hàm getRight()
|
Xem |
getRootView()
|
WindowInsets |
getRootWindowInsets()
|
float |
getRotation()
|
float |
getRotationX()
|
float |
getRotationY()
|
float |
getScaleX()
|
float |
getScaleY()
|
int |
getScrollBarDefaultDelayBeforeFade()
|
int |
getScrollBarFadeDuration()
|
int |
getScrollBarSize()
|
int |
getScrollBarStyle()
|
int |
getScrollIndicators()
|
cuối cùng int |
getScrollX()
|
cuối cùng int |
getScrollY()
|
int |
getSolidColor()
|
int |
getSourceLayoutResId()
|
StateListAnimator |
getStateListAnimator()
|
List<Rect> |
getSystemGestureExclusionRects()
|
int |
getSystemUiVisibility()
|
Đối tượng |
Hàm getTag()
|
Đối tượng |
getTag(int arg0)
|
int |
getTextAlignment()
|
int |
getTextDirection()
|
CharSequence |
getTooltipText()
|
cuối cùng int |
getTop()
|
TouchDelegate |
getTouchDelegate()
|
ArrayList<View> |
getTouchables()
|
float |
getTransitionAlpha()
|
Chuỗi |
getTransitionName()
|
float |
getTranslationX()
|
float |
getTranslationY()
|
float |
getTranslationZ()
|
long |
getUniqueDrawingId()
|
int |
getVerticalFadingEdgeLength()
|
int |
getVerticalScrollbarPosition()
|
Đối tượng có thể vẽ |
getVerticalScrollbarThumbDrawable()
|
Đối tượng có thể vẽ |
getVerticalScrollbarTrackDrawable()
|
int |
getVerticalScrollbarWidth()
|
ViewTreeObserver |
getViewTreeObserver()
|
int |
getVisibility()
|
cuối cùng int |
getWidth()
|
WindowId |
getWindowId()
|
int |
getWindowSystemUiVisibility()
|
IBinder |
getWindowToken()
|
int |
getWindowVisibility()
|
void |
getWindowVisibleDisplayFrame(Rect arg0)
|
float |
Hàm getX()
|
float |
getY()
|
float |
Hàm getZ()
|
boolean |
hasExplicitFocusable()
|
boolean |
hasFocus()
|
boolean |
hasFocusable()
|
boolean |
hasNestedScrollingParent()
|
boolean |
hasOnClickListeners()
|
boolean |
hasOverlappingRendering()
|
boolean |
hasPointerCapture()
|
boolean |
hasTransientState()
|
boolean |
hasWindowFocus()
|
Chế độ xem tĩnh |
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(Đối số có thể vẽ)
|
void |
invalidateOutline()
|
boolean |
isAccessibilityFocused()
|
boolean |
isAccessibilityHeading()
|
boolean |
isActivated()
|
boolean |
isAttachedToWindow()
|
boolean |
isClickable()
|
boolean |
isContextClickable()
|
boolean |
isDirty()
|
boolean |
isDrawingCacheEnabled()
|
boolean |
isDuplicateParentStateEnabled()
|
boolean |
isEnabled()
|
giá trị boolean cuối cùng |
isFocusable()
|
giá trị boolean cuối cùng |
isFocusableInTouchMode()
|
boolean |
isFocused()
|
giá trị boolean cuối cùng |
isFocusedByDefault()
|
boolean |
isForceDarkAllowed()
|
boolean |
isHapticFeedbackEnabled()
|
boolean |
isHardwareAccelerated()
|
boolean |
isHorizontalFadingEdgeEnabled()
|
boolean |
isHorizontalScrollBarEnabled()
|
boolean |
isHovered()
|
boolean |
isImportantForAccessibility()
|
giá trị boolean cuối cùng |
isImportantForAutofill()
|
boolean |
isInEditMode()
|
boolean |
isInLayout()
|
boolean |
isInTouchMode()
|
giá trị boolean cuối cùng |
isKeyboardNavigationCluster()
|
boolean |
isLaidOut()
|
boolean |
isLayoutDirectionResolved()
|
boolean |
isLayoutRequested()
|
boolean |
isLongClickable()
|
boolean |
isNestedScrollingEnabled()
|
boolean |
isOpaque()
|
boolean |
isPaddingRelative()
|
boolean |
isPivotSet()
|
boolean |
isPressed()
|
boolean |
isSaveEnabled()
|
boolean |
isSaveFromParentEnabled()
|
boolean |
isScreenReaderFocusable()
|
boolean |
isScrollContainer()
|
boolean |
isScrollbarFadingEnabled()
|
boolean |
Hàm isSelected()
|
boolean |
isShown()
|
boolean |
isSoundEffectsEnabled()
|
giá trị boolean cuối cùng |
isTemporarilyDetached()
|
boolean |
isTextAlignmentResolved()
|
boolean |
isTextDirectionResolved()
|
boolean |
isVerticalFadingEdgeEnabled()
|
boolean |
isVerticalScrollBarEnabled()
|
boolean |
isVisibleToUserForAutofill(int arg0)
|
void |
jumpDrawablesToCurrentState()
|
Xem |
keyboardNavigationClusterSearch(Xem arg0, int arg1)
|
void |
layout(int arg0, int arg1, int arg2, int arg3)
|
cuối cùng vô hiệu |
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)
|
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 |
onProvideStructure(ViewStructure arg0)
|
void |
onProvideVirtualStructure(ViewStructure arg0)
|
PointerIcon |
onResolvePointerIcon(MotionEvent arg0, int arg1)
|
void |
onRtlPropertiesChanged(int arg0)
|
void |
onScreenStateChanged(int arg0)
|
void |
onStartTemporaryDetach()
|
boolean |
onTouchEvent(MotionEvent arg0)
|
boolean |
onTrackballEvent(MotionEvent arg0)
|
void |
onVisibilityAggregated(boolean arg0)
|
void |
onWindowFocusChanged(boolean arg0)
|
void |
onWindowSystemUiVisibilityChanged(int arg0)
|
boolean |
performAccessibilityAction(int arg0, Gói 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()
|
void |
playSoundEffect(int arg0)
|
boolean |
post(Runnable arg0)
|
boolean |
postDelayed(Đối số có thể chạy được, đối số dài 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(Đối số có thể chạy được)
|
void |
postOnAnimationDelayed(đối số có thể chạy được, đối số dài arg1)
|
void |
refreshDrawableState()
|
void |
releasePointerCapture()
|
boolean |
removeCallbacks(Đối số có thể chạy được arg0)
|
void |
removeOnAttachStateChangeListener(View.OnAttachStateChangeListener arg0)
|
void |
removeOnLayoutChangeListener(View.OnLayoutChangeListener arg0)
|
void |
removeOnUnhandledKeyEventListener(View.OnUnhandledKeyEventListener arg0)
|
void |
requestApplyInsets()
|
void |
requestFitSystemWindows()
|
giá trị boolean cuối cùng |
requestFocus(int arg0)
|
giá trị boolean cuối cùng |
requestFocus()
|
boolean |
requestFocus(int arg0, Rect arg1)
|
giá trị boolean cuối cùng |
requestFocusFromTouch()
|
void |
requestLayout()
|
void |
requestPointerCapture()
|
boolean |
requestRectangleOnScreen(Rect arg0)
|
boolean |
requestRectangleOnScreen(Rect arg0, boolean arg1)
|
cuối cùng vô hiệu |
requestUnbufferedDispatch(MotionEvent arg0)
|
cuối cùng <T mở rộng Chế độ xem> T |
requireViewById(int arg0)
|
void |
resetPivot()
|
int |
resolveSize(int arg0, int arg1)
|
int |
resolveSizeAndState(int arg0, int arg1, int arg2)
|
boolean |
restoreDefaultFocus()
|
void |
restoreHierarchyState(SparseArray<Parcelable> arg0)
|
cuối cùng vô hiệu |
saveAttributeDataForStyleable(Ngữ cảnh arg0, int[] arg1, AttributesSet arg2, TypedArray arg3, int arg4, int arg5)
|
void |
saveHierarchyState(SparseArray<Parcelable> arg0)
|
void |
scheduleDrawable(Đối số có thể vẽ: Đối số có thể chạy 1, đối số dài arg2)
|
void |
scrollBy(int arg0, int arg1)
|
void |
scrollTo(int arg0, int arg1)
|
void |
sendAccessibilityEvent(int arg0)
|
void |
sendAccessibilityEventUnchecked(AccessibilityEvent 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 |
setAlpha(số thực arg0)
|
void |
setAnimation(Ảnh động arg0)
|
void |
setAnimationMatrix(Ma trận arg0)
|
void |
setAutofillHints(Chuỗi... arg0)
|
void |
setAutofillId(AutofillId arg0)
|
void |
setBackground(Đối số có thể vẽ)
|
void |
setBackgroundColor(int arg0)
|
void |
setBackgroundDrawable(Đối số có thể vẽ)
|
void |
setBackgroundResource(int arg0)
|
void |
setBackgroundTintBlendMode(BlendMode arg0)
|
void |
setBackgroundTintList(ColorStateList arg0)
|
void |
setBackgroundTintMode(PorterDuff.Mode arg0)
|
cuối cùng vô hiệu |
setBottom(int arg0)
|
void |
setCameraDistance(số thực dấu phẩy động arg0)
|
void |
setClickable(boolean arg0)
|
void |
setClipBounds(Rect arg0)
|
void |
setClipToOutline(boolean arg0)
|
void |
setContentCaptureSession(ContentCaptureSession arg0)
|
void |
setContentDescription(CharSequence 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(số thực 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(Đối số có thể vẽ)
|
void |
setForegroundGravity(int arg0)
|
void |
setForegroundTintBlendMode(BlendMode arg0)
|
void |
setForegroundTintList(ColorStateList arg0)
|
void |
setForegroundTintMode(PorterDuff.Mode arg0)
|
void |
setHapticFeedbackEnabled(boolean arg0)
|
void |
setHasTransientState(boolean arg0)
|
void |
setHorizontalFadingEdgeEnabled(boolean arg0)
|
void |
setHorizontalScrollBarEnabled(boolean arg0)
|
void |
setHorizontalScrollbarThumbDrawable(Đối số có thể vẽ)
|
void |
setHorizontalScrollbarTrackDrawable(Đối số có thể vẽ)
|
void |
setHovered(boolean arg0)
|
void |
setId(int arg0)
|
void |
setImportantForAccessibility(int arg0)
|
void |
setImportantForAutofill(int 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)
|
cuối cùng vô hiệu |
setLeft(int arg0)
|
cuối cùng vô hiệu |
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 |
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 |
setPivotX(số thực arg0)
|
void |
setPivotY(số thực dấu phẩy động arg0)
|
void |
setPointerIcon(PointerIcon arg0)
|
void |
setPressed(boolean arg0)
|
cuối cùng vô hiệu |
setRevealOnFocusHint(boolean arg0)
|
cuối cùng vô hiệu |
setRight(int arg0)
|
void |
setRotation(số thực arg0)
|
void |
setRotationX(số thực arg0)
|
void |
setRotationY(số thực dấu phẩy động arg0)
|
void |
setSaveEnabled(boolean arg0)
|
void |
setSaveFromParentEnabled(boolean arg0)
|
void |
setScaleX(số thực dấu phẩy động arg0)
|
void |
setScaleY(số thực dấu phẩy động arg0)
|
void |
setScreenReaderFocusable(boolean arg0)
|
void |
setScrollBarDefaultDelayBeforeFade(int arg0)
|
void |
setScrollBarFadeDuration(int arg0)
|
void |
setScrollBarSize(int arg0)
|
void |
setScrollBarStyle(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 |
setStateListAnimator(StateListAnimator arg0)
|
void |
setSystemGestureExclusionRects(List<Rect> arg0)
|
void |
setSystemUiVisibility(int arg0)
|
void |
setTag(int arg0, Đối tượng arg1)
|
void |
setTag(Đối tượng arg0)
|
void |
setTextAlignment(int arg0)
|
void |
setTextDirection(int arg0)
|
void |
setTooltipText(CharSequence arg0)
|
cuối cùng vô hiệu |
setTop(int arg0)
|
void |
setTouchDelegate(Touchdelegate arg0)
|
void |
setTransitionAlpha(float arg0)
|
cuối cùng vô hiệu |
setTransitionName(Chuỗi 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(Đối số có thể vẽ)
|
void |
setVerticalScrollbarTrackDrawable(Đối số có thể vẽ)
|
void |
setVisibility(int arg0)
|
void |
setWillNotCacheDrawing(boolean arg0)
|
void |
setWillNotDraw(boolean arg0)
|
void |
setX(số thực arg0)
|
void |
setY(số thực arg0)
|
void |
setZ(số thực arg0)
|
boolean |
showContextMenu()
|
boolean |
showContextMenu(float arg0, float arg1)
|
ActionMode |
startActionMode(ActionMode.Callback arg0, int arg1)
|
ActionMode |
startActionMode(ActionMode.Callback arg0)
|
void |
startAnimation(Ảnh động arg0)
|
giá trị boolean cuối cùng |
startDrag(ClipData arg0, View.DragShadowBuilder arg1, Object arg2, int arg3)
|
giá trị boolean cuối cùng |
startDragAndDrop(ClipData arg0, View.DragShadowBuilder arg1, Object arg2, int arg3)
|
boolean |
startNestedScroll(int arg0)
|
void |
stopNestedScroll()
|
Chuỗi |
toString()
|
void |
transformMatrixToGlobal(Ma trận arg0)
|
void |
transformMatrixToLocal(Ma trận arg0)
|
void |
unscheduleDrawable(Đối số có thể vẽ (Drawable arg0), Đối số có thể chạy (Runnable arg1)
|
void |
unscheduleDrawable(Đối số có thể vẽ)
|
cuối cùng vô hiệu |
updateDragShadow(View.DragShadowBuilder arg0)
|
boolean |
willNotCacheDrawing()
|
boolean |
willNotDraw()
|
boolean |
bằng(Đối tượng arg0)
|
cuối cùng Loại<?> |
getClass()
|
int |
hashCode()
|
cuối cùng vô hiệu |
notify()
|
cuối cùng vô hiệu |
notifyAll()
|
Chuỗi |
toString()
|
cuối cùng vô hiệu |
chờ(long arg0, int arg1)
|
cuối cùng vô hiệu |
chờ(long arg0)
|
cuối cùng vô hiệu |
wait()
|
trừu tượng khoảng trống |
bringChildToFront(Xem arg0)
|
trừu tượng boolean |
canResolveLayoutDirection()
|
trừu tượng boolean |
canResolveTextAlignment()
|
trừu tượng boolean |
canResolveTextDirection()
|
trừu tượng khoảng trống |
childDrawableStateChanged(Xem arg0)
|
trừu tượng khoảng trống |
childHasTransientStateChanged(View arg0, boolean arg1)
|
trừu tượng khoảng trống |
clearChildFocus(Xem arg0)
|
trừu tượng khoảng trống |
createContextMenu(ContextMenu arg0)
|
bản tóm tắt Xem |
focusSearch(Xem arg0, int arg1)
|
trừu tượng khoảng trống |
focusableViewAvailable(Xem arg0)
|
trừu tượng boolean |
getChildVisibleRect(Xem arg0, Rect arg1, Point arg2)
|
bản tóm tắt int |
getLayoutDirection()
|
bản tóm tắt ViewParent |
getParent()
|
bản tóm tắt ViewParent |
getParentForAccessibility()
|
bản tóm tắt int |
getTextAlignment()
|
bản tóm tắt int |
getTextDirection()
|
trừu tượng khoảng trống |
invalidateChild(Xem arg0, Rect arg1)
|
bản tóm tắt ViewParent |
invalidateChildInParent(int[] arg0, Rect arg1)
|
trừu tượng boolean |
isLayoutDirectionResolved()
|
trừu tượng boolean |
isLayoutRequested()
|
trừu tượng boolean |
isTextAlignmentResolved()
|
trừu tượng boolean |
isTextDirectionResolved()
|
bản tóm tắt Xem |
keyboardNavigationClusterSearch(Xem arg0, int arg1)
|
trừu tượng khoảng trống |
notifySubtreeAccessibilityStateChanged(Xem arg0, Chế độ xem arg1, int arg2)
|
void |
onDescendantInvalidated(Xem arg0, Xem arg1)
|
trừu tượng boolean |
onNestedFling(View arg0, float arg1, float arg2, boolean arg3)
|
trừu tượng boolean |
onNestedPreFling(Xem arg0, float arg1, float arg2)
|
trừu tượng boolean |
onNestedPrePerformAccessibilityAction(Xem arg0, int arg1, Bundle arg2)
|
trừu tượng khoảng trống |
onNestedPreScroll(Xem arg0, int arg1, int arg2, int[] arg3)
|
trừu tượng khoảng trống |
onNestedScroll(Xem arg0, int arg1, int arg2, int arg3, int arg4)
|
trừu tượng khoảng trống |
onNestedScrollAccepted(Xem arg0, Xem arg1, int arg2)
|
trừu tượng boolean |
onStartNestedScroll(Xem arg0, Chế độ xem arg1, int arg2)
|
trừu tượng khoảng trống |
onStopNestedScroll(Xem arg0)
|
trừu tượng khoảng trống |
recomputeViewAttributes(Xem arg0)
|
trừu tượng khoảng trống |
requestChildFocus(Xem đối số arg0, Xem đối số 1)
|
trừu tượng boolean |
requestChildRectangleOnScreen(View arg0, Rect arg1, boolean arg2)
|
trừu tượng khoảng trống |
requestDisallowInterceptTouchEvent(boolean arg0)
|
trừu tượng khoảng trống |
requestFitSystemWindows()
|
trừu tượng khoảng trống |
requestLayout()
|
trừu tượng boolean |
requestSendAccessibilityEvent(Xem arg0, AccessibilityEvent arg1)
|
trừu tượng khoảng trống |
requestTransparentRegion(Xem arg0)
|
trừu tượng boolean |
showContextMenuForChild(Xem arg0)
|
trừu tượng boolean |
showContextMenuForChild(Xem arg0, float arg1, float arg2)
|
bản tóm tắt ActionMode |
startActionModeForChild(Xem arg0, ActionMode.Callback arg1, int arg2)
|
bản tóm tắt ActionMode |
startActionModeForChild(Xem arg0, ActionMode.Callback arg1)
|
trừu tượng khoảng trống |
addView(Xem arg0, ViewGroup.LayoutParams arg1)
|
trừu tượng khoảng trống |
removeView(Xem arg0)
|
trừu tượng khoảng trống |
updateViewLayout(Xem arg0, ViewGroup.LayoutParams arg1)
|
trừu tượng khoảng trống |
invalidateDrawable(Đối số có thể vẽ)
|
trừu tượng khoảng trống |
scheduleDrawable(Đối số có thể vẽ: Đối số có thể chạy 1, đối số dài arg2)
|
trừu tượng khoảng trống |
unscheduleDrawable(Đối số có thể vẽ (Drawable arg0), Đối số có thể chạy (Runnable arg1)
|
trừu tượng boolean |
onKeyDown(int arg0, KeyEvent arg1)
|
trừu tượng boolean |
onKeyLongPress(int arg0, KeyEvent arg1)
|
trừu tượng boolean |
onKeyMultiple(int arg0, int arg1, KeyEvent arg2)
|
trừu tượng boolean |
onKeyUp(int arg0, KeyEvent arg1)
|
trừu tượng khoảng trống |
sendAccessibilityEvent(int arg0)
|
trừu tượng khoảng trống |
sendAccessibilityEventUnchecked(AccessibilityEvent arg0)
|
Công ty xây dựng công cộng
công khai NavigationView (Ngữ cảnh)
Các tham số
bối cảnh |
---|
công khai NavigationView (Ngữ cảnh, thuộc tính AttributesSet)
Các tham số
bối cảnh | |
---|---|
attrs |
công khai NavigationView (Ngữ cảnh ngữ cảnh, giá trị thuộc tính AttributesSet, int defStyleAttr)
Các tham số
bối cảnh | |
---|---|
attrs | |
defStyleAttr |
Phương thức công khai
công khai Máy ảnh getCamera ()
Trả về đối tượng máy ảnh có thể được dùng để thay đổi khung nhìn của bản đồ. Phương thức này chỉ được gọi trên luồng giao diện người dùng.
Trả bóng
- đối tượng
Camera
liên kết với khung hiển thị này
công khai NavigationMap getMap ()
Trả về đối tượng có thể được dùng để thêm nội dung vào bản đồ. Phương thức này chỉ được gọi trên luồng giao diện người dùng.
công khai vô hiệu onConfigurationChanged (Cấu hình cấu hình)
Các tham số
cấu hình |
---|
công khai void onCreate (Bundle savedInstanceState)
Các tham số
savedInstanceState |
---|
công khai vô hiệu onDestroy ()
công khai vô hiệu onPause ()
công khai vô hiệu onResume ()
công khai void onSaveInstanceState (Bundle outState)
Các tham số
outState |
---|
công khai vô hiệu onStart ()
công khai vô hiệu onStop ()
công khai void onTrimMemory (cấp độ int)
Các tham số
cấp lần truy cập, |
---|
công khai khoảng không setCalloutInfoDisplayModeOverride (NavigationCalloutDisplayMode calloutInfoDisplayModeOverride)
Ghi đè chế độ hiển thị mặc định cho chú thích ETA trong khi điều hướng. Việc truyền giá trị rỗng sẽ đặt lại chế độ hiển thị mặc định.
Các tham số
calloutInfoDisplayModeOverride | chế độ hiển thị mới mong muốn. |
---|
công khai void setCalloutInfoFormatOverrideRouteCalloutInfoFormat
Đặt chế độ định dạng thông tin chú thích cho chú thích tuyến. Nếu phương thức này không được gọi, các chú thích sẽ tuân theo hành vi như được xác định bởi RouteActionsInfoFormat.DEFAULT.
Các tham số
calloutInfoFormatOverride | định dạng chú thích mới mà bạn muốn. |
---|
công khai khoảng trống setCompassEnabled (boolean enabled)
Đặt xem la bàn có hiển thị hay không. Phương thức này chỉ được gọi trên luồng giao diện người dùng.
Các tham số
đang bật |
---|
công khai void setCustomControl (Kiểm soát chế độ xem, vị trí CustomControlPosition)
Đặt khung hiển thị điều khiển tuỳ chỉnh sẽ xuất hiện ở một vị trí nhất định trong giao diện người dùng điều hướng. Nếu bất kỳ thành phần điều khiển tuỳ chỉnh nào đã tồn tại ở một vị trí nhất định, thì thành phần đó sẽ được thay thế. Việc gọi phương thức này với một giá trị đối tượng điều khiển rỗng sẽ xoá thành phần điều khiển tuỳ chỉnh ở một vị trí nhất định. Nếu chế độ điều khiển đã được thêm ở một vị trí khác hoặc đã có thành phần mẹ, thì chế độ điều khiển đó sẽ bị bỏ qua. Phương thức này chỉ được gọi trên luồng giao diện người dùng.
Các tham số
kiểm soát | một khung hiển thị sẽ được định vị trong giao diện người dùng điều hướng |
---|---|
position | xác định vị trí đặt chế độ điều khiển tuỳ chỉnh trong giao diện người dùng so với các chế độ điều khiển tích hợp sẵn. |
công khai void setEtaCardEnabled (boolean enabled)
Đặt liệu thẻ ETA có hiển thị trong khi điều hướng hay không. Phương thức này chỉ được gọi trên luồng giao diện người dùng.
Các tham số
đang bật |
---|
công khai void setHeaderEnabled (boolean enabled)
Thiết lập liệu tiêu đề điều hướng từng chặng có hiển thị trong khi điều hướng hay không. Phương thức này chỉ được gọi trên luồng giao diện người dùng.
Các tham số
đang bật |
---|
công khai void setOnNightModeChangedListener (NavigationView.OnNightModeChangedListener)
Đặt một trình nghe sẽ được thông báo ngay lập tức về trạng thái "chế độ ban đêm" hiện tại và mỗi khi giao diện người dùng chuyển sang hoặc thoát khỏi "chế độ ban đêm". Phương thức này chỉ được gọi trên luồng giao diện người dùng.
Lưu ý: Để tránh rò rỉ bộ nhớ, bạn nên gọi setOnNightModeChangedListener(null)
khi không còn cần đến trình nghe nữa.
Các tham số
trình nghe | một trình nghe sẽ được thông báo khi giao diện người dùng chuyển sang hoặc thoát khỏi chế độ ban đêm |
---|
công khai khoảng trống setOnRecenterButtonClickedListener (NavigationView.OnRecenterButtonClickedListener)
Thiết lập trình nghe sẽ được thông báo khi người dùng nhấp vào nút căn giữa. Phương thức này chỉ được gọi trên luồng giao diện người dùng.
Lưu ý: Để tránh rò rỉ bộ nhớ, bạn nên gọi setOnRecenterButtonClickedListener(null)
khi không còn cần đến trình nghe nữa.
Các tham số
trình nghe | trình nghe sẽ được thông báo khi nhấp vào nút căn giữa |
---|
công khai khoảng không setRecenterButtonEnabled (boolean enabled)
Thiết lập có hiển thị nút căn giữa lại hay không. Phương thức này chỉ được gọi trên luồng giao diện người dùng.
Các tham số
đang bật |
---|
công khai void setSpeedAlertOptions (SpeedAlertOptions speedAlertOptions)
Đặt SpeedAlertOptions
để tuỳ chỉnh các ngưỡng kích hoạt cho các SpeedAlertSeverity
.
Bạn có thể sử dụng phương thức này để tuỳ chỉnh các ngưỡng kích hoạt cảnh báo tốc độ theo tỷ lệ phần trăm cho cả cảnh báo MINOR
và MAJOR
. Bạn cũng có thể sử dụng phương thức này để định cấu hình thời gian (tính bằng giây) cần thiết để nâng cấp cảnh báo tốc độ từ MINOR
lên MAJOR
.
Khi bạn đặt null
SpeedAlertOptions
hoặc không đặt giá trị nào, cảnh báo tốc độ mặc định của NavSDK sẽ hiển thị: cảnh báo tốc độ hiển thị văn bản màu đỏ trên nền trắng/tối cho chế độ ban ngày/ban đêm khi tốc độ thấp hơn 5 dặm/giờ hoặc 10 km/giờ, và hiển thị văn bản trắng trên nền đỏ khi chạy quá tốc độ hơn 5 dặm/giờ hoặc 10 km/giờ.
Các tham số
speedAlertOptions |
---|
công khai void setSpeedLimitIconEnabled (boolean enabled)
Chỉ định xem biểu tượng giới hạn tốc độ có xuất hiện hay không. Chỉ gọi phương thức này trên luồng giao diện người dùng.
Khi được bật, một biểu tượng giới hạn tốc độ cho biết giới hạn tốc độ của đường sẽ xuất hiện ở góc bắt đầu dưới cùng trong khi hướng dẫn. Biểu tượng này chỉ xuất hiện ở những nơi có dữ liệu giới hạn tốc độ đáng tin cậy. Khi biểu tượng đồng hồ tốc độ hiển thị, chúng sẽ được đính kèm.
Nếu bạn bật nút căn giữa, thì biểu tượng giới hạn tốc độ sẽ tạm thời bị ẩn khi nút căn giữa xuất hiện.
Lưu ý: Người lái xe phải tuân thủ tất cả các biển báo đã đăng trên đường và chỉ sử dụng biểu tượng giới hạn tốc độ để tham khảo. Độ chính xác của dữ liệu giới hạn tốc độ không được đảm bảo. Bạn có thể báo cáo dữ liệu giới hạn tốc độ không chính xác bằng cách gửi yêu cầu trong Cổng thông tin hỗ trợ của Google Cloud.
Các tham số
đang bật |
---|
công khai vô hiệu setSpeedometerIconEnabled (boolean enabled)
Chỉ định xem biểu tượng đồng hồ tốc độ có xuất hiện hay không. Chỉ gọi phương thức này trên luồng giao diện người dùng.
Khi được bật, một biểu tượng đồng hồ tốc độ cho biết tốc độ của xe sẽ xuất hiện ở góc dưới cùng khởi động trong quá trình hướng dẫn. Khi biểu tượng giới hạn tốc độ hiển thị, các biểu tượng này sẽ được đính kèm và sau đó đồng hồ tốc độ có thể có các màu khác nhau cho văn bản và nền, tuỳ thuộc vào mức độ nghiêm trọng của tốc độ.
Việc bật biểu tượng giới hạn tốc độ cũng sẽ bật hoàn toàn biểu tượng giới hạn tốc độ. Tuy nhiên, bạn có thể sử dụng setSpeedLimitIconEnabled(boolean)
để tắt/bật biểu tượng giới hạn tốc độ một cách riêng biệt.
Nếu bạn bật nút căn giữa lại, thì biểu tượng đồng hồ tốc độ sẽ tạm thời bị ẩn khi nút căn giữa xuất hiện.
Các tham số
đang bật |
---|
công khai khoảng trống setSpeedometerUiOptions (SpeedometerUiOptions speedometerUiOptions)
Đặt cấu hình giao diện người dùng cho đồng hồ tốc độ SpeedometerUiOptions
dựa trên SpeedAlertSeverity
. Chỉ gọi phương thức này trên luồng giao diện người dùng.
Bằng việc đặt SpeedometerUiOptions
null
, bạn sẽ xoá thành phần trước đó (nếu được đặt). Khi không có SpeedometerUiOptions
nào được định cấu hình, giao diện người dùng đồng hồ tốc độ sẽ chuyển sang cấu hình mặc định của NavSDK cho các cảnh báo tốc độ của SpeedAlertSeverity
khác:
Các tham số
speedometerUiOptions |
---|
công khai void setStylingOptions (StylingOptions kiểuOptions)
Đặt một số tuỳ chọn định kiểu cho giao diện người dùng điều hướng. Phương thức này chỉ được gọi trên luồng giao diện người dùng.
Các tham số
stylingOptions |
---|
công khai void setTrafficIncidentCardsEnabled (boolean enabled)
Thiết lập xem có hiển thị thẻ sự cố giao thông khi người dùng nhấp vào biểu tượng sự cố giao thông hay không. Phương thức này chỉ được gọi trên luồng giao diện người dùng.
Xin lưu ý rằng khi tính năng chỉ đường có hướng dẫn đang chạy, thông tin chi tiết về sự cố giao thông sẽ xuất hiện trong lời nhắc.
Để tắt thông tin chi tiết về sự cố giao thông trong khi di chuyển, bạn nên dùng setTrafficPromptsEnabled(boolean)
.
Các tham số
đang bật |
---|
công khai void setTrafficPromptsEnabled (boolean enabled)
Đặt có hiển thị lời nhắc về lưu lượng truy cập hay không. Lời nhắc về tình hình giao thông sẽ định kỳ xuất hiện để cập nhật cho người dùng về tình trạng giao thông trong quá trình di chuyển. Phương thức này chỉ được gọi trên luồng giao diện người dùng.
Các tham số
đang bật |
---|