2012-12-22 104 views
2

AutoCompleteTextView在彈出窗口中顯示ListView以自動完成。在彈出窗口頂部,在ListView開始之前,有一點餘量,實際上ListView的第一行看起來比其他條目高。有沒有辦法刪除邊距。對我來說,這只是一個問題,因爲將AutoCompleteTextView的「dropDownVerticalOffset」更改爲TextView的底部,否則會出現負偏移,並且如果第一行的高度沒有看到差異。Android:AutoCompleteTextView頂部邊距ListView

我該如何刪除此邊距?

+0

我無法理解你正在試圖問什麼? –

+0

你可以發佈圖片,所以我可以清楚地知道,因爲我檢查了[this]的圖片(http://saigeethamn.blogspot.in/2010/05/auto-complete-text-view-android.html)博客,沒有什麼我覺得像你在這裏解釋的 –

回答

0

嘗試XML屬性添加到您的AutoCompleteTextView:

android:popupBackground="color_what_you_want_to_background" 

希望,它可以幫助你