ConstantValueDescription
inherit0Default
gravity1Default for the root view. The gravity determines the alignment, ALIGN_NORMAL, ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph’s text direction
textStart2Align to the start of the paragraph, e.g. ALIGN_NORMAL.
textEnd3Align to the end of the paragraph, e.g. ALIGN_OPPOSITE.
center4Center the paragraph, e.g. ALIGN_CENTER.
viewStart5Align to the start of the view, which is ALIGN_LEFT if the view’s resolved layoutDirection is LTR, and ALIGN_RIGHT otherwise.
viewEnd6Align to the end of the view, which is ALIGN_RIGHT if the view’s resolved layoutDirection is LTR, and ALIGN_LEFT otherwise
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