public override void OnListItemClick(ListView p0, View p1, int position, long p3) { Fragment newContent = null; switch (position) { case 0: newContent = new ColorFragment(Resource.Color.red); break; case 1: newContent = new ColorFragment(Resource.Color.green); break; case 2: newContent = new ColorFragment(Resource.Color.blue); break; case 3: newContent = new ColorFragment(Resource.Color.white); break; case 4: newContent = new ColorFragment(Resource.Color.black); break; } if (newContent != null) SwitchFragment(newContent); }
public override void OnListItemClick(ListView p0, View p1, int position, long p3) { Fragment newContent = null; switch (position) { case 0: newContent = new ColorFragment(Resource.Color.red); break; case 1: newContent = new ColorFragment(Resource.Color.green); break; case 2: newContent = new ColorFragment(Resource.Color.blue); break; case 3: newContent = new ColorFragment(Resource.Color.white); break; case 4: newContent = new ColorFragment(Resource.Color.black); break; } if (newContent != null) { SwitchFragment(newContent); } }