O'Reilly logo

Getting Started with NativeScript by Nathanael J. Anderson

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

Chapter 3. Declarative UI, Styling, and Events

Since we want to produce sleek and nice-looking applications, we are going to investigate the Declarative UI and its styling system in this chapter. In addition, we are going to explore several of the most frequently used common components and the event system. Finally, we'll wrap up the chapter by actually styling the main screen.

In this chapter, we will be covering the following topics:

  • The Declarative UI
  • Using the Declarative UI for our Settings page
  • Binding and events
  • Styling the UI
  • Trying out and styling our application

Declarative UI

We are going to look at how the Declarative UI makes our lives much simpler in that we typically only have to create a single XML file to cover the way our app looks on ...

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