public override Object InstantiateItem(ViewGroup container, int position) { var view = LayoutInflater.From(container.Context).Inflate(Resource.Layout.item_pager, null); SpinKitView spinKitView = view.FindViewById <SpinKitView>(Resource.Id.spin_kit); var name = view.FindViewById <TextView>(Resource.Id.name); var style = SpinStyle.Values()[position]; name.Text = style.Name().ToLower(); var drawable = SpriteFactory.Create(style); spinKitView.SetIndeterminateDrawable(drawable); container.AddView(view); return(view); }
public Holder(View itemView) : base(itemView) { _spinKitView = itemView.FindViewById <SpinKitView>(Resource.Id.spin_kit); }