Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created November 5, 2024 11:54
Show Gist options
  • Save codeforfun-jp/d493d7d9ecefe477a63ad9e3a0fb3937 to your computer and use it in GitHub Desktop.
Save codeforfun-jp/d493d7d9ecefe477a63ad9e3a0fb3937 to your computer and use it in GitHub Desktop.
[Java Quiz ver2] 7-1
public class ResultActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
ActivityResultBinding binding = ActivityResultBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
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