DialogCompat
public
class
DialogCompat
extends Object
| java.lang.Object | |
| ↳ | androidx.core.app.DialogCompat |
Helper for accessing features in Dialog in a backwards compatible
fashion.
Summary
Public methods | |
|---|---|
static
View
|
requireViewById(Dialog dialog, int id)
Finds the first descendant view with the given ID or throws an IllegalArgumentException if
the ID is invalid (< 0), there is no matching view in the hierarchy, or the dialog has not
yet been fully created (for example, via |
Inherited methods | |
|---|---|
Public methods
requireViewById
public static View requireViewById (Dialog dialog, int id)
Finds the first descendant view with the given ID or throws an IllegalArgumentException if
the ID is invalid (< 0), there is no matching view in the hierarchy, or the dialog has not
yet been fully created (for example, via Dialog.show() or
Dialog.create()).
Note: In most cases -- depending on compiler support -- the resulting view is automatically cast to the target class type. If the target class type is unconstrained, an explicit cast may be necessary.
| Parameters | |
|---|---|
dialog |
Dialog: the Dialog to search the View in |
id |
int: the ID to search for |
| Returns | |
|---|---|
View |
a view with given ID |
Annotations
Interfaces
Classes
- ActivityCompat
- ActivityManagerCompat
- ActivityOptionsCompat
- AlarmManagerCompat
- AppComponentFactory
- AppLaunchChecker
- AppOpsManagerCompat
- BundleCompat
- DialogCompat
- FrameMetricsAggregator
- JobIntentService
- NavUtils
- NotificationCompat
- NotificationCompat.Action
- NotificationCompat.Action.Builder
- NotificationCompat.Action.WearableExtender
- NotificationCompat.BigPictureStyle
- NotificationCompat.BigTextStyle
- NotificationCompat.Builder
- NotificationCompat.CarExtender
- NotificationCompat.CarExtender.UnreadConversation
- NotificationCompat.CarExtender.UnreadConversation.Builder
- NotificationCompat.DecoratedCustomViewStyle
- NotificationCompat.InboxStyle
- NotificationCompat.MessagingStyle
- NotificationCompat.MessagingStyle.Message
- NotificationCompat.Style
- NotificationCompat.WearableExtender
- NotificationCompatExtras
- NotificationCompatSideChannelService
- NotificationManagerCompat
- Person
- Person.Builder
- RemoteActionCompat
- RemoteInput
- RemoteInput.Builder
- ServiceCompat
- ShareCompat
- ShareCompat.IntentBuilder
- ShareCompat.IntentReader
- SharedElementCallback
- TaskStackBuilder