Resource.Id Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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 |
| AccessibilityActionDragCancel |
Identifies the platform id resource named |
| AccessibilityActionDragDrop |
Identifies the platform id resource named |
| AccessibilityActionDragStart |
Identifies the platform id resource named |
| AccessibilityActionHideTooltip |
Identifies the platform id resource named |
| AccessibilityActionImeEnter |
Identifies the platform id resource named |
| AccessibilityActionMoveWindow |
Identifies the platform id resource named |
| AccessibilityActionPageDown |
Identifies the platform id resource named |
| AccessibilityActionPageLeft |
Identifies the platform id resource named |
| AccessibilityActionPageRight |
Identifies the platform id resource named |
| AccessibilityActionPageUp |
Identifies the platform id resource named |
| AccessibilityActionPressAndHold |
Identifies the platform id resource named |
| AccessibilityActionScrollDown |
Identifies the platform id resource named |
| AccessibilityActionScrollInDirection |
Identifies the platform id resource named |
| AccessibilityActionScrollLeft |
Identifies the platform id resource named |
| AccessibilityActionScrollRight |
Identifies the platform id resource named |
| AccessibilityActionScrollToPosition |
Identifies the platform id resource named |
| AccessibilityActionScrollUp |
Identifies the platform id resource named |
| AccessibilityActionSetExtendedSelection |
Accessibility action identifier for AccessibilityNodeInfo.AccessibilityAction.ACTION_SET_EXTENDED_SELECTION. |
| AccessibilityActionSetProgress |
Identifies the platform id resource named |
| AccessibilityActionShowOnScreen |
Identifies the platform id resource named |
| AccessibilityActionShowTextSuggestions |
Identifies the platform id resource named |
| AccessibilityActionShowTooltip |
Identifies the platform id resource named |
| AccessibilitySystemActionBack |
Identifies the platform id resource named |
| AccessibilitySystemActionHome |
Identifies the platform id resource named |
| AccessibilitySystemActionLockScreen |
Identifies the platform id resource named |
| AccessibilitySystemActionNotifications |
Identifies the platform id resource named |
| AccessibilitySystemActionPowerDialog |
Identifies the platform id resource named |
| AccessibilitySystemActionQuickSettings |
Identifies the platform id resource named |
| AccessibilitySystemActionRecents |
Identifies the platform id resource named |
| AccessibilitySystemActionTakeScreenshot |
Identifies the platform id resource named |
| AccessibilitySystemActionToggleSplitScreen |
Identifies the platform id resource named |
| AddToDictionary |
Menu ID to perform a "add to dictionary" operation. |
| Autofill |
Identifies the platform id resource named |
| Background |
Identifies the background layer of a progress-bar drawable. |
| Bold |
Identifies the platform id resource named |
| 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 |
| Input |
Platform-defined identifier |
| 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 |
| InputExtractAction |
Identifies the platform id resource named |
| InputExtractEditText |
View ID of the text editor inside of an extracted text layout. |
| Italic |
Identifies the platform id resource named |
| 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 |
| LookUpText |
Identifies the Look Up action in a text view's context menu. |
| Mask |
Identifies the platform id resource named |
| Message |
Identifies the message text view in standard progress and alert dialogs. |
| NavigationBarBackground |
Identifies the platform id resource named |
| 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 |
| 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 |
| ReplaceText |
Identifies the platform id resource named |
| 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 |
| 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 |
| StartSelectingText |
Menu ID to perform a "start selecting text" operation. |
| StatusBarBackground |
Identifies the platform id resource named |
| 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 |
| 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 |
| 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 |
| Undo |
Identifies the platform id resource named |
| WidgetFrame |
Identifies the container where a preference inflates its widget layout. |
Properties
| Name | Description |
|---|---|
| Class |
Returns the runtime class of this |
| 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 |
| IJavaPeerable.Finalized() |
Marks this peer as disposed and calls |
| 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 |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| 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 |