public SuggestionsRecyclerView(Context context, IAttributeSet attrs, int defStyle) : base(context, attrs, defStyle, new SuggestionsRecyclerAdapter()) { SetLayoutManager(new LinearLayoutManager(context, LinearLayoutManager.Horizontal, false)); var snapMargin = (int)16.DpToPixels(context); snapHelper = new SuggestionsRecyclerViewSnapHelper(snapMargin); snapHelper.AttachToRecyclerView(this); }