@Override
public void onClick(View v) {
updateSmallItems(itemIndex, true);
}
});
<BUG>LayoutParams params = new LayoutParams(i == currentItem ? (int) selectedItemWidth :
(int) itemWidth, (int) height);
linearLayout.addView(view, params);</BUG>
views.add(view);
}

@Override
public void onClick(View v) {
updateSmallItems(itemIndex, true);
}
});
int width = i == currentItem ? (int) selectedItemWidth :
(int) itemWidth;
if (titleState == TitleState.ALWAYS_HIDE) {
width = (int) (itemWidth * 1.16);
}
LayoutParams params = new LayoutParams(width, (int) height);
linearLayout.addView(view, params);
views.add(view);
}
