How to make Horizontal Line Ui

Helloo

How to make this type Horizontal Line

1 Like

This can be done by card view component.
Set Its stroke as you like, Elevation to 0

2 Likes

take horizontal arrangement
H- 1 px
w- fill parent
colour:- Gray

2 Likes

Using an arrangement for a line doesn’t seem same in all devices. It will be very bad in looking in low phones.
Better way that I uses is that.

Take a label.
Set Text to empty.
Set Background Color to grey or line color.
Set width to 100% and according to you.
Use height if needed

2 Likes

i used this method before but, test this method now, this will be broad.

do the same i did. you can adjust the width as per your need

Capture

1 Like

Yes, i agree. This will give the exact the same. I have used the same in my apps. It will look good if you set the height according to your wish

You can set width to fill

1 Like

Thanks for helping :relaxed: @iamwsumit

And
@Still-learning
@Raja_HarshVardhanSolanki
@Earn_Money_online
@Yashk12

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.