Skip to content Skip to sidebar Skip to footer

Android Studio Variables Not Appearing In Onclicklistener Body

I'm working in android studio using the debugger. var loginButton = findViewById

Solution 1:

Within the click listener, those variables are out of scope and the new scope of execution becomes the anonymous class.

If you would like to still inspect the views, then you should declare them as fields within the Activity class.

Post a Comment for "Android Studio Variables Not Appearing In Onclicklistener Body"