Posts

Showing posts from 2022

How to integrate razorpay payment gateway in Kotlin android App?

Image
Many apps use the payment gateway features but the integration of this payment gateway is a difficult task in Android applications.  So to make this task simple and easy Razorpay have provided a service with the help of this we can integrate the payment solutions in our app very easily and we can also manage all payment methods in our app .  In this article, we will take a look at the implementation of a payment gateway in our Android kotlin app. You can integrate less time and minimum code.

Draw Polylines on Google Maps in Android using Jetpack Compose

Image
In this article, we will look at drawing Polyline on Google Maps in Android using Jetpack Compose. Google Maps is used in many Android applications. While using Google Maps there are many modifications that you will get to see while using Maps in this app. When we have used Google Maps in different apps such as OLA and Uber, we will see lines and routes drawn on our Maps.

Place a Marker on center of the screen on Jetpack compose map

Image
In this article we will learn How to place a marker on center of the screen on Jetpack compose map. Place marker on center of the screen on compose map android same as like in uber and ola apps. When moving or scrolling a google map marker should not move and it should give latlng coordinates.

Custom info window on map marker clicks in Android using Jetpack Compose

Image
In this article, we will take a look at How to use a custom icon as a marker & Custom info window on map marker clicks in Android using Jetpack Compose. Customizing a marker's info window   You can customize a marker's info window contents by using the MarkerInfoWindowContent element, or if you want to customize the entire info window, use the MarkerInfoWindow element instead.  Both of these elements accept a content parameter to provide your customization in a composable lambda expression

Add Custom Marker to Google Maps in Android using Jetpack Compose

Image
In this article, we will take a look at How to use a custom icon as a marker on google maps in our android application. Many android applications use maps to display the location. We can get to see they use custom marker icons like a delivery boy image or an icon to display a marker on the map. 

Set properties on a map in Android using Jetpack Compose

Image
In this article, we will take a look at the implementation of properties & different types of Google Maps in Android using Jetpack Compose. When we use the default application of Google Maps we will get to see different types of Maps present inside this application. We will get to see satellite maps, terrain maps, and many more. We have seen adding Google Maps in the Android application. 

Add Marker to Google Maps in Android using Jetpack Compose

Image
In this article we will learn Integrate Google Map 's markers Into the Jetpack Compose App | Maps Compose Library What if we want to mark places,  for example, nearest gas stations, hotels, or whatever you need? Library got us covered. We can use Markers for that. Marker composable has a couple of parameters. We will go through the most commonly used, but feel free to check them all. state : MarkerState — used to control or observe the marker state such as its position and info window. draggable : Boolean — sets the draggability for the marker. flat : Boolean — sets if the marker should be flat against the map. icon : BitmapDescriptor — sets the icon for the marker. various lambdas like onClick , onInfoWindowClick , onInfoWindowClose and onInfoWindowLongClick . Now, let’s add some markers with different colors. Here’s the code: @Composable fun ComposeMapDemoMarkers() { val singapore = LatLng( 1.3554117053046808 , 103.86454252780209 ) val cameraPositionState = rememberCame...

Integrate Google Maps Into the Jetpack Compose App | Add a map to your app

Image
The Maps Compose library for the Maps SDK for Android is a set of open-source composable functions and data types that you can use with Jetpack Compose to build your app. In this article we will learn Integrate Google Maps Into the Jetpack Compose App | Maps Compose Library .. Overview  Some commonly used composable functions and data types include: Circle : Composable function to add a circle to a map. GoogleMap : Composable function to add a map. GroundOverlay : Composable function to add a ground overlay to a map. MapProperties : Data type for properties that can be modified on a map. MapUISettings : Data type for UI-related settings on a map. Marker : Composable function to add a marker to a map. Polygon : Composable function to add a polygon to a map. Polyline : Composable function to add a polyline to a map. TileOverlay : Composable function to add a tile overlay to a map. .. Step 1: Library :  To install the Maps Compose library in your Google Maps project: Add the...

How to implement In-App Updates in Android using Kotlin| In-app updates

Image
When your users keep your app up to date on their devices, they can try new features and benefit from performance improvements and bug fixes. In this article, we will learn how to implement In-App Updates in Android using Kotlin. In-app updates is a Google Play Core libraries feature that prompts active users to update your app.

