开发者

why i can't see all phrases i wrote in the textView?

开发者 https://www.devze.com 2023-03-10 14:16 出处:网络
i create a linear with 2 TextView 开发者_如何学Clike this : <LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"

i create a linear with 2 TextView 开发者_如何学Clike this :

<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>

when i include this on other pages sometime i see the full text sometime no . any idea ? ps : forgive my english


I see, you're messing a lot with the measurements of your views. The best way is to always use sp or dip to measure your view. px can be used only if your targeting a specific device. Try resolving this problem and maybe you'll find the answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消