I have an A activity that uses a setContentView(R.layout.activityA) method to set a layout. An activityA layout consists of a customView. My customView has a bunch of setters and getters. How can I access them from A activity? When I create an instance of customView in an acitivity A then it works but the customView is created twice: once from the setContentView and the second time when I create a new instance of it. Is there another way of accessing those method? Please advise. Thanks.
I have an A activity that uses a setContentView(R.layout.activityA) method to set a layout.
Share
Have you tried something like this in your Activity’s code: