Language

Resource.Id Class

Definition

Provides identifiers for platform ID resources.

[Android.Runtime.Register("android/R$id", DoNotGenerateAcw=true)]
public sealed class Resource.Id : Java.Lang.Object
[<Android.Runtime.Register("android/R$id", DoNotGenerateAcw=true)>]
type Resource.Id = class
    inherit Object
Inheritance
Resource.Id
Attributes

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Name Description
Resource.Id()

Creates a new instance of the view and action identifiers class.

Fields

Name Description
AccessibilityActionContextClick

Identifies the platform id resource named accessibilityActionContextClick.

AccessibilityActionDragCancel

Identifies the platform id resource named accessibilityActionDragCancel.

AccessibilityActionDragDrop

Identifies the platform id resource named accessibilityActionDragDrop.

AccessibilityActionDragStart

Identifies the platform id resource named accessibilityActionDragStart.

AccessibilityActionHideTooltip

Identifies the platform id resource named accessibilityActionHideTooltip.

AccessibilityActionImeEnter

Identifies the platform id resource named accessibilityActionImeEnter.

AccessibilityActionMoveWindow

Identifies the platform id resource named accessibilityActionMoveWindow.

AccessibilityActionPageDown

Identifies the platform id resource named accessibilityActionPageDown.

AccessibilityActionPageLeft

Identifies the platform id resource named accessibilityActionPageLeft.

AccessibilityActionPageRight

Identifies the platform id resource named accessibilityActionPageRight.

AccessibilityActionPageUp

Identifies the platform id resource named accessibilityActionPageUp.

AccessibilityActionPressAndHold

Identifies the platform id resource named accessibilityActionPressAndHold.

AccessibilityActionScrollDown

Identifies the platform id resource named accessibilityActionScrollDown.

AccessibilityActionScrollInDirection

Identifies the platform id resource named accessibilityActionScrollInDirection.

AccessibilityActionScrollLeft

Identifies the platform id resource named accessibilityActionScrollLeft.

AccessibilityActionScrollRight

Identifies the platform id resource named accessibilityActionScrollRight.

AccessibilityActionScrollToPosition

Identifies the platform id resource named accessibilityActionScrollToPosition.

AccessibilityActionScrollUp

Identifies the platform id resource named accessibilityActionScrollUp.

AccessibilityActionSetExtendedSelection

Accessibility action identifier for AccessibilityNodeInfo.AccessibilityAction.ACTION_SET_EXTENDED_SELECTION.

AccessibilityActionSetProgress

Identifies the platform id resource named accessibilityActionSetProgress.

AccessibilityActionShowOnScreen

Identifies the platform id resource named accessibilityActionShowOnScreen.

AccessibilityActionShowTextSuggestions

Identifies the platform id resource named accessibilityActionShowTextSuggestions.

AccessibilityActionShowTooltip

Identifies the platform id resource named accessibilityActionShowTooltip.

AccessibilitySystemActionBack

Identifies the platform id resource named accessibilitySystemActionBack.

AccessibilitySystemActionHome

Identifies the platform id resource named accessibilitySystemActionHome.

AccessibilitySystemActionLockScreen

Identifies the platform id resource named accessibilitySystemActionLockScreen.

AccessibilitySystemActionNotifications

Identifies the platform id resource named accessibilitySystemActionNotifications.

AccessibilitySystemActionPowerDialog

Identifies the platform id resource named accessibilitySystemActionPowerDialog.

AccessibilitySystemActionQuickSettings

Identifies the platform id resource named accessibilitySystemActionQuickSettings.

AccessibilitySystemActionRecents

Identifies the platform id resource named accessibilitySystemActionRecents.

AccessibilitySystemActionTakeScreenshot

Identifies the platform id resource named accessibilitySystemActionTakeScreenshot.

AccessibilitySystemActionToggleSplitScreen

Identifies the platform id resource named accessibilitySystemActionToggleSplitScreen.

AddToDictionary

Menu ID to perform a "add to dictionary" operation.

Autofill

Identifies the platform id resource named autofill.

Background

Identifies the background layer of a progress-bar drawable.

Bold

Identifies the platform id resource named bold.

Button1

Identifies the positive button in standard alert-dialog layouts.

Button2

Identifies the negative button in standard alert-dialog layouts.

Button3

Identifies the neutral button in standard alert-dialog layouts.

CandidatesArea

The part of the UI shown by an InputMethodService that contains the views for displaying candidates for what the user has entered.

Checkbox

Identifier used for the checkable view bound by a checkbox preference.

CloseButton

View ID of a View to close a popup keyboard

Content

Identifier used for a window's content container.

Copy

Context menu ID for the "Copy" menu item to copy the currently selected (or all) text in a text view to the clipboard.

CopyUrl

Context menu ID for the "Copy URL" menu item to copy the currently selected URL from the text view to the clipboard.

Custom

Identifies the frame that contains a custom view in a standard alert dialog.

Cut

Context menu ID for the "Cut" menu item to copy and delete the currently selected (or all) text in a text view to the clipboard.

Edit

Identifier assigned to the editable view created by an edit-text preference.

Empty

Identifies the view used for the empty-list state in a list activity.

ExtractArea

The part of the UI shown by an InputMethodService that contains the views for interacting with the user in extraction mode.

