Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with NativeScript

You're reading from   Getting Started with NativeScript Explore the possibility of building truly native, cross-platform mobile applications using your JavaScript skill—NativeScript!

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785888656
Length 168 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Nathanael J. Anderson Nathanael J. Anderson
Author Profile Icon Nathanael J. Anderson
Nathanael J. Anderson
Arrow right icon
View More author details
Toc

Screen size differences


Now, in most cases, the completely different screen sizes can be handled using the platform screen size .minW or minH qualifiers so that you can build a custom layout when you are dealing with tablets versus a phone-sized device. Unfortunately, this is not always the case for any image you might want to show. In this case, you have to do a bit of manual work. Each image has a set resolution. The larger the resolution of the image, the more memory it takes, but on higher resolution devices, images obviously look much better. You can deal with images in one of the following three ways to try and make your application look the best on all devices.

Fonts

The first is the way we did in crossCommunicator. We used an icon font that has all the images we needed as a font character. Fonts are scalable, so irrespective of the resolution of the screen, the font renders and looks really nice. To make an even smaller font file, there are several websites, such as http://icomoon...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime