0

I'm using simple adapter for listlist view:

        //adapter for list
    simpleAdapter = new SimpleAdapter(
            this,
            Splash.scriptList,
            R.layout.mytextview,
            new String[] {"value","key"},
            new int[] { android.R.id.text1,android.R.id.text2 });

i need that only specific rows will be in different color , (maybe add icon to them).

for example if i have 10 items in row, i need that rows 3,5,6 will be displayed in different style.

How can i do that?

Eli
  • 586
  • 2
  • 12
  • 28
  • 1
    https://stackoverflow.com/questions/4777272/android-listview-with-different-layout-for-each-row?rq=1 – CommonsWare May 01 '16 at 11:36
  • you can use a Boolean and change its value each time row gets generated and when its true change background of the` textview` and when its false don't do anything. – Atiq May 01 '16 at 11:37

0 Answers0