public Content (Context context, IAttributeSet attrs) : base (context, attrs)
			{
				mNavHider = () => SetNavVisibility (false);
				mText = new TextView (context);
				mText.SetTextSize (ComplexUnitType.Dip, 16);
				mText.Text = context.GetString (Resource.String.alert_dialog_two_buttons2ultra_msg);
				mText.Clickable = false;
				mText.SetOnClickListener (this);
				mText.SetTextIsSelectable (true);
				AddView (mText, new ViewGroup.LayoutParams (
					ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));

				SetOnSystemUiVisibilityChangeListener (this);
			}
Example #2
0
 View CreateView(string key, string value)
 {
     LinearLayout layout = new LinearLayout(this, null);
     layout.Orientation = Orientation.Vertical;
     layout.LayoutParameters = new ViewGroup.LayoutParams(LinearLayout.LayoutParams.FillParent, LinearLayout.LayoutParams.WrapContent);
     TextView keyView = new TextView(this);
     if (key != null)
         keyView.Text = key;
     layout.AddView(keyView);
     TextView valueView = new TextView(this);
     if (value != null)
         valueView.Text = value;
     valueView.SetTextIsSelectable(true);
     layout.AddView(valueView);
     return layout;
 }