Hint

Identifies the letters-entry EditText required by DialerFilter.

Home

Menu-item identifier used for action-bar home navigation.

Icon

Identifier used for a small notification icon and other platform icon views.

Icon1

Identifies the first icon view bound by the search suggestions adapter.

Icon2

Identifies the second icon view bound by the search suggestions adapter.

IconFrame

Identifies the platform id resource named icon_frame.

Input

Platform-defined identifier @android:id/input, whose numeric value is fixed by the public resource table.

InputArea

The part of the UI shown by an InputMethodService that contains the views for entering text using the screen.

InputExtractAccessories

Identifies the platform id resource named inputExtractAccessories.

InputExtractAction

Identifies the platform id resource named inputExtractAction.

InputExtractEditText

View ID of the text editor inside of an extracted text layout.

Italic

Identifies the platform id resource named italic.

KeyboardView

View ID of the KeyboardView within an input method's input area.

List

Identifies the list view required by ListActivity or ExpandableListActivity.

ListContainer

Identifies the platform id resource named list_container.

LookUpText

Identifies the Look Up action in a text view's context menu.

Mask

Identifies the platform id resource named mask.

Message

Identifies the message text view in standard progress and alert dialogs.

NavigationBarBackground

Identifies the platform id resource named navigationBarBackground.

Paste

Context menu ID for the "Paste" menu item to copy the current contents of the clipboard into the text view.

PasteAsPlainText

Identifies the platform id resource named pasteAsPlainText.

Primary

Identifies the digits-entry EditText required by DialerFilter.

Progress

Identifier used for a progress-bar view or the primary layer of a progress drawable.

Redo

Identifies the platform id resource named redo.

ReplaceText

Identifies the platform id resource named replaceText.

SecondaryProgress

Identifies the secondary-progress layer of a progress-bar drawable.

SelectAll

Context menu ID for the "Select All" menu item to select all text in a text view.

SelectedIcon

Platform-defined identifier @android:id/selectedIcon, whose numeric value is fixed by the public resource table.

SelectTextMode

Context menu ID for the "Select text..." menu item to switch to text selection context mode in text views.

ShareText

Identifies the platform id resource named shareText.

StartSelectingText

Menu ID to perform a "start selecting text" operation.

StatusBarBackground

Identifies the platform id resource named statusBarBackground.

StopSelectingText

Menu ID to perform a "stop selecting text" operation.

Summary

Identifies a preference's summary text view.

SwitchInputMethod

Context menu ID for the "Input Method" menu item to being up the input method picker dialog, allowing the user to switch to another input method.

SwitchWidget

Identifies the platform id resource named switch_widget.

TabContent

Identifies the FrameLayout that holds content in a TabHost.

TabHost

Identifies the TabHost required by a TabActivity.

Tabs

Identifies the TabWidget required by a TabHost.

Text1

Identifies the first text view in standard list-item layouts.

Text2

Identifies the second text view in standard two-text list-item layouts.

TextAssist

Identifies the platform id resource named textAssist.

Title

Identifier used for title text in platform views, including fragment breadcrumbs.

Toggle

Identifies the indicator layer in a toggle button's background drawable.

Underline

Identifies the platform id resource named underline.

Undo

Identifies the platform id resource named undo.

WidgetFrame

Identifies the container where a preference inflates its widget layout.

Properties

Name Description
Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode

Gets the identity hash code assigned to this Java peer by the interop runtime.

(Inherited from Object)
JniManagedPeerState

Gets the state flags last assigned by the runtime.

(Inherited from JavaObject)
JniPeerMembers

Provides the JNI peer metadata for this type.

PeerReference

Gets the JNI object reference for this Java peer.

(Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Name Description
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Construct(JniObjectReference, JniObjectReferenceOptions)

Delegates construction of this peer to the runtime's value manager.

(Inherited from JavaObject)
Dispose()

Releases the resources held by this Java peer.

(Inherited from Object)
Dispose(Boolean)

Releases the resources held by this Java peer.

(Inherited from Object)
DisposeUnlessReferenced()

Asks the value manager to dispose this peer unless its mapping retains this same managed instance.

(Inherited from JavaObject)
Equals(Object)

Tests whether another managed peer refers to the same Java object.

(Inherited from JavaObject)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()
Obsolete.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions)

Stores a reference value in the control block without creating a JNI reference copy.

(Inherited from JavaObject)
ToArray<T>()

Creates a managed array from this Java array wrapper.

(Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime()

Unregisters this Java peer from the interop runtime.

(Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

Name Description
IJavaPeerable.Disposed()

Marks this peer as disposed and calls Dispose with disposing set to true.

(Inherited from JavaObject)
IJavaPeerable.Finalized()

Marks this peer as disposed and calls Dispose with disposing set to false.

(Inherited from JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

Gets the native control-block pointer used by this peer.

(Inherited from JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)

Stores the identity hash code supplied by the runtime.

(Inherited from JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

Replaces the stored managed peer state flags.

(Inherited from JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)

Updates the peer reference and releases a disposed peer's control block when the reference is invalid.

(Inherited from JavaObject)

Extension Methods

Name Description
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)

Reuses a compatible managed peer or obtains a wrapper of the requested type.

TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to