I want to place a image view after every 6 items.
Asked
Active
Viewed 67 times
-4
-
1Please post some relevant code, describing what effort you made and where exactly are you stuck – Ankur Aggarwal Dec 05 '16 at 05:02
-
You should post some code then someone can help you with that. – Rajesh Panchal Dec 05 '16 at 05:05
2 Answers
1
in getView()
method of base adapter try following logic:
if((position%6)==0)
{
imageview.setImageResource(R.drawable.yourparticularimage)
}
else
{
//do other funtionality
}

Satish Silveri
- 393
- 4
- 9
-
after every 6 items how can i achive ...from example after 12th positon i want to get same image@satish Silveri – Praveen Reddy Dec 05 '16 at 05:30
-
0
Please go through callback of Adapter getItemViewType. You can load different views/layouts based on ITEM_TYPE. For your reference, Android ListView with different layouts for each row