1

在我的应用程序中,我TextView在产品旁边有很多行,但我需要具有正确外观的数据。是否可以动态对齐对齐?

4

3 回答 3

1

您可以根据需要动态对齐文本...

但是,我想 android 中没有这样的工具可以像文本编辑器那样完全证明文本的合理性......

于 2013-04-09T07:28:32.073 回答
0

在你的 textView 中使用 Html 格式

yourTextView.setText(Html.fromHtml("<h1>Product Name</h1><br><p>Content</p>"));
于 2013-04-09T07:30:44.703 回答
0

是的,您可以在活动启动时获取 TextView 的实例

TextView t = (TextView)FindViewById(R.id.TextView1)
t.setTextAppearance(context,parameter)
于 2013-04-09T07:31:10.133 回答