コード例 #1
0
 protected override void onBindViewHolder(SmartViewHolder holder, Model model, int position)
 {
     holder.Text(Resource.Id.name, model.name);
     holder.Text(Resource.Id.nickname, model.nickname);
     holder.Image(Resource.Id.image, model.imageId);
     holder.Image(Resource.Id.avatar, model.avatarId);
 }
コード例 #2
0
 protected override void onBindViewHolder(SmartViewHolder holder, Item model, int position)
 {
     holder.Text(Android.Resource.Id.Text1, model.Title);
     holder.Text(Android.Resource.Id.Text2, model.Name);
     holder.TextColorId(Android.Resource.Id.Text2, Resource.Color.colorTextAssistant);
 }
コード例 #3
0
 protected override void onBindViewHolder(SmartViewHolder holder, string model, int position)
 {
     holder.Text(Android.Resource.Id.Text1, model);
 }
コード例 #4
0
 protected override void onBindViewHolder(SmartViewHolder holder, object model, int position)
 {
     holder.Text(Android.Resource.Id.Text1, Java.Lang.String.Format(Locale.China, "第%02d条数据", position));
     holder.Text(Android.Resource.Id.Text2, Java.Lang.String.Format(Locale.China, "这是测试的第%02d条数据", position));
     holder.TextColorId(Android.Resource.Id.Text2, Resource.Color.colorTextAssistant);
 }