[英]Is it better to use different dimens values according to the screen density or to the screen size?
我在具有layout_marginTop=@margindimen和layout_marginBottom=@margindimen屬性的 ConstraintLayout 中有一個 TextView。 由於屏幕尺寸不同,邊距值應根據具體屏幕而變化。 這就是為什么我在 dimens 文件夾中創建了 ...