EditTextの下に画像が必要なので、実際に画像に書き込んでいるように見えます。たとえば、画像にカーソルが表示されています。誰か助けてもらえますか?
2 に答える
1
まず、Edittextの背景として画像を設定できます
次に、次のようにframeLayoutを使用できます
<FrameLayout
......
...... >
<ImageView
.....
....../>
<EditText
....
..../>
</FrameLayout>
于 2012-12-12T11:10:21.220 に答える
0
Android Killerが言ったように行うか、相対レイアウトを使用してimageviewを配置し、次にimageviewの前にedittextを配置することができます。コードは次のようになります
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".EventActivity" >
<ImageView
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#CCFFCC"/>
<EditText
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#00000000"
/>
</RelativeLayout>
于 2012-12-12T11:16:50.360 に答える