-2

I am trying to implement a configuration layout like the one in whatsApp.

The layout looks like a listview, but every row can have different layout and onclick event.

Using a listview doesn't seems to be the right choice, so I tried to mimic the layout with a vertical linearlayout and several textviews, but turned out the look and feel doesn't quite right.

Am I missing any default layout? Or any suggestion is appreciated. Thanks.

Listview like layout enter image description here

When the row is onclick enter image description here

Alvin
  • 515
  • 6
  • 11

1 Answers1

0

Look at this Inflating custom View in ListView according to position as u can see, u can use layout inflator

if(position > 10) {
         convertView = mInflater.inflate(R.layout.custom, null);
         Log.i(TAG, "Inflated custom layout");
 }

Also you can inflate different fragments with your menu block, and describe logic of clicking, checking, etc... in fragment's.

Community
  • 1
  • 1
once2go
  • 1,452
  • 1
  • 13
  • 21