디자이너가 제공 한 애셋을 사용하여 오른쪽에 ImageButton이있는 SearchBox를 구현하는 데 문제가 있습니다. 문제가 자산 또는 구현으로 인해 발생하는지 잘 모르겠습니다.RelativeLayout에서 9patch를 사용하여 ImageButton 옆에 자동 완성 텍스쳐 뷰 구현
It should look like this, and it does in hdpi phones.
But look how it looks like in xhdpi emulated phone
너무 실제 장치에서 테스트되었습니다. hdpi가없는 모든 장치는 두 번째 예제와 같습니다.
<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"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity"
android:background="#e9e9e9" >
<ImageButton
android:background="@drawable/home_btn_ubicacion"
android:src="@drawable/home_icono_ubicacion"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:id="@+id/button"/>
<AutoCompleteTextView
android:layout_toLeftOf="@id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/home_input_buscar"
android:hint="Ciudad o Barrio"
android:layout_alignParentLeft="true"
/>
난에서 GitHub의에 전체 테스트 프로젝트를 공유하고있어, 그래서 때문에 내 명성의 이미지를 게시 할 수 없습니다 해요 : : github.com/ejmedina/SearchBoxTestProject 이 내 구현
다시 말해서 담당자가 적어 링크처럼 보이지 않습니다. 언제나처럼 미리 감사드립니다.