I have been trying to compare my current view from the activity with other random layout file using:
if (this.findViewById(android.R.id.content).getRootView().getId() ==
findViewById(R.layout.layout_1).getId())
The above code is not working.
The respective ID's displayed are -1 and 22566789
Is it possible to compare them? Please let me know any other method to compare them.