O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.


open class AppCompatActivity : FragmentActivity, AppCompatCallback, TaskStackBuilder.SupportParentable, ActionBarDrawerToggle.DelegateProvider
   ↳ androidx.fragment.app.FragmentActivity
   ↳ androidx.appcompat.app.AppCompatActivity

Base class for activities that wish to use some of the newer platform features on older Android devices. Some of these backported features include:

Note that every activity that extends this class has to be themed with Theme.AppCompat or a theme that extends that theme.


Public constructors

Default constructor for AppCompatActivity.

<init>(@LayoutRes contentLayoutId: Int)

Alternate constructor that can be used to provide a default layout that will be inflated as part of super.onCreate(savedInstanceState).

Public methods
open Unit
addContentView(view: View!, params: LayoutParams!)

open Unit

open Boolean

open T
findViewById(@IdRes id: Int)

open AppCompatDelegate

open ActionBarDrawerToggle.Delegate?

open MenuInflater

open Resources!

open ActionBar?

Support library version of android.app.Activity#getActionBar.

open Intent?

Obtain an android.content.Intent that will launch an explicit target activity specified by sourceActivity's androidx.core.app.NavUtils#PARENT_ACTIVITY <meta-data> element in the application's manifest.

open Unit

open Unit

open Unit

open Unit

Support version of onCreateNavigateUpTaskStack(android.app.TaskStackBuilder).

open Boolean
onKeyDown(keyCode: Int, event: KeyEvent!)

onMenuItemSelected(featureId: Int, @NonNull item: MenuItem)

open Boolean
onMenuOpened(featureId: Int, menu: Menu)

Please note: AppCompat uses its own feature id for the action bar: FEATURE_SUPPORT_ACTION_BAR.

open Unit
onPanelClosed(featureId: Int, @NonNull menu: Menu)

Call onOptionsMenuClosed() on fragments.

open Unit

Support version of onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder).

open Unit

Notifies the activity that a support action mode has finished.

open Unit

Notifies the Activity that a support action mode has been started.

open Unit

open Boolean

This method is called whenever the user chooses to navigate Up within your application's activity hierarchy from the action bar.

open ActionMode?

Called when a support action mode is being started for this window.

open Unit