0
AutoCompleteTextView
및 상대적 레이아웃에 불확정 진행 막대가 있습니다. 내가 지금 가지고있는 문제는 표시되는 텍스트가 길면 진행 막대의 배경에 놓이게된다는 것입니다.텍스트가 AutoCompleteTextView의 불확정 진행 막대의 배경에 표시됩니다.
어떻게 방지 할 수 있습니까?
이 관련 XML 코드 :
<RelativeLayout
android:id="@+id/AddressContainer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/SearchBtn"
>
<AutoCompleteTextView
android:id="@+id/SearchField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:lines="1"
android:singleLine="true"
android:layout_marginRight="2dp"
android:layout_marginLeft="2dp"
android:layout_marginTop="2dp"
android:layout_marginBottom="0dp"
>
</AutoCompleteTextView>
<ProgressBar
android:id="@+id/progressBar1"
style="@style/Widget.ProgressBar.Medium"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:paddingRight="8dp"
/>
</RelativeLayout>
Link to an image showing the problem
, 당신은보다 구체적인 될 수 있으며 일부 코드와 사용하는 XML 파일을 붙여 넣기 만하면
AutoCompleteTextView
같은 몇 가지 바로 패딩을 추가ProgressBar
에서 이동합니다. –