title: How make layout invisible
body: <p>I am developing an Android app.</p>
  
  <p>I have some attributes that stored in SharedPreferences.</p>
  
  <p>I need layout - gone until value stored in shared preference haven't text.</p>
  
  <p>When the value is stored, I need to make layout visible.</p>
  
  <pre><code>zakazat.Click += delegate {
              var intent = new Intent (this, typeof(CartActivity));
              intent.PutExtra ("title", (string)(firstitem ["post_title"]));
              intent.PutExtra ("price", (string)(firstitem ["price"] + " грн"));
              intent.PutExtra ("weight", (string)(firstitem ["weight"] + "г"));
  
              StartActivity (intent);
  
              ISharedPreferences prefs = PreferenceManager.GetDefaultSharedPreferences (this);
              ISharedPreferencesEditor editor = prefs.Edit ();
  
              editor.PutString ("title", (string)(firstitem ["post_title"]));
              editor.PutString ("price", (string)(firstitem ["price"] + " грн"));
              editor.PutString ("weight", (string)(firstitem ["weight"] + "г"));
  
             editor.Apply ();
  
          };
  </code></pre>
  
  <p>In other activity:</p>
  
  <pre><code>private void Display (){
          LinearLayout display2 = FindViewById&lt;LinearLayout&gt; (Resource.Id.linearLayout12);        
          //LinearLayout display = FindViewById&lt;LinearLayout&gt; (Resource.Id.linearLayout13);           
          TextView productname = FindViewById&lt;TextView&gt; (Resource.Id.posttittle);
          TextView price = FindViewById&lt;TextView&gt; (Resource.Id.price);
          TextView weight = FindViewById&lt;TextView&gt; (Resource.Id.weight);
  
  
          productname.Text = Intent.GetStringExtra ("title");
          price.Text = Intent.GetStringExtra("price");
          weight.Text = Intent.GetStringExtra("weight");
  
  
          display2.Visibility = ViewStates.Visible;
          ISharedPreferences prefs = PreferenceManager.GetDefaultSharedPreferences (this);
  
          string product = prefs.GetString ("title", "");
          string _price = prefs.GetString ("price", "");
          string _weight = prefs.GetString ("weight", "");
              productname.Text = product;
          price.Text = _price;
              weight.Text = _weight;
  
  
  
  
  
  
          //price.Text = Intent.GetStringExtra("price");
          //weight.Text = Intent.GetStringExtra("weight");
          //display2.Visibility = ViewStates.Visible;
          productname.Visibility = ViewStates.Visible;
          price.Visibility = ViewStates.Visible;
          weight.Visibility = ViewStates.Visible;
      }
  </code></pre>
  
  <p>How I can do it?</p>