设置text组件文字显示默认值,水平靠左,垂直居中显示

This commit is contained in:
dml-hw
2021-07-06 01:37:40 +00:00
committed by Gitee
parent 5d65acbbec
commit 6d0df39b6c
@@ -41,6 +41,7 @@ bool TextComponent::CreateNativeViews()
{
/* set default text OverFlow clip */
uiLabel_.SetLineBreakMode(overflowMode_);
uiLabel_.SetAlign(UITextLanguageAlignment::TEXT_ALIGNMENT_LEFT, UITextLanguageAlignment::TEXT_ALIGNMENT_CENTER);
return CopyFontFamily(fontFamily_, ProductAdapter::GetDefaultFontFamilyName());
}