I have the following code:
Using java Syntax Highlighting
- private ListView list;
- public void onCreate(Bundle icicle) {
- super.onCreate(icicle);
- setContentView(R.layout.test);
- list = (ListView) findViewById(R.id.list);
- }
- public void onStart() {
- super.onStart();
- View view = list.getChildAt(0);
- if(view != null)
- ((TextView)view).setTextColor(Color.SOME_SPECIAL_COLOR);
- }
Parsed in 0.012 seconds, using GeSHi 1.0.8.4
But list.getChildAt(index) returns null.