AppCompatActivity
open class AppCompatActivity : FragmentActivity, AppCompatCallback, TaskStackBuilder.SupportParentable, ActionBarDrawerToggle.DelegateProvider(source)
Base class for activities that wish to use some of the newer platform features on older Android devices. Some of these backported features include:
- Using the action bar, including action items, navigation modes and more with the setSupportActionBar API.
- Built-in switching between light and dark themes by using the Theme.AppCompat.DayNight theme and setDefaultNightMode API.
- Integration with
DrawerLayout
by using the getDrawerToggleDelegate API.
Note that every activity that extends this class has to be themed with Theme.AppCompat or a theme that extends that theme.
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Support library version of getActionBar.
Link copied to clipboard
Obtain an android.content.Intent that will launch an explicit target activity specified by sourceActivity's PARENT_ACTIVITY element in the application's manifest.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Support version of onCreateNavigateUpTaskStack.
Link copied to clipboard
Link copied to clipboard
Please note: AppCompat uses its own feature id for the action bar: FEATURE_SUPPORT_ACTION_BAR.
Link copied to clipboard
Please note: AppCompat uses its own feature id for the action bar: FEATURE_SUPPORT_ACTION_BAR.
Link copied to clipboard
Support version of onPrepareNavigateUpTaskStack.
Link copied to clipboard
Notifies the activity that a support action mode has finished.
Link copied to clipboard
Notifies the Activity that a support action mode has been started.
Link copied to clipboard
Link copied to clipboard
This method is called whenever the user chooses to navigate Up within your application's activity hierarchy from the action bar.
Link copied to clipboard
@Nullable
Called when a support action mode is being started for this window.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Set a Toolbar to act as the androidx.appcompat.app.ActionBar for this Activity window.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Nullable
Start an action mode.
Link copied to clipboard
Link copied to clipboard
Navigate from sourceActivity to the activity specified by upIntent, finishing sourceActivity in the process.
Link copied to clipboard
Enable extended support library window features.
Link copied to clipboard
Returns true if sourceActivity should recreate the task when navigating 'up' by using targetIntent.