public override void convert(EasyLVHolder holder, int position, Java.Lang.String s)
 {
     holder.setText(Resource.Id.tvSelTitleItem, s.ToString());
     if (selPosition == position)
     {
         holder.setTextColor(Resource.Id.tvSelTitleItem, ContextCompat.GetColor(mContext, Resource.Color.light_pink));
     }
     else
     {
         holder.setTextColor(Resource.Id.tvSelTitleItem, ContextCompat.GetColor(mContext, Resource.Color.light_black));
     }
 }
示例#2
0
        public override void convert(EasyLVHolder holder, int position, string s)
        {
            holder.setText(Resource.Id.tvMinorItem, s);

            if (current == position)
            {
                holder.setVisible(Resource.Id.ivMinorChecked, true);
            }
            else
            {
                holder.setVisible(Resource.Id.ivMinorChecked, false);
            }

            if (position != 0)
            { // 子项右移
                TextView textView = holder.getView <TextView>(Resource.Id.tvMinorItem);
                RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams)textView.LayoutParameters;
                layoutParams.LeftMargin   = ScreenUtils.dpToPxInt(25);
                textView.LayoutParameters = layoutParams;
            }
        }
 public override void convert(EasyLVHolder holder, int position, String s)
 {
     holder.setText(Resource.Id.tvAutoCompleteItem, s);
 }
 public override void convert(EasyLVHolder holder, int position, String s)
 {
     holder.setText(Resource.Id.tvTitle, s);
 }