Reputation: 159
So I got two views that are both in the same activity. I'm getting view1 in view2 with uiView = findViewById(R.id.uiSurfaceView);
I then cannot, however, call a public method defined in uiView...
I'm fairly new to AndroidStudio and all I found here is about different classes, not views.
Thank you very much!
Upvotes: 0
Views: 27
Reputation: 158
What is the type of your uiView variable? It does not look like you have cast the results of the findViewById method to a specific view type that you have defined. You will need to cast this to the correct type.
Upvotes: 1