Book Detail


Sno Back subject title author publisher edition book_type book_file note
1 Back Mobile Application Development Lab - 20A05706 (Lab) College Manual college AEC Later Textbook Link

🔍 Key Differences

Feature Traditional XML (Activity) Jetpack Compose (ComponentActivity)
UI Definition XML layouts in res/layout/ Kotlin code with composable functions
Base Class Activity ComponentActivity
UI Setting Method setContentView(R.layout.layout_name) setContent { composable() }
UI Components Views like TextView, Button, etc. Composables like Text, Button, etc.
State Management Manual handling (e.g., onSaveInstanceState) Built-in with remember, rememberSaveable
Theme Support Defined in res/values/styles.xml Defined using MaterialTheme composable
Navigation Intent and Fragment NavHost and NavController

E-book