Tuesday, 27 June 2023

How to switch between hide and view password with icon

                                                            

How to show and hide password in login screen or registration screen in android.

So , Here we see  how it works with coding.

Below  is your layout file.

Monday, 26 June 2023

Loading Image and Text with Jetpack Compose

How to display image in circle shape in android with jetpack compose ,

Here is some code for display circle shape image in android using jetpack compose.





Jetpack Compose display Image view and Text view in android

Now we see how to display Image view and Text View in android using Jetpack Compose.

So , Lets start with code.

First you have to add some dependency library in your build.gradle (app module)

Saturday, 24 June 2023

Jetpack Compose Add text in android application.

Adding text in android is we were using TextView in android studio.

But using jetpack compose we don't need TextView as a deign layout.

Yes , using Jetpack Compose we can add text only with coding so lets start how its work ,


First you have to add some dependency library in your build.gradle (app module)


Thursday, 22 June 2023

How to find second largest number in array without sorting in React-Native

Here is  java script  practical example for find second largest biggest Number from the array:


let m1 = [90, 45, 34, 67, 999, 76, 34, 89, 99, 23];

let No1 = 0;

let No2 = 0;

let mcounter = m1.length - 2;

for (let m = 0; m < m1.length; m++) {

  let sR = m1[m];

  if (mcounter == m) {

    break;

  }

  if (sR > No1) {

    No2 = No1; // Store the current No1 as No2

    No1 = sR; // Update No1 with the new bigger value

  } else if (sR > No2 && sR < No1) {

    No2 = sR; // Update No2 with the new second biggest value

  }

}


console.log("Second biggest number: " + No2);


Out put will be:

Second biggest number: 99

What is Jetpack Compose in Android

 Jetpack compose is the new and latest toolkit for android.

Jetpack compose is the fastest and better component to build android application with out making layout designs.

Yes absolutely right , using Jetpack compose the UI for application is handling with code , using @Composable .

You can build better application with this Jetpack Compose.

 

How to check Internet connectivity in React-Native code

In this blog we will see Internet connectivity is on or off  in react-native code.

So below is the code to check is internet connected or not ?

Find Hours Diffrence in Kotlin

  In Kotlin, determining the difference in hours between two timestamps is a common task, especially in scenarios involving time-based calcu...