In this tutorial, we will teach you how you can implement a swipe-to-refresh UI in your android app. We will be using Kotlin. Android has a UI component named SwipeRefreshLayout. It allows you to perform an action when user swipes up or pulls down the UI from above. We will display few messages when chat is opened. And when user wants to read old messages, he can simply swipe-up to fetch the previous messages. Download source code: https://adnan-tech.com/android-chat-app-in-kotlin-and-node-js/
In this tutorial, we will teach you how you can implement a swipe-to-refresh UI in your android app. We will be using Kotlin. Android has a UI component named SwipeRefreshLayout. It allows you to perform an action when user swipes up or pulls down the UI from above. We will display few messages when chat is opened. And when user wants to read old messages, he can simply swipe-up to fetch the previous messages. Download source code: https://adnan-tech.com/android-chat-app-in-kotlin-and-node-js/