2011-05-24 89 views
1

我在三星設備中調試Android應用程序。 但控件沒有正確顯示,如下圖。Android EditText,ButtonEdit沒有正確顯示?

第二張照片佈局XML:

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:orientation="vertical" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:id="@+id/mainlayout"> 
<Button 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Button2" 
android:id="@+id/btn2" 
/> 
<Button 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Button1 is below button2" 
android:layout_below="@id/btn2" 
android:id="@+id/btn1" 
/> 
<Button 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Button3 below button 1" 
android:layout_below="@id/btn1" 
android:id="@+id/btn3" 
/> 
</RelativeLayout> 

enter image description here

enter image description here

感謝。

+0

那麼你的問題是什麼? – 2011-05-24 19:21:40

+0

我想,他/她想問,爲什麼角落在編輯文字和按鈕視圖上是如此奇怪...... – evilone 2011-05-24 19:24:54

+0

爲什麼腐敗的地方表示箭頭? – david 2011-05-24 19:26:30

回答