Method of realizing rounded border layout effect by Android programming

This paper describes the method of Android programming to realize the layout effect of rounded border. Share with you for your reference, as follows:

Tablelayout is used here. Look at the renderings first

Let's look at the layout file

In the table layout, each tablerow represents a row, and each basic control in the tablerow is a column. This is a layout of three rows and two columns

The table background here is a custom shape. Let's take a look at the codes of the three shapes.

shape_ top_ corner_ no_ bottom_ Line.xml file: white background with rounded corners at the top, gray border, box without bottom border

shape_ no_ corner_ without_ Bottom.xml file: white background without rounded corners, gray border, box without bottom border

shape_ bottom_ corner_ no_ top_ Line.xml file: bottom rounded white background gray border box

More readers interested in Android related content can view the special topics of this site: summary of Android layout skills, introduction and advanced tutorial of Android development, summary of Android debugging skills and common problem solving methods, summary of Android basic component usage, summary of Android view skills and summary of Android control usage

I hope this article will help you in Android programming.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>