Textview 环绕视图 [英] Textview wrap around View

查看:26
本文介绍了Textview 环绕视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让我的水平布局充分利用可用空间.

I'm trying to make my horizontal layouts take advantage of the room available.

在显示活动的信息中,我有一个事实框",后跟一个大文本框.我希望信息框向右浮动,类似于下图.

In an info showing activity I have a 'fact box' followed by a large box of text. I'd like the infobox to float right, similar to the following picture.

这可以使用 android TextView api 吗?

Is this possible using the android TextView api?

推荐答案

我建议为此使用 WebView.您可以使用通常的 HTML/CSS 格式设置 Web 视图中的文本格式,使用这些格式可以非常简单地完成您想要的布局.

I would suggest employing a WebView for this. You can format the text in a web view with the usual HTML / CSS formatting, with which your desired layout is pretty simple to accomplish.

这篇关于Textview 环绕视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