How to add border around linear layout except at the bottom?

后端 未结 4 807
时光说笑
时光说笑 2020-11-29 20:47

How to add border around linear layout except at the bottom ? LinearLayout needs to have border at left, top and right side but not at the bottom.

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 21:18

    Here is a Github link to a lightweight and very easy to integrate library that enables you to play with borders as you want for any widget you want, simply based on a FrameLayout widget.

    Here is a quick sample code for you to see how easy it is, but you will find more information on the link.

    
        
    

    So, if you don't want borders on bottom, delete the two lines about bottom in this custom widget, and that's done.

    And no, I'm neither the author of this library nor one of his friend ;-)

提交回复
热议问题