You can have your own CursorAdapter, and in its bindView do whatever
calculations and data mapping you need.
On Tue, Jun 23, 2009 at 7:19 PM, nbadal ladabk...@gmail.com wrote:
Hello, I'm looking for a way to insert data into a cursor that is
separate from the SQL database it retrieves the
So if I wanted to intercept the date data from the database, then do
my calculations, then send that number back out to a textview in the
list item, what would I need to do?
On Jun 24, 10:07 am, Marco Nelissen marc...@android.com wrote:
You can have your own CursorAdapter, and in its bindView
nbadal wrote:
Hello, I'm looking for a way to insert data into a cursor that is
separate from the SQL database it retrieves the rest of the
information from.
You do not insert into Cursors. You insert into the SQLiteDatabase or
ContentProvider or other source of the Cursor.
Is there any way
Would something like this work?
@Override
public void bindView(View view, Context context, Cursor cursor) {
TextView daysUntil = (TextView) view.findViewById(R.id.daysuntil);
String days = /* Calculations Here */
daysUntil.setText(days);
super.bindView(view, context, cursor);
nbadal wrote:
Would something like this work?
@Override
public void bindView(View view, Context context, Cursor cursor) {
TextView daysUntil = (TextView) view.findViewById(R.id.daysuntil);
String days = /* Calculations Here */
daysUntil.setText(days);
Alright, Thanks for the help!
On Jun 24, 10:24 am, Mark Murphy mmur...@commonsware.com wrote:
nbadal wrote:
Would something like this work?
@Override
public void bindView(View view, Context context, Cursor cursor) {
TextView daysUntil = (TextView) view.findViewById(R.id.daysuntil);
6 matches
Mail list logo