Check if the XML layout is currently displayed?
2 answers
For me, your question reads as if you want to get the getContentView () method, which, unfortunately, Activity does not have. In these questions, you can find two alternative solutions to this problem:
Why isn't there a getcontentview method for the activity?
+1
source to share
If you're talking about making the view visible. Follow these steps.
First make the GONE look like you want in XML (don't make them invisible as they block space). write the following in xml view
android:visibility="gone"
When you receive the broadcast, make them visible with
viewName.setVisibility(View.VISIBLE);
Hope for this help
0
source to share