ly.img.android.pesdk.backend.text_design.model.row.defaults / TextDesignRowSingle / calculateLayoutElements

calculateLayoutElements

protected open fun calculateLayoutElements(): MutableList<TextDesignElement>

Overrides TextDesignRow.calculateLayoutElements

This method creates and returns all the TextDesignElements in this row based on the passed size.width. It must not rely on the height because this has not been calculated - in fact the height has to be derived from the width within this method. That means that this method should update size.height to a height that it needs to draw its contents into.

Return
: An array of TextDesignElement objects.