0
나는이 상대 레이아웃을 사용하여 화면을 디자인했습니다. 이미지가 바로 자동 완성 텍스트 상자에 정렬되도록 어떻게해야합니까 변경상대 레이아웃을 사용하여 겹치지 않는 이미지 버튼 만들기
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<AutoCompleteTextView
android:id="@+id/EditText01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true" />
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_alignRight="@+id/EditText01"
android:src="@android:drawable/ic_notification_clear_all" />
<AutoCompleteTextView
android:id="@+id/EditText02"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/EditText01" />
<ImageButton
android:id="@+id/imageButton2"
android:layout_width="24dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/EditText02"
android:src="@android:drawable/ic_notification_clear_all" />
. ?? 사전에
감사합니다 ..
P.S : 내가 picture.Here을 업로드 명성을 가지고 있지 않기 때문에 http://i.stack.imgur.com/SRG9W.png