为什么我看不到我在textView中写的所有短语?

时间:2011-06-06 16:27:03

标签: android textview full-text-search

我用2 TextView创建一个线性像这样:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:background="@drawable/popup_message"
android:orientation="vertical">

<TextView android:text="@string/atten"
          android:id="@+id/title"
          android:textColor="@color/white"
          android:textSize="15sp"
          android:textStyle="bold"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:paddingLeft="30px"
          android:paddingTop="15dp"></TextView>
<TextView android:text="@string/msg"
          android:id="@+id/msg"
          android:textColor="@color/littleBlack"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:paddingRight="10dp"
          android:textScaleX="1"
          android:paddingLeft="25dp"
          android:paddingTop="10dp"></TextView>

当我把这个包含在其他页面上的某个时候,我有时会看到全文。任何的想法 ? ps:原谅我的英语

1 个答案:

答案 0 :(得分:0)

我知道,你对观点的测量结果很糟糕。最好的方法是始终使用spdip来衡量您的观点。仅当您定位特定设备时,才能使用px。尝试解决这个问题,也许你会找到答案。

相关问题