Android studio sets Button rounded corners

Button rounding

Create three new xml files, named btn_normal.xml, btn_press.xml, btn_shape.xml, and move the three xml files from the layout directory to the drawable directory.
Steps to create a new xml file
Move the mouse to the newly created xml file, right-click, and operate as follows.
Steps to move the xml file
Change the layout here to drawable.
Move to drawable
btn_normal.xml is normal style

Guess you like

Origin blog.csdn.net/weixin_43230707/article/details/113915055