嗨,大家好,我試圖做一個發言之間的小空間,誰說過,一些通過增加如下─需要幫助已停止工作
給android:layout
幫助我,這是我的結果
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:padding="6dip" >
<TextView
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/secondLine"
android:layout_alignParentLeft="true"
android:gravity="center_vertical"
android:text="@string/state1"
android:textSize="16sp" />
<TextView
android:id="@+id/secondLine"
android:layout_width="fill_parent"
android:layout_height="26dip"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_below="@id/textView1"
android:layout_marginTop="30dip"
android:ellipsize="marquee"
android:singleLine="true"
android:text="@string/sayer1"
android:textSize="12sp" />
</RelativeLayout>
現在在我加入它,當我測試一下它只是崩潰和不工作,我希望你能幫助我
發佈你的logcat,或者你正在得到什麼錯誤。還會顯示你的activity.java代碼... – InnocentKiller