O'Reilly logo

NativeScript for Angular Mobile Development by Nathanael J. Anderson, Nathan Walker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Graphic and resource handling for Android

Now, let's handle this for Android as well. We start by taking our standard 48 height fader graphic and copying it into app/App_Resources/Android/drawable-hdpi folder. We can then create appropriate resolutions of this graphic and copy into the various resolution dependent folders. The one thing to keep in mind with Android is it does not use the "@3x" suffix identifiers like iOS does so we just name all of these "fader.png". Here's a view of our graphic in one of the resolution dependent (in this case hdpi which handles "high density" screen resolutions) folders:

We can now customize our Android slider ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required