How could i pass the value from base adapter to activity

前端 未结 1 775
死守一世寂寞
死守一世寂寞 2021-01-28 16:48

I am working in one app where i need to pass the value from base adapter class to activity

here is the snippet code:

public View getView(int position, Vi         


        
相关标签:
1条回答
  • 2021-01-28 17:15

    U can use below code inside ur activity

     for(int i=0;i<list.getCount();i++)
      {
       //here u can add i values to an array for storing positions or do anything else u want
      }
    
    0 讨论(0)
提交回复
热议问题