-1

In an android application having two activity, one activity is Login Screen and second Activity is SignUp page with a fragment(signup form). when user login on some condition I redirect to Activity which contains a fragment. so I want to hide some component using flag.

How can do that please help?

Faysal Ahmed
  • 7,501
  • 5
  • 28
  • 50
Ext1 Dev
  • 33
  • 2
  • 6

1 Answers1

0

You can use conditional statement. As mentioned below,

if(yourConditionalForSettingViewsNotVisible) {
        yourView.setVisibility(View.GONE);
    }

Hope that helps you.

Abdul Waheed
  • 4,540
  • 6
  • 35
  • 58