Component - First Android app
This is the simplest Android app screen. It shows a greeting message in the center of the screen. The app uses a single activity with a TextView to display "Hello, World!".
This is the simplest Android app screen. It shows a greeting message in the center of the screen. The app uses a single activity with a TextView to display "Hello, World!".
Activity
└── ConstraintLayout
└── TextViewMainActivity class in a simple Android app?MainActivity using Kotlin?MainActivity:
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
}
What will the user see when the app runs?MainActivity code snippet?
override fun onCreate(savedInstanceState: Bundle?) {
setContentView(R.layout.activity_main)
super.onCreate(savedInstanceState)
}Pass the test and this pattern moves unknown