Riya Sehgal

Riya Sehgal

  • 1.5k
  • 616
  • 149.9k

Array index display in Android

Jul 14 2011 12:17 AM
Hi All,

I have a problem in my android application, I am displaying some items inside a gridview in Android application(Items I stored in Array) and when I click on particular item the index of that item displayed the problem is that the index is start displaying from 0 but I want it to display from 1. What should I do.....?    

This is I done on the ItemClick:

         ItemsGridView.ItemClick += delegate(object sender, ItemEventArgs args)
  Toast.MakeText(this, (args.Position).ToString(), ToastLength.Short).Show();

Answers (1)