About Ravi Rupareliya

Find more about me on:

Here are my most recent posts

Image Loading With DataBinding in Android

Image Loading With DataBinding

We have already seen DataBinding Basics and setting fonts through DataBinding in previous tutorials. Today we will take a look at Image loading with databinding .

Step 1 : Define POJO/Model class

Continue Reading

Setting custom font through XML with DataBinding

Today we will learn about setting custom font through XML with DataBinding. We already know how to set custom font through java code.

It will set font type for given TextView or other View. But what if we have more number of TextViews/EditTexts throughout the application and that also with multiple custom fonts? We need to declare those number of objects for TextView/EditText as well as for TypeFace declaration. Don’t you think it will increase number of codes? Yes, so other option will come in your mind is to create Custom TextView/EditText. Not a bad idea but we have 15-20 custom fonts throughout the app so creating those number of Custom class would realy be a bad idea. So what is the simplest and easy solution? Answer is DataBinding.
Continue Reading

Working with Data Binding Android

In I/O 2015 Google announced a data binding library for Android. With data binding, you create an ongoing link between an element in the user interface and a value. Data binding is the process that establishes a connection between the application UI and business logic.

As a developer we always try to do tasks with lesser code, findViewById and setText would be the things which will increase line of codes. Data binding eliminates needs of these methods.

DataBinding is a support library so you can use it with the version higher than Android 2.1. Now we will see step by step instruction for how to use DataBinding in real time.
Continue Reading

Android N UI Leak Reveals Redesigned Notification

The screenshot initially spotted by Android Police has risen up out of Google’s Android designer site making it exceptionally genuine than a hole. The screenshot reveals some UI part of Android N like Notification and setting pannel.

Starting off with the notification toggles, there will be a new paged interface while also making the customization process of the toggles easier for the user.

Android N

Source : Android Police

There is new look of Notifications also. That data is accessible in the present notice UI, yet you need to long-press to see it.

Android N

Source : Android Police

These mockups are apparently in view of ahead of schedule Android N screenshots and could differ when the engineer reviews are accessible for all to download.

If you have noticed google has posted video about Run Forrest Run! last week to show off Google Maps’ capabilities, you can clearly see that app drawer icon have been removed from Home Screen.

Android N