简体   繁体   English

xamarin RecyclerView LinearLayoutManager StackFromEnd丢失

[英]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: 您可以像这样将LinearLayoutManagerRecyclerView关联:

var layoutManager = new LinearLayoutManager(Activity)
{
    StackFromEnd = true
};
recyclerView.SetLayoutManager(layoutManager);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 app:stackFromEnd for RecyclerView无法在xml中运行? - app:stackFromEnd for RecyclerView is not working in xml? RecyclerView 应与 stackFromEnd 保持在底部 - RecyclerView should stay at bottom with stackFromEnd 未解决的参考:LinearLayoutManager/RecyclerView - Unresolved reference: LinearLayoutManager/RecyclerView 使用LinearLayoutManager集中化RecyclerView - Centralizing RecyclerView with LinearLayoutManager 使用 LinearLayoutManager 在 RecyclerView 中滚动到顶部 - Scroll to top in RecyclerView with LinearLayoutManager 带有GridLayoutManager的RecyclerView和带有LinearLayoutManager的RecyclerView - RecyclerView with GridLayoutManager inside RecyclerView with LinearLayoutManager RecyclerView 上 LinearLayoutManager 的 scrollToPositionWithOffset 不起作用 - scrollToPositionWithOffset from LinearLayoutManager on RecyclerView not working RecyclerView 将 MaterialToggleButtonGroup 添加到父 LinearLayoutManager - RecyclerView add MaterialToggleButtonGroup to parent LinearLayoutManager ItemToucherHelper 不使用垂直 LinearLayoutManager 在 recyclerView 中滑动 - ItemToucherHelper not swipe in recyclerView with vertical LinearLayoutManager LinearLayoutManager在Android(Xamarin)的RecycleView中不起作用 - LinearLayoutManager is not work in RecycleView in Android (Xamarin)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM