2011-09-06 86 views

回答

0

我認爲處理這個的好辦法,是爲活動創建一個背景圖像。然後,你可以在這個位置放置兩個EditText-Widget。只能將EditText-Widgets設置爲100%透明。 (如何設置透明?看到這個問題:Android EditText Transparent Background)。

0

我想在你的佈局,你可以把2編輯文本 和圖片 那麼你將有一個佈局,將有背景的圖片,之後ESIT箱

0

是。設置線性/相對或任何佈局的背景,以將EditTexts保存到銀色圖像。

添加EditText並將背景設置爲透明的顏色。添加你想要的文字提示。

使用邊框添加另一圖像視圖。

3

嘗試這個

<LinearLayout android:layout_height="wrap_content" 
    android:layout_width="match_parent" android:background="@color/front_white" 
    android:orientation="vertical"> 
    <EditText android:layout_height="35dip" android:layout_width="fill_parent" 
     android:id="@+id/editText1" android:background="@color/front_white" 
     android:hint="Email Address"></EditText> 
    <TextView android:layout_height="1dip" android:layout_width="fill_parent" 
     android:background="@color/dark_gry" /> 
    <EditText android:layout_height="35dip" android:layout_width="fill_parent" 
     android:id="@+id/editText2" android:background="@color/front_white" 
     android:hint="Re-enter"></EditText> 
</LinearLayout> 

我希望這是你在XML文件中使用這個屬性找什麼..

0

機器人:drawableBottom = 「@繪製/ ic_launcher」