What is the equivalent of CSS % in android?

I’m new to android development and I am making small, small programs as a practice. … Read more What is the equivalent of CSS % in android?

I’m new to android development and I am making small, small programs as a practice. I was previously working on web development. In CSS we use % or vw, vh for sizes according to screen width or height. But in android I found only px, dp and sp. I just want to know is there any equivalent of CSS %, vw or vh in android as well. If so how to use them?

Thanks in advance

Source: CSS – Stack Overflow


Categories: NewsTags: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *