Posts

ui state in jetpack compose

  What is Ui state in jetpack compose: UIState in Jetpack Compose is a way to represent the current state of your UI. It is a type-safe class that can hold any value, and it can be updated at any time. When the state of your UI changes, Compose will automatically recompose the affected parts of your UI. Here is an example of how to use UIState: class MyComposeApp : Component {   val uiState = UIState<String>(initialValue = "Hello, world!")   @Composable   fun Content() {     Text(uiState.value)     Button(onClick = {       uiState.value = "Goodbye, world!"     }) {       Text("Change state")     }   } } ``` In this example, we create a UIState object called `uiState`. The initial value of `uiState` is "Hello, world!". We then use `uiState` to create a `Text` composable that displays the current value of `uiState`. We also create a `Button` composable that allows the user to change the value of `uiState`. When the user clicks on the button,

Terms and conditions and Privacy policy

  Terms and Conditions 1. Acceptance of Terms By accessing or using this blog, you agree to be bound by these terms and conditions. If you do not agree to these terms and conditions, you may not access or use this blog. 2. Changes to Terms and Conditions We may revise these terms and conditions at any time without notice. You are responsible for reviewing these terms and conditions periodically to be aware of any changes. Your continued use of this blog after any changes to these terms and conditions will constitute your acceptance of those changes. 3. Content The content on this blog is for informational purposes only. It is not intended to be a substitute for professional advice or medical treatment. You should always consult with a qualified professional before making any decisions about your health or well-being. 4. Copyright The content on this blog is copyrighted. You may not reproduce, distribute, or modify the content without the express written permission of the copyright hold

How To perform Search Operation in Android Studio :

Image
                                                                 How To perform Search Operation in Android Studio : Xml file : <AutoCompleteTextView android :id ="@+id/auto" android :layout_width ="151dp" android :layout_height ="48dp" android :hint ="search" android :textSize ="20dp" app :layout_constraintBottom_toBottomOf ="parent" app :layout_constraintEnd_toEndOf ="parent" app :layout_constraintHorizontal_bias ="0.857" app :layout_constraintStart_toStartOf ="parent" app :layout_constraintTop_toTopOf ="parent" app :layout_constraintVertical_bias ="0.111" /> That AutoCompleteTextView Tag is More Useful for Search Operation perform. because if you can type some product it should fetch from the list at suggestion list  Then We will See about the Java Page  Java File: name = new ArrayList<String>() ; name .add( "Wel

Java projects | ATM Machine projects in java | ATM projects | Java practices | learn Java | Java Miniprojects

Image
                          Java Mini projects                 Project Defintion:                  This projects like a commend like project . it is more use for many beginners to practice in our programming skills .this project name is ATM machine project.because, this projects should perform like a ATM machine . i would use the fnction are Deposite,withdrawel,balance and acconut creation .And i should tell one thing of this projects because that projects is more sequrly to create for the client . please use that . i  hope you will definly like that project. Functions : Deposite Balance Account creation withdrawel Code : import java.util.*; class demo {          int count = 0;     String client ;     int Total = 0;     Scanner sc = new Scanner(System.in);     public void Account()     {         System.out.println("Enter the No : ");         client = sc.next();         System.out.println("Account created SuccessFully....");         System.out.println("And Deposi

webview in android studio| progress bar in androis studio | project in Android Studio using java | Mini project in Android Studio | learn Android Studio |

Image
                     Android Studio                          Explaination of the project :  That project is like a mini project for to improve in your developing skills in android studio. In this i would be paste the differnt types of file code  that all the file give a good understanble  First file name is Active_main.xml And that file Backend file name MainActivity.java file then second file name is Activity_main2.xml the second file backend is MainActivity2.xml And last importen file is Mainfeast.xml file if you want pref explain about the file please commend below File 1 activity_main.xml <? xml version ="1.0" encoding ="utf-8" ?> <androidx.constraintlayout.widget.ConstraintLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :layout_

java Project like admin | admin opertion in java | HashMap learn | what is HashMap in java | Java projects | mini projects

Image
                         Java Projects Like Admin: I will explain the details of the projects this project will make methods are should be find the your student are admin . i am use the HashMap class in this project That is Code of the Project :  import java.util.*; class demo {     public static void main(String[]  args)     {         HashMap<String,String> database = new HashMap<String,String>();         Scanner sc = new Scanner(System.in);         String pass = "pass";         System.out.println("enter Your RollNo :");         String RollNo = sc.next();         System.out.println("enter Your Name :");         String Name = sc.next();         database.put(RollNo, Name);         System.out.println("Your Details Stored Succesfully....");         System.out.println("--------------------------------------");         System.out.println("1.Admin");         System.out.println("2.Student");         int choose