how to set button size in inches in android I want to set button size in inches according to the device screen size , can anyone help. It means I want to set in percentage.
You can use this library called sdp where it helps you most of the time.
This android lib that provides a new size unit - sdp (scalable dp). This size unit scales with the screen size. It can help Android developers with supporting multiple screens.
Lastly inches are not recommended for design. for more details follow this link https://material.io/design/layout/understanding-layout.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.