@Override public void onBindViewHolder(CategoryViewHolder holder, int position) { mCategoriesCursor.moveToPosition(position); int categoryColIdx = mCategoriesCursor.getColumnIndexOrThrow(DB.CATEGORY_COLUMN); String category = mCategoriesCursor.getString(categoryColIdx); holder.category.setText(category); holder.setLanguage(mLanguage); int prayerCount = DB.get().getPrayerCountForCategory(category, mLanguage.code); holder.prayerCount.setText(String.format(mLanguage.locale, "%d", prayerCount)); }
public Object get(final ATTRIBUTES iAttribute) { return underlying.get(iAttribute); }
CategoriesAdapter(Language language) { this.mLanguage = language; mCategoriesCursor = DB.get().getCategories(language); setHasStableIds(false); }
public byte[] get(byte[] key) throws IOException { return db.get(key); }