Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android layout equivalent of HTML HR tag?

Is there any Android layout equivalent for HTML <HR /> tag?

like image 580
Mithun Sreedharan Avatar asked Aug 23 '11 08:08

Mithun Sreedharan


People also ask

What HTML element is hr /> tag?

<hr>: The Thematic Break (Horizontal Rule) element The <hr> HTML element represents a thematic break between paragraph-level elements: for example, a change of scene in a story, or a shift of topic within a section.

Is HR tag still used?

The <hr> tag in HTML stands for horizontal rule and is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections. The <hr> tag is an empty tag, and it does not require an end tag. Used to specify the alignment of the horizontal rule.

Is HR tag deprecated?

All "presentation attributes" of the hr element were deprecated in HTML 4.01, and are not supported in XHTML 1.0 Strict DTD.

Is HR tag used in HTML5?

HTML <hr> Tag Attributes in HTML 4These attributes are not supported in HTML5. It sets the alignment of the horizontal rule. To specify the width of the rule. It specifies the height of the horizontal line.


1 Answers

You can use next trick:

<View     android:layout_width="match_parent"    android:layout_height="2dp"           android:background="#ffffff"/> 

This will draw horizontal line of white color with 2dp in height.

like image 90
inazaruk Avatar answered Sep 22 '22 03:09

inazaruk