我想通过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>
字符串.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="intro">................. ....</string>
<resources>
我该如何展示这个视图? 抱歉我的英语不好,感谢你的帮助。