Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Standard paddings for custom preference

I created a custom preference but its paddings do not look like paddings of a standard preference. Does anybody know a way how they can be added without playing with numbers? On the pic with the blue background is a new preference item without preset paddings.

Custom preference with blue background

After testing on several devices found out that on different devices standard paddings are different. It makes UI inconsistent if paddings were set up manually.

like image 595
Maxim Avatar asked Mar 20 '26 07:03

Maxim


1 Answers

This looks like a duplicate, the answer to this question might be able to help you.

Custom preference, targetSdkVersion="11": missing indent?

like image 193
HandlerExploit Avatar answered Mar 22 '26 20:03

HandlerExploit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!