public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { FrameLayout itemView = (FrameLayout)LayoutInflater.From(parent.Context) .Inflate(Resource.Layout.item_discover, parent, false); itemView.Click += VItem_Click; itemView.RemoveViewAt(2); return(new ReceiverScanHolder(itemView)); }
public static void ChangePage(this BottomTabbedRenderer renderer, FrameLayout pageContainer, Page page) { renderer.Context.HideKeyboard(renderer); if (page == null) { return; } if (Platform.GetRenderer(page) == null) { Platform.SetRenderer(page, Platform.CreateRenderer(page)); } var pageContent = Platform.GetRenderer(page).ViewGroup; pageContainer.AddView(pageContent); if (pageContainer.ChildCount > 1) { pageContainer.RemoveViewAt(0); } EnsureTabIndex(renderer); }
private static void RemoveTitle(FrameLayout container, int position = 1) { container.RemoveViewAt(position); }