Posts

Advanced Data Binding in Android: Layout Expressions (Its a refference and Demo )

Image
  Learn how to use layout expressions for data binding in Android and make your code more concise and less error-prone. In this tutorial, you’ll learn to use layout expressions for data binding in Android. It enables you to do some powerful stuff when binding layouts and makes your code more concise and less prone to error. You’ll work on the  Go-Buy  application from  Data Binding Getting started  tutorial. It’s a simple app for making a shopping list. You’ll refactor it slightly and learn: Which mathematical expressions you can use with data binding. How to move simple logic from code to layout expressions. An easy way to reference strings and pass them arguments in data binding. How to handle view events like clicks with data binding. Note : This tutorial assumes you know the basics of Android development with Kotlin. If you’re new to Kotlin, check our  Kotlin introduction tutorial . If you’re new to Android development, read through our  Beginning ...