protected float GetStartOffset (int axis, float requiredSpaceWithoutPadding);

Parameters

axis轴索引。0 表示水平,1 表示垂直。
requiredSpaceWithoutPadding给定轴上需要用于所有布局元素的总空间(包括间距,不包括填充)。

Returns

float 第一个子项沿给定轴的位置。

Description

返回第一个子布局元素沿给定轴的计算位置。