public override Dialog onCreateDialog(Bundle savedInstanceState)
		{
			TableLayout l = new TableLayout(Activity);
			TableRow tr;
			TextView label, value;
			foreach (KeyValuePair<string, string> e in props.SetOfKeyValuePairs())
			{
				tr = new TableRow(Activity);
				label = new TextView(Activity);
				value = new TextView(Activity);
				label.Text = e.Key;
				value.Text = e.Value;
				label.setPadding(10, 10, 10, 10);
				value.setPadding(10, 10, 10, 10);
				tr.addView(label);
				tr.addView(value);
				l.addView(tr, new TableLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
			}
			return (new AlertDialog.Builder(Activity)).setView(l).setPositiveButton([email protected], null).setTitle([email protected]).create();
		}
Ejemplo n.º 2
0
        public override Dialog onCreateDialog(Bundle savedInstanceState)
        {
            TableLayout l = new TableLayout(Activity);
            TableRow    tr;
            TextView    label, value;

            foreach (KeyValuePair <string, string> e in props.SetOfKeyValuePairs())
            {
                tr         = new TableRow(Activity);
                label      = new TextView(Activity);
                value      = new TextView(Activity);
                label.Text = e.Key;
                value.Text = e.Value;
                label.setPadding(10, 10, 10, 10);
                value.setPadding(10, 10, 10, 10);
                tr.addView(label);
                tr.addView(value);
                l.addView(tr, new TableLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
            }
            return((new AlertDialog.Builder(Activity)).setView(l).setPositiveButton([email protected], null).setTitle([email protected]).create());
        }