// Create new views (invoked by the layout manager) public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { // create a new view WeatherAlertPanel v = new WeatherAlertPanel(parent.Context) { // set the view's size, margins, paddings and layout parameters LayoutParameters = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent) }; return(new ViewHolder(v)); }
public ViewHolder(WeatherAlertPanel v) : base(v) { mAlertPanel = v; }