1

I want to do something like mylistview.setElementsofView(0).getElementById.setColor("black");

currently the only way I know of doing this is setting up a custom list view adapter, setting up constructors, do conditional checks to see if view is populated, then do stuff in that view

this seems very convoluted, when other parts of the listview are so easily accessible.

is there some inherited function I can access in listview to allow me to access the elements of a particular view without a custom adapter?

Thanks for any insight

CQM
  • 42,592
  • 75
  • 224
  • 366

2 Answers2

2

The short answer to your question:

is there some inherited function I can access in listview to allow me to access the elements of a particular view without a custom adapter?

unfortunately is no.

Why do you think setting up a custom adapter is so convoluted? Just make the customized adapter class a nested class within your activity. Most likely, you'd only be looking at overriding the getView() method. In the end, you'll spend a lot less time doing this than looking for a "simple" solution.

SBerg413
  • 14,515
  • 6
  • 62
  • 88
  • very true, there is a feature I want to implement but it isn't very important and would require a custom adapter (unless it didn't) – CQM Sep 01 '11 at 23:30
0

What about

myListView.getChild(index).setColor("black");
bitle
  • 415
  • 2
  • 5