Back to project page fiction.
The source code is released under:
GNU General Public License
If you think the Android project fiction listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.lithiumli.fiction.fragments; //from w w w . j av a2 s. c o m import android.content.Context; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CursorAdapter; import com.lithiumli.fiction.R; abstract public class FictionCursorAdapter extends CursorAdapter { private Cursor mCursor; private Context mContext; protected final LayoutInflater mInflater; public FictionCursorAdapter(Context context, Cursor c, int flags) { super(context, c, flags); mInflater = LayoutInflater.from(context); mContext = context; } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { final View view = mInflater.inflate(R.layout.list_item_library, parent, false); return view; } }