Esempio n. 1
0
        public override View GetView(int position, View convertView, ViewGroup parent)
        {
            if (convertView == null)
            {
                convertView = _mContext.LayoutInflater.Inflate(Resource.Layout.list_row, null);
            }
            Group dataEntry = _data [position];

            _mContext.SetTheme(Resource.Drawable.btn);
            TextView l1 = (TextView)convertView.FindViewById(Resource.Id.firstLine);

            l1.SetTypeface(_type, TypefaceStyle.Normal);
            TextView l2 = (TextView)convertView.FindViewById(Resource.Id.secondLine);

            l1.Text            = dataEntry.ClassName;
            l2.Visibility      = ViewStates.Invisible;
            convertView.Click += (sender, e) => {
                Settings s = new Settings(_mContext);
                s.Write("group", dataEntry.Id);
                _mContext.OnBackPressed();
            };
            return(convertView);
        }