On Sun, Jul 17, 2011 at 6:24 PM, Aaron Mulhall <[email protected]>wrote:

> I was thinking I might need to do something like that but didn't know where
> to start. As I'm a complete newbie I still haven't got my head around The
> SimpleCursorAdapter. Any suggestions on how would I go about extending it
> here to allow the text from the edittext fill the 6th TextView in each item?


I've not used SimpleCursorAdapter, but I would imagine it would go something
like this:

class MySimpleCursorAdapter extends SimpleCursorAdapter
{
 public View getView(...)
 {
  View v = super.getView(...); // <- Does all the SimpleCursorAdapter crap,
I assume

  // Now do all you custom crap
  WhateverViewTypeImReturning w = (WhateverViewTypeImReturning) v;
  w.setTextOnSixthItem(getTextFromEditText());
  return w;
 }
}

Should go without saying that is untested and is probably wrong in many
ways, but should give you an idea of what to look at.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to