android:textSize=@dimen vs android:textSize="14sp" -


  Android: textSize = @ dimen vs. android: textSize = "14sp"  
< P> Which is better for one because efficiency or performance is a matter of concern because what I believe for @Dan, first it makes two references near @Deman and 14 SP. And only one reference is made for the 24 SP directly. its better? If there is direct "14sp" then what is the use of the @ daemon?

  Android: textSize = @ dimen  

Better solution, the dimension in the form of text is usually shared in all your apps, if you want to change the font size (in this case), you only need to change one file android: textSize = With "14sp" you have to search for all the layouts to make changes.

You can also create dimensions for every device based on size, dpi, ..... android: textSize = "14sp" Can not


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -