LinearLayout linearLayout = new LinearLayout(context);
linearLayout.setOrientation(LinearLayout.HORIZONTAL);
linearLayout.setGravity(Gravity.CENTER);
LayoutParams layoutParams = new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, layoutHeight);
addView(linearLayout, layoutParams);
<BUG>if (isClassic()) {
createClassicItems(linearLayout);</BUG>
} else {
createSmallItems(linearLayout);
}

LinearLayout linearLayout = new LinearLayout(context);
linearLayout.setOrientation(LinearLayout.HORIZONTAL);
linearLayout.setGravity(Gravity.CENTER);
LayoutParams layoutParams = new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, layoutHeight);
addView(linearLayout, layoutParams);
if (titleState != TitleState.ALWAYS_HIDE &&
(items.size() == MIN_ITEMS || titleState == TitleState.ALWAYS_SHOW)) {
createClassicItems(linearLayout);
} else {
createSmallItems(linearLayout);
}
