相关疑难解决方法(0)

如何布局文本以在图像周围流动

你能否告诉我是否有办法在图像周围布置文字?像这样:

------  text text text
|    |  text text text
-----   text text text
text text text text
text text text text
Run Code Online (Sandbox Code Playgroud)

我从android开发者那里得到了关于这个问题的回复.但我不确定通过自己的TextView版本意味着什么?感谢任何提示.

2010年2月8日星期一晚上11:05,Romain Guy写道:

嗨,

仅使用提供的小部件和布局无法做到这一点.您可以编写自己的TextView版本来执行此操作,这应该不难.

android android-layout

68
推荐指数
4
解决办法
3万
查看次数

Textview环绕视图

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

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

这可能使用android TextView api吗?

示例图片

android textbox alignment textview android-layout

29
推荐指数
3
解决办法
1万
查看次数

如何让TextView有多行?

我想通过TextView和strings.xml显示多行.我想先显示几行,直到页面中间,其他行显示完整的页面.我想先显示几行宽度相同的页面.

页面左侧是图片,页面右侧是我的句子.

这是我的代码,但这显示了搞砸.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal">
<ImageView 
    android:id="@+id/logoImage"
    android:src="@drawable/ic_launcher"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>
<TextView
    android:id="@+id/txtIntroduce"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/txtIntroduce"
    android:textColor="@color/blue_text"
    android:background="@color/blue"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

strings.xml中:

<?xml version="1.0" encoding="utf-8"?>
<resources>
     <string name="intro">.................  ....</string>
<resources>
Run Code Online (Sandbox Code Playgroud)

我该如何展示这种观点?抱歉我的英语很差,谢谢你的帮助.

user-interface android textview android-layout

11
推荐指数
2
解决办法
5万
查看次数