Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created November 5, 2024 01:43
Show Gist options
  • Save codeforfun-jp/e9bb5cf0b92f446d1776aa728668e081 to your computer and use it in GitHub Desktop.
Save codeforfun-jp/e9bb5cf0b92f446d1776aa728668e081 to your computer and use it in GitHub Desktop.
[Java Quiz ver2] 3-2
public class MainActivity extends AppCompatActivity {
private ActivityMainBinding binding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
binding = ActivityMainBinding.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