本文整理汇总了C#中RecyclerView.SetMinimumHeight方法的典型用法代码示例。如果您正苦于以下问题:C# RecyclerView.SetMinimumHeight方法的具体用法?C# RecyclerView.SetMinimumHeight怎么用?C# RecyclerView.SetMinimumHeight使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RecyclerView
的用法示例。
在下文中一共展示了RecyclerView.SetMinimumHeight方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnCreate
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
_persoon = Gegevens.GetPerson();
_groep = Gegevens.CurrentGroup();
SetContentView(Resource.Layout.Betaalscherm);
_toolbar = FindViewById<Toolbar>(Resource.Id.toolbar);
ImageView Avatar = _toolbar.FindViewById<ImageView>(Resource.Id.Avatar);
TextView Title = _toolbar.FindViewById<TextView>(Resource.Id.Title);
Title.Text = _groep.groepsnaam;
foreach (var lid in _persoon.KrijgSchuldGroep(_groep))
{
deelnemers.Add(new ListItem(lid.Key, Resource.Drawable.iconn, lid.Value, _groep));
}
_adapter = new ListItemAdapter(ListItem.Session, deelnemers);
_adapter.ItemClick += OnItemClick;
_adapter.ItemLongClick += (sender, e) => {};
_recyclerView = FindViewById<RecyclerView>(Resource.Id.recyclerview);
_recyclerView.SetMinimumHeight(ConvertDptoPx(listItemHeight*deelnemers.Count));
_recyclerView.SetLayoutManager(new LinearLayoutManager(this));
_recyclerView.SetScrollContainer(true);
_recyclerView.NestedScrollingEnabled = false;
_recyclerView.SetAdapter(_adapter);
SetSupportActionBar(_toolbar);
SupportActionBar.Title = "";
SupportActionBar.SetDisplayHomeAsUpEnabled(true);
SupportActionBar.SetDisplayShowHomeEnabled(true);
}
示例2: MakeView
private void MakeView(List<ListItem> _list, int state)
{
_adapter = new ListItemAdapter(state, _list);
_recyclerView = FindViewById<RecyclerView>(Resource.Id.recyclerview);
_recyclerView.SetMinimumHeight(ConvertDptoPx(listItemHeight*_list.Count));
_recyclerView.SetLayoutManager(new LinearLayoutManager(this));
_recyclerView.SetScrollContainer(true);
_recyclerView.NestedScrollingEnabled = false;
_recyclerView.SetAdapter(_adapter);
SetSupportActionBar(_toolbar);
SupportActionBar.Title = "";
SupportActionBar.SetDisplayHomeAsUpEnabled(true);
SupportActionBar.SetDisplayShowHomeEnabled(true);
}