I have a question. There's a setContentView in Android activities. then How do you get the view that the activity has?
android
this.getWindow().getDecorView().findViewById(android.R.id.content)
I
this.findViewById(android.R.id.content)
I
this.findViewById(android.R.id.content).getRootView()
You can do it in this way.
© 2024 OneMinuteCode. All rights reserved.