ticket.40296:Support listview with general type.

Change padding instead of gravity.