Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is AppCompatActivity ? #90

Open
capturemathan opened this issue Jun 23, 2020 · 2 comments
Open

What is AppCompatActivity ? #90

capturemathan opened this issue Jun 23, 2020 · 2 comments

Comments

@capturemathan
Copy link

Hey guys, this README is filled with plenty of wonderful Questions and I think that addition of What is AppCompatActivity ? under Core Android might be helpful 馃帀

@archow
Copy link

archow commented Nov 8, 2023

I agree!
Maybe also include the answer to that as well?
Something like:
AppCompatActivity extends FragmentActivity, which extends ComponentActivity, and is the recommended class for viewbinding, findViewById, setContentView, using the FragmentManager, and a host of other useful libraries when creating a simple Activity that you usually see in a project.

In newer versions of Android, such as that using JetpackCompose, the lowest base class required for creating a Composable is ComponentActivity, which is a parent of AppCompatActivity. If you are using Jetpack Compose, but would like it to be compatible with non-composable views, AppCompatActivity is the way to go.

For more information about the AppCompatActivity, you can learn here: https://developer.android.com/reference/androidx/appcompat/app/AppCompatActivity

@amitshekhariitbhu
Copy link
Owner

I will add this. Keeping it open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants