Skip to content

Instantly share code, notes, and snippets.

@hongbeomi
Created June 13, 2021 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hongbeomi/6bd79c8bda866ceff8e37815505df169 to your computer and use it in GitHub Desktop.
Save hongbeomi/6bd79c8bda866ceff8e37815505df169 to your computer and use it in GitHub Desktop.
@AndroidEntryPoint
class MainActivity : BaseActivity() {
@ExperimentalPagerApi
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
MainScreen { type ->
val intent = Intent(this, DetailActivity::class.java)
intent.putExtra(DetailActivity.KEY_HOUSE, type)
startActivity(intent)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment