Skip to content

Commit

Permalink
always inflate using parent layout params
Browse files Browse the repository at this point in the history
  • Loading branch information
jgilfelt committed Mar 11, 2013
1 parent 2b3aebe commit dcafd32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public class ${objectKind}Adapter extends BaseAdapter implements SectionIndexer
// to reinflate it. We only inflate a new View when the convertView supplied
// by ListView is null.
if (convertView == null) {
convertView = mInflater.inflate(R.layout.list_item_${objectKind?lower_case}, null);
convertView = mInflater.inflate(R.layout.list_item_${objectKind?lower_case}, parent, false);

// Creates a ViewHolder and store references to the two children views
// we want to bind data to.
Expand Down

0 comments on commit dcafd32

Please sign in to comment.