元素
在評估期間,區塊會細分為「資料列」,其中包含非重疊元素和元素墊片。
元素
元素代表方塊上的視覺元素。例如:
每個元素都是定義視覺元素邊界的矩形,以及各類型元素專屬的額外資料。
元素的邊界通常是由某些外部類別 (也就是所代表的內容) 決定。舉例來說,欄位元素代表欄位,大小取決於欄位的 getSize
方法。
元素空格字元
元素空格字元是位於資料列各元素之間的空白空間。
測地線的邊界是由測量期間的算繪資訊決定。測量區塊的所有元素後,算繪資訊會在元素之間插入所選大小的空格。這些大小不必一致;它們通常會因空格字元兩側的元素而異。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[null,null,["上次更新時間:2023-12-02 (世界標準時間)。"],[[["During the measurement phase, a block is deconstructed into rows comprising elements and element spacers for rendering purposes."],["Elements represent the visual components of a block, including fields, icons, connections, and corners, with their size usually determined by the element they represent."],["Element spacers are empty spaces inserted between elements to control the spacing and visual layout of the block."]]],["During the measurement phase, blocks are divided into rows with elements and spacers. Elements, such as fields, icons, connections, and corners, are represented by rectangles with specific data. Their sizes are dictated by external classes, like a field's `getSize` method. Element spacers are empty spaces inserted between elements by the render info, with varying sizes based on the adjacent elements. The render info determines spacer sizes after measuring all block elements.\n"]]