Empty State Mobile UIX Jetpack Compose (Jetpack compose UI design)

Image
Empty State Mobile UIX Jetpack Compose for android developer included of 20+ Great mobile screens that can help you save time and energy in designing your next app. All screens and elements are fully customizable, well-organized and come in Jetpack compose source code.  It is super-useful to speed up a mobile design workflow due to its flexibility and ease of use.

Let us build app with Android Material design UI UX

Image
Let us build better apps faster & beautiful with Android Material UI / UX course for Android developer with Kotlin Modern Android apps with Material Design and integrations: Basic,  MVVM, Coroutines, ViewModel, LiveData, Retrofit, Navigation, UI UX & so on.

Material Design Android Bottom Sheet Tutorial with Example in Kotlin

Image
Android Bottom Sheet is a component that slides up from the bottom to up in an application.  For example , when you have a video to share and you click on the Share button, it will open a one slider from bottom, which contains available apps in your device. Sometimes it can also have a menu option. In a simple word, the Android Bottom sheet is an area (surface) that containing extra useful content at the bottom of the screen. It’s hidden in the bottom or partial show to the user will be shown to the user on the action.

RecyclerView Navigation transitions in Android Navigation Architecture Component

Image
Navigational transitions occur when users move between screens, such as from a home screen to a detail screen. Navigation transitions use motion to guide users between two screens in your app. They help users orient themselves by expressing your app's hierarchy, using movement to indicate how elements are related to one another. For example, when an element expands to fill the entire screen, the act of expansion expresses that the new screen is a child element. The screen from which it expanded is its parent element.

Colors Palette API | Selecting Colors with the Palette API in Android with Example

Image
Good visual design is essential for a successful app, and color schemes are a primary component of design.  The palette library is a support library that extracts prominent colors from images to help you create visually engaging apps.

How to implement Android Jetpack Preferences - Android UIX

Image
Implementing a Settings screen in your application is the best way to provide a better user experience by giving users various options to use the application according to the way they want.  For ex , your application can let the user select the tone for the notification received from the application. 

TabLayout Onboarding Screens with ViewPager2 and Fragment

Image
In this post we will create Android TabLayout  OnBoarding UI with ViewPager2.  This OnBoarding UI library contains viewpager2 with fragment. This OnBoarding screens UI involved the Android Navigation Component, Android ViewPager2 and Fragment ViewPager2 is packed inside the latest AndroidX library of JetPack instead of Material Component library. 

