Style bottom Line in Android

后端 未结 14 2575
独厮守ぢ
独厮守ぢ 2020-11-28 17:53

I need to create an android shape so that only the bottom has stroke (a dashed line). When I try the following, the stroke bisects the shape right through the center. Does a

14条回答
  •  粉色の甜心
    2020-11-28 18:43

    This answer is for those google searchers who want to show dotted bottom border of EditText like here

    Create dotted.xml inside drawable folder and paste these

    
        
            
                    
                
                
                
            
        
    
    

    Then simply set the android:background attribute to dotted.xml we just created. Your EditText looks like this.

    
    

提交回复
热议问题