Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created October 24, 2024 04:56
Show Gist options
  • Save codeforfun-jp/9a7a2f7a57155c5f301268fb069386b3 to your computer and use it in GitHub Desktop.
Save codeforfun-jp/9a7a2f7a57155c5f301268fb069386b3 to your computer and use it in GitHub Desktop.
[Kotlin Quiz ver2] 3-2
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
/* 省略 */
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment