SP vs DP Android: Choosing the Right Unit for Responsive Design
sp is a scalable unit that respects a user’s font-size setting, while dp is a density-independent pixel that keeps UI elements the same physical size across screens. Designers often type “sp” when they mean “dp” because both look similar in code; the mix-up shows up when buttons look perfect on one phone but feel huge…