Android – View Binding
View binding is a feature that allows you to more easily write code that interacts with views. Once view binding is enabled in a module, it generates a binding class for each XML layout file present in that module.Read More →
View binding is a feature that allows you to more easily write code that interacts with views. Once view binding is enabled in a module, it generates a binding class for each XML layout file present in that module.Read More →
Intro In this post we will show you how you can get the visibility of a view element in Android when you scroll the screen, how to determine how much of a view is visible on the screen at given time, to follow the changes in visibility of the givenRead More →
Intro In this post we will demonstrate how to create a bottom navigation bar in Android using BottomNavigationView. BottomNavigationView creates bottom navigation bars, making it easy to explore and switch between top-level content views with a single tap. You should use bottom navigation for top level destinations that need toRead More →
This is progress dialog util class if you need in your project. It is written in Kotlin. You can just copy the code and paste inside you own class and use it straight out of the box. Just pass context and message. Also, you can adjust the position, color, paddingRead More →
This example is targeting conversion of Base64 String to Image and representing that image on screen using Kotlin programming language language. The advantages of using Base64 string to image is the load times, especially if you are getting the image from server. The downside of using Base64 String is thatRead More →
Image to Base64 String example In this example, we will be learning how to implement conversion from image to Base64 String image. In the previous post, we have covered the case when we needed to convert Base64 String to Image. In short, we are going to take one image fromRead More →
This is simple example how to implement double-click on back button to exit the application. There will be a message alerting you that clicking again on back button will exit.Read More →
Exit Dialog for Android Application This is an example of implementing simple Exit Dialog with two options, YES, and NO. The code is simple and straight forward. All you need to do is to override onBackPressed() in your activity and add a simple AlertDialog (you can find tutorial aboutRead More →
Intro This is part three of the Navigation drawer in Android post and it will be a demonstration on how to add drop-down items on a navigation drawer without using ExpandableListView. The Exercise We will continue working on the same project that we created for part one and part two ofRead More →
This example shows how can user go to phones gallery, select a image and after that display it on screen. This example can be used in variety of scenarios, from setting profile pictures to setting backgrounds. This example is very similar to Take picture with camera and make a previewRead More →