// =========================================================== // Methods // =========================================================== protected void setItemsPositions(final float pSize, final float pPositionScale) { final float basePosition = 0; // Log.e("aaa", "W=" + W + "; baseX=" + baseX + "; scale=" + mPositionScale + "; count=" + // mItems.size()); float offset = 0; for (final IEntity item : mItems) { final float pos = basePosition + offset * pPositionScale; offset += getItemSizeMain(item); if (mDirection == eDirection.DIR_HORIZONTAL) { Anchor.setPosCenterLeft(item, pos, getHeight() / 2); } else { Anchor.setPosBottomMiddle(item, getWidth() / 2, pos); } } }