2017-09-21 11 views
0
내가 customAutoCompleteTextView을 클릭하면 역사의 메시지 목록을 만들고 싶어

및 는 빨간색 원 부분어떻게 항상 항목을 목록으로 만들 수 있습니까? 내가 <code>BastAdapter</code>를 사용

Image is here

을했다하지만 난 "모두 지우기" 항목을 만드는 방법 아무 생각이 무엇인지 항상 표시됩니다 , BTW 기록 목록에 새 항목을 추가하고 싶지 않습니다. 어떻게해야합니까 ??

+0

당신이'지우기 All'을 클릭하면, 당신이 그것을 .Isn't 기록 데이터 및 기타 데이터를 제거하려면? – KeLiuyue

+1

커스텀'AutoCompleteTextView'이고 커스텀 드롭 다운리스트를 보여주고 있다면, 드롭 다운으로 보이고있는'ListView'에 꼬리말을 추가하고 "Clear All"을 버튼이나 TextView로 추가 할 수 있습니다. –

+0

@ KeLiuyue 맞아 –

답변

0

이 시도 :

<?xml version="1.0" encoding="utf-8"?><!-- File created by SkillsOn --> 
<RelativeLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" android:layout_width="match_parent" 
    android:layout_height="match_parent"> 

    <!--This could be anything that shows your Message list--> 
    <ListView 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:layout_alignParentTop="true" 
     android:layout_below="@+id/clearAll"/> 

    <!--This is clearAll button and is always visible--> 
    <Button 
     android:id="@+id/clearAll" 
     android:text="Clear all" 
     android:layout_alignParentBottom="true" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:layout_gravity="bottom"/> 
</RelativeLayout> 
+0

CustomAutoCompleteTextView 레이아웃을 설정하는 방법, item_layout을 의미하지 않습니다. –