@Override public void bindView(View view, Context context, Cursor cursor) { App app = new App( cursor.getString(AppTable.APP_COL_NAME), cursor.getString(AppTable.APP_COL_INSTALLURI), cursor.getFloat(AppTable.APP_COL_RATING), cursor.getLong(AppTable.APP_COL_ID), cursor.getInt(AppTable.APP_COL_INSTALLED) > 0); ((AppView) view).setOnAppChangeListener(null); ((AppView) view).setApp(app); ((AppView) view).setOnAppChangeListener(this.m_listener); }
@Override public View newView(Context context, Cursor cursor, ViewGroup parent) { App app = new App( cursor.getString(AppTable.APP_COL_NAME), cursor.getString(AppTable.APP_COL_INSTALLURI), cursor.getFloat(AppTable.APP_COL_RATING), cursor.getLong(AppTable.APP_COL_ID), cursor.getInt(AppTable.APP_COL_INSTALLED) > 0); AppView av = new AppView(context, app); av.setOnAppChangeListener(this.m_listener); return av; }