【发布时间】:2014-01-28 17:40:26
【问题描述】:
有人可以解释一下吗?
为什么第三个 TextView 很奇怪?
前面2行的定义都是一样的,java的样式我没碰过...
编辑:我添加了 XML 布局文件。
XML:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/rl"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="top" >
<TextView
android:id="@+id/quadEqu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="25dp"
android:text="@string/quadequ"
android:textSize="27sp" />
<Button
android:id="@+id/closeBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="30dp"
android:text="@string/close"
android:onClick="close" />
<TextView
android:id="@+id/stepOne"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/quadEqu"
android:layout_centerHorizontal="true"
android:layout_marginTop="25dp"
android:text="@string/quadEquForm"
android:textSize="18sp" />
<TextView
android:id="@+id/stepTwo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/stepOne"
android:layout_below="@+id/stepOne"
android:text="@string/quadEquForm"
android:textSize="18sp" />
<TextView
android:id="@+id/stepThree"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/stepOne"
android:layout_below="@+id/stepTwo"
android:text="@string/quadEquForm"
android:textSize="18sp" />
</RelativeLayout>
【问题讨论】:
-
你能发布你的布局xml文件吗?