How to Create an Onboarding Screen with Animation in Android? (#ViewPager2, #Animation, #PageIndicators)

Image
We are going to learn that how we can Customize the animation using PageTransformer to Onboarding Screen to our android app using kotlin,  so that we can provide a better user experience to the user of the application. Overview: Customize the animation using PageTransformer Zoom-out page transformer Swipe Tabs Example with TabLayout & ViewPager2 What is Onboarding Screen? The onboarding screen can be understood as a virtual unboxing of an application.  Users go through a series of screens which finally directs users to the application interface. 

How to Create an Onboarding Screen in Android with ViewPager2 ?

Image
Here is the demo of the onboarding screen which we are going to create in this article.  We are going to learn that how we can add Onboarding Screen to our android application in the android studio so that we can provide a better user experience to the user of the application. What is Onboarding Screen? The onboarding screen can be understood as a virtual unboxing of an application.  Users go through a series of screens which finally directs users to the application interface. 

Let us build app with Google Jetpack Compose

Image
Let us build better apps faster & beautiful with Jetpack Compose. Jetpack Compose course for Android with Kotlin Modern Android apps with Jetpack Compose and integrations: Basic,  MVVM, Coroutines, ViewModel, LiveData, Retrofit, Navigation, UI UX & so on.

Android Basic MVVM design pattern

Image
In this tutorial, we are going to learn about the MVVM architecture in Android, and then we will build a project with MVVM design pattern. This tutorial is for android app developer who want to get started with the MVVM architecture. Let's get started MVVM design pattern .

Dark Mode for Android App in Kotlin using DataStore Jetpack android

Image
Dark Theme Night Mode implementation programmatically Android App Development Tutorial for beginners Dark Mode is an example of optimization of User Experience as well as the Battery.  It can be implemented on any application a developer desires.

How to create Static, Dynamic & Pinned App Shortcuts in Android App

Image
Shortcuts deliver specific types of content to your users by helping them quickly access parts of your app. Android 7.1 introduced a new feature called App Shortcuts. When you long press your app icon, it shows shortcuts to specific actions which can be launched, on supported launchers. They are of three types:   Static,  Dynamic &  Pinned.

Adobe XD - Shopping Cart UI templates

Image
Adobe XD : App UI UX design | Free App UI UX templates You can use it for designing social network apps, dashboard & stats apps, media & news apps (blogs, videos, galleries...), e-commerce apps, booking apps, and much more.

How to create bottom sheet dialog with Jetpack Compose?

Image
In this Jetpack compose tutorial we will learn How to create bottom sheet dialog in Android application using Jetpack Compose. Bottom sheet is an area containing additional content that are anchored to the bottom of the screen.  Scaffold basically provides API that will combine different material components to make our layout. In the same way BackdropScaffold uses a backdrop as the centerpiece of the screen. To use bottom sheet we need BottomSheetScaffold which is annotated  as ExperimentalMaterialApi, BottomSheetState (State which persistent bottom sheet in BottomSheetScaffold), remember BottomSheetScaffoldState ( which create and remember BottomSheetScaffoldState) Some parameters for BottomSheetScaffold were given below: sheetContent - Which contains the content of the bottom sheet. scaffoldState - state of the Scaffold. topBar -  top bar bar which is optional field. sheetPeekHeight - The height of the bottom sheet when it is collapsed. sheetContentColor - To set the co...

Custom Bottom Navigation Bar - Jetpack Compose

Image
Bottom Navigation Bar in Android Jetpack Compose In this article, we will learn how to add bottom navigation in Jetpack Compose. Below is a sample of how it will look. 

App Request Permission in android - Bolt UIX

Image
Permission requests should be simple, transparent, and understandable. Pay attention to permissions Build trust with your users by being transparent and providing users control over how they experience your app. UI for prominent disclosure when requesting for permissions from user. I'm going to show you how to implement run time permission request with kotlin . 

Custom Dialog box in android - Bolt UIX

Image
How to create a Custom Dialog box in android? - Android Material UI/UX Let us create a Custom Dialog box in Android using a View binding. Use this syntax for a 100% crash-free custom dialog solution & create your own customized dialog box. No 3rd party plugin is required. Step 1 Need to add a view binding in app-level Gradle (by default it will be added while you create a new project) View binding is a feature that allows you to more easily write code that interacts with views. (Read more) buildFeatures { viewBinding true }

Compose WebView Part 12 | No internet screen

Image
No Internet & Error Screen: When the app doesn’t get any internet connection, you can show error message on app screen “no internet connection” or any type of error message related to the problem. This example demonstrates how do I load No internet Screen from asset directory into WebView in android.

Compose WebView Part 11 | Webpage not available

Image
Error Screen: When the web page is not available means, you can show error message on app screen “404 page not found” or any type of error message related to the problem, instead of showing broken web page like Webpage not available. This example demonstrates how do I load 404 files from asset directory into WebView in android.

Compose WebView Part 10 | Show Loader

Image
How do i display Loader while loading url - Jetpack compose In this jetpack compose tutorial series we will cover how to display loader screen while loading the webpage inside webview with jetpack compose. To handle the webpage loading status we will use WebViewClient class.

Compose WebView Part 9 | Removes or Stop Ad in web

Image
A WebView that can block basic ads. Very Easy to setup for Android Projects. No 3rd party plugin is required. Android web view code is basically stop the ads and remove the html from it and render it again. Removes or Stop Ad in web view with Jetpack Compose in Android Studio | Kotlin | Jetpack Compose | Android Tutorials

Compose WebView Part 8 | Navigation Go To Previous Page

Image
 Jetpack Compose WebView Handling Back Navigation And Go To Previous Page The WebViewClient listens for onPageStarted which checks if the WebView can navigate backwards and then updates backEnabled. This causes a recomposition which toggles the BackHandler on and off.

Compose WebView Part 7 | Hide elements from web view

Image
We can also hide elements (html's id or class) from webview loading in android. So are going to hide some elements like menu or buttons from 3rd party websites while web view on loading. Hide elements from web view with Jetpack Compose in Android Studio | Kotlin | Jetpack Compose | Android Tutorials

Compose WebView Part 6 | Bind JavaScript code to Android code

Image
When developing a web application that's designed specifically for the WebView in your Android app, you can create interfaces between your JavaScript code and client-side Android code. For example, your JavaScript code can call a method in your Android code to display a Dialog, instead of using JavaScript's alert() function.

Compose WebView Part 5 | Should Override URL Loading

Image
Should Override URL Loading :  Public Boolean shoulderoverrideurloading (WebView, string Url) is a method defined in the WebViewClient class. We can override the logic in WebView when the return value is true, and call the system browser or third-party browser when it is false.  We are going to redirect Facebook to Instagram site in this web view example using override  shoulderoverrideurloading method

Compose WebView Part 4 | OFFLINE Load from Assets folder

Image
We learn online webview to load a webpage/website from URL online. We can also load a webpage from the assets folder in jetpack compose webview.  You can provide web-based content—such as HTML, JavaScript, and CSS—for your app to use that you statically compile into the application rather than fetch over the internet. This example demonstrates how do I load files from asset directory into WebView in android.

Compose WebView Part 3 | Handle configuration changes

Image
Handling an orientation change without reloading the page from source each time. To manually handle orientation changes in your app you must declare the "orientation", "screenSize", and "screenLayout" values in the android:configChanges attributes. You can declare multiple configuration values in the attribute by separating them with a pipe | character. WebView With Jetpack Compose in Android Studio | Kotlin | Jetpack Compose | Android Tutorials

Compose WebView Part 2 Play Video | Enable JS setting

Image
JavaScript is disabled in a WebView by default. You can enable it through the WebSettings attached to your WebView.You can retrieve WebSettings with getSettings(), then enable JavaScript with setJavaScriptEnabled(). WebView With Jetpack Compose in Android Studio | Kotlin | Jetpack Compose | Android Tutorials

Compose WebView Part 1 Load URL

Image
WebView With Jetpack Compose in Android Studio | Kotlin | Jetpack Compose | Android Tutorials In Android, a Compose WebView is an extension of View Class that allows us to display webpages. In simpler words, if you want to display a webpage in Activity Layout, then you can implement a WebView to display it. 

Gradient Button | Shapes in Jetpack compose

Image
In this Jetpack compose tutorial, we will see how to create Gradient Buttons using Jetpack Compose. Jetpack Compose is a cutting-edge toolkit for creating native Android user interfaces. It simplifies and accelerates UI development on Android by using minimal code, powerful tools, and explicit Kotlin APIs. Compose supports material design ideas. Many of its UI elements are built with material design in mind right out of the box.

Adobe XD : App UI UX design 07 - Social Network UI

Image
E-Commerce Material Design Mobile UI Kit for app templates and UI elements combined into high-quality source files for Adobe XD. All you need for quick prototype, design and develop any Material Design mobile app. This UI Kit is made by Google Material Design instructions and can be used for any app you need. You can use it for designing social network apps, dashboard & stats apps, media & news apps (blogs, videos, galleries...), e-commerce apps, booking apps, and much more.

Adobe XD : App UI UX design 06 - Music Player UI

Image
E-Commerce Material Design Mobile UI Kit for app templates and UI elements combined into high-quality source files for Adobe XD. All you need for quick prototype, design and develop any Material Design mobile app. This UI Kit is made by Google Material Design instructions and can be used for any app you need. You can use it for designing social network apps, dashboard & stats apps, media & news apps (blogs, videos, galleries...), e-commerce apps, booking apps, and much more.

Adobe XD : App UI UX design 05 - Blogger and Places UI

Image
E-Commerce Material Design Mobile UI Kit for app templates and UI elements combined into high-quality source files for Adobe XD. All you need for quick prototype, design and develop any Material Design mobile app. This UI Kit is made by Google Material Design instructions and can be used for any app you need. You can use it for designing social network apps, dashboard & stats apps, media & news apps (blogs, videos, galleries...), e-commerce apps, booking apps, and much more.

Adobe XD : App UI UX design 04 - Dialog

Image
E-Commerce Material Design Mobile UI Kit for app templates and UI elements combined into high-quality source files for Adobe XD. All you need for quick prototype, design and develop any Material Design mobile app. This UI Kit is made by Google Material Design instructions and can be used for any app you need. You can use it for designing social network apps, dashboard & stats apps, media & news apps (blogs, videos, galleries...), e-commerce apps, booking apps, and much more.

Adobe XD : App UI UX design 03 - Navigation Menu

Image
E-Commerce Material Design Mobile UI Kit for app templates and UI elements combined into high-quality source files for Adobe XD. All you need for quick prototype, design and develop any Material Design mobile app. This UI Kit is made by Google Material Design instructions and can be used for any app you need. You can use it for designing social network apps, dashboard & stats apps, media & news apps (blogs, videos, galleries...), e-commerce apps, booking apps, and much more.

Compose Authentication App - UI UX

Image
Almost all android application will have login or registration process in order to authenticate a user. In this article I will be demonstrating how to design android login and registration screen design using jetpack compose. This will be series of several posts where I will try to cover various android components. How to create Authentication app screens in Jetpack compose | Login UI Jetpack compose | Login Screen in android

Requesting Location Permission in Jetpack Compose - UI UX

Image
UI for prominent disclosure when requesting for permissions from user. I'm going to show you how to implement run time permission request with Jetpack Compose. The library which we are going to use is called Accompanist. Watch the video until the end!. The rememberPermissionState (permission: String) API allows you to request a certain permission to the user and check for the status of the permission.

Compose Shopping Cart - UI UX

Image
Jetsnack is a sample snack ordering app built with Jetpack Compose using Kotlin. To try out this sample app, you need to use Android Studio Chipmunk. You can clone this repository or import the project from Android Studio. This sample showcases: To implement a custom design system, Custom layout, Animation.

Compose Splash Offer Screen

Image
Compose Splash Offer Screen for Jetpack Compose UI UX.  Let us create ' Compose Splash  Offer  Screen ' UI UX (Card view) in Jetpack Compose using  kotlin. .. In our : MainActivity.kt (just call the SplashScreen function) package compose.material.theme import android.os.Bundle import android.view.WindowManager import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.navigation.compose.rememberNavController import compose.material.theme.ui.theme.Material3ComposeTheme class MainActivity : ComponentActivity () { override fun onCreate( savedInstanceState : Bundle ?) { super.onCreate( savedInstanceState ) setContent { Material3ComposeTheme { SplashScreen () } } } } .. In our SplashScreen.kt package compose.material.theme import androidx.compose.foundation.Image import androidx.compose.foundation.background import ...

Compose Custom Animating Dialog - Location Permission UI UX

Image
Custom Compose Animating Dialog for Jetpack Compose UI UX. UI for prominent disclosure when requesting for permissions from user. Let us create ' Custom Compose Animating Dialog screen ' UI UX (Animating dialog) in Jetpack Compose using  kotlin.

Compose Shopping Cart Category List

Image
Shopping cart app category list UI Design for Jetpack Compose UI UX. Inspirational designs, and graphic elements from the world’s best designers. Let us create 'Shopping cart app category list ' UI UX  in Jetpack Compose using  kotlin.

Walkthrough / Onboarding Screen in Jetpack Compose

Image
Most applications usually require an onboarding screen. Onboarding screens help users get started with the app. Most onboarding screens are usually three screens where the users have to swipe horizontally and see all the screens required and when they are done, they can click a button to get started with the app. Let us see what we want to achieve below. .. To create an Onboarding layout, we need to add dependency in buld.gradle which will provide pager to Onboarding screens. implementation 'com.google.accompanist:accompanist-pager:0.24.13-rc' .. OnBoardingItems.kt How is the screen/page structured? Each has a title, description, and image. For this, we will create a class to represent each screen and will create a list of pages with three items as our data source as below class OnBoardingItems( val image: Int, val title: Int, val desc: Int ) { companion object{ fun getData(): List<OnBoardingItems>{ return listOf( OnBo...