How can i get reference to another activity, because i have placed an ActionBar
in main activity say ActivityA
, this ActionBar
is visible on all other activities as well, now i want to access this LinearLayout
and make it hidden from ActivityB
.
I want to do somthing like this.
LinearLayout bar = (LinearLayout) ActivityA.findViewById(R.id.actionbarhome);
bar.setVisibility(LinearLayout.GONE);
What should be there in place of ActivityA
? Any help would be appreciated.