question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change dp to sp in TestFontScaleConfigurationUtilActivityTest

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rt4914commented, Nov 26, 2020

@rt4914 , this sounds easy enough. Can I please do it?

@ForgottenProgramme Assigned. Thanks.

0reactions
rt4914commented, Nov 26, 2020

@ForgottenProgramme Apologies for the inconvenience, but I dig deeper into the code and saw that this is correct implementation. We cannot change this further. Therefore closing the PR and the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to convert DP, PX, SP among each other, especially DP ...
The formula is px = dp * density . So you just multiply or divide by the density to convert between px and...
Read more >
What is the difference between “px”, “dip”, “dp” and “sp”?
The ratio of dp-to-pixel will change with the screen density, but not necessarily in direct proportion. Note: The compiler accepts both “dip” and...
Read more >
Apps, Web3 and Conversational AI | DP/PX converter - Pixplicity
This tool helps you convert pixels to and from DPs (density independent pixels). Enter a value and unit to calculate the dimensions for...
Read more >
Support different pixel densities - Android Developers
The sp unit is the same size as dp, by default, but it resizes based on the user's preferred text size. For example,...
Read more >
Android App Development Tutorial 8: Difference in dp, sp, px, pt
Learn what is the difference between dp (density independent pixels), sp (scale independent pixels), etc.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found