public DropHolder(View itemView, MarkListener listener) { super(itemView); mItemView = itemView; mContext = itemView.getContext(); itemView.setOnClickListener(this); mTextWhat = (TextView) mItemView.findViewById(R.id.tv_what); mTextWhen = (TextView) mItemView.findViewById(R.id.tv_when); AppBucketDrops.setRalewayRegular(mContext, mTextWhat, mTextWhen); mMarkListener = listener; }
public AdapterDrops( Context context, Realm realm, RealmResults<Drop> results, AddListener listener, MarkListener markListener, ResetListener resetListener) { mContext = context; mInflater = LayoutInflater.from(context); update(results); mRealm = realm; mAddListener = listener; mMarkListener = markListener; mFilterOption = AppBucketDrops.load(context); mResetListener = resetListener; }
public void update(RealmResults<Drop> results) { mResults = results; mFilterOption = AppBucketDrops.load(mContext); notifyDataSetChanged(); }