[英]xamarin RecyclerView LinearLayoutManager StackFromEnd missing
i cant find any method to set the RecyclerView to setStackFromEnd(true). 我找不到将RecyclerView设置为setStackFromEnd(true)的任何方法。 neither on the recyclerview nor on the LinearLayoutManager 既不在recyclerview上,也不在LinearLayoutManager上
mLayoutManager = new Android.Support.V7.Widget.LinearLayoutManager(this.Activity);
mLayoutManager.setStackFromEnd(true);
thanks 谢谢
You can find the StackFromEnd
property in the LinearLayoutManager
. 您可以在LinearLayoutManager
找到StackFromEnd
属性。 You can associate the LinearLayoutManager
with the RecyclerView
like so: 您可以像这样将LinearLayoutManager
与RecyclerView
关联:
var layoutManager = new LinearLayoutManager(Activity)
{
StackFromEnd = true
};
recyclerView.SetLayoutManager(layoutManager);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.