CopyPastor

Detecting plagiarism made easy.

Score: 0.757189929485321; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-02-01
by Farid Haq

Original Post

Original - Posted on 2014-02-24
by simoneL



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You can different size for your tex using values-[smallestWidth].
SW : The fundamental size of a screen, as indicated by the shortest dimension of the available screen area. Specifically, the device's smallestWidth is the shortest of the screen's available height and width (you may also think of it as the "smallest possible width" for the screen). You can use this qualifier to ensure that, regardless of the screen's current orientation, your application's has at least dps of width available for it UI.
Example: Let's confider 3 type different layout , small , medium , large
values : <dimen name="text_size">10sp</dimen> values-sw375 : <dimen name="text_size">11sp</dimen> values-sw600 : <dimen name="text_size">18sp</dimen>
[![enter image description here][1]][1] [1]: https://i.stack.imgur.com/Z2Y37.png
The **sw** qualifier is used to define values based on smallest width avaialable on the device (so, when is in portrait mode). It's not based on the device density.

> The fundamental size of a screen, as indicated by the shortest dimension of the available screen area. Specifically, the device's smallestWidth is the shortest of the screen's available height and width (you may also think of it as the "smallest possible width" for the screen). You can use this qualifier to ensure that, regardless of the screen's current orientation, your application has at least <N> dps of width available for its UI.
[Source][1]

[1]: http://developer.android.com/guide/topics/resources/providing-resources.html

        
Present in both answers; Present only in the new answer; Present only in the old answer;