Customize divider / separator in dropdown of an AutocompleteTextview

前端 未结 4 1813
情深已故
情深已故 2020-12-16 14:14

I\'ve seen this question asked some other times on the site, but no one couldn\'t get any answer.

Is there any way to customize the appearance of the divider in the

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 14:51

    I had faced same problem and try many ways but not achieve result, at last i got a quick and easy way to set divider and divider lenght with AutocompleteTextview. Basically we can set a border from bottom side with TextView of ArrayAdapter Layout. Like as

    step1. Make a layout for arrayadapetr like as

    
    
    

    step2: in drawable folder create new layout its name background_single_line.xml

    
    
    
        
            
        
    
    
        
            
        
    
    

    Finally looks as divider .

提交回复
热议问题