コード例 #1
0
    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;
    }
コード例 #2
0
  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;
  }
コード例 #3
0
  public void update(RealmResults<Drop> results) {

    mResults = results;
    mFilterOption = AppBucketDrops.load(mContext);
    notifyDataSetChanged();
  }