Posts

Showing posts from January, 2022

JSON url with image

Image
  MainActivity  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_height ="match_parent" tools :context =".MainActivity" > < androidx.recyclerview.widget.RecyclerView android :id ="@+id/recycleview" android :layout_width ="match_parent" android :layout_height ="match_parent" /> </ androidx.constraintlayout.widget.ConstraintLayout > Show item Activity:- <? xml version ="1.0" encoding ="utf-8" ?> < androidx.constraintlayout.widget.ConstraintLayout xmlns: android ="http://schemas.android.com/apk/res/android...

JSON Volly url

Image
  MainActivity :- <? 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_height ="match_parent" tools :context =".MainActivity" > < ListView android :layout_width ="match_parent" android :layout_height ="match_parent" android :id ="@+id/listview" /> </ androidx.constraintlayout.widget.ConstraintLayout > Show item Activity :- <? xml version ="1.0" encoding ="utf-8" ?> < LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" android :layout_width ="match_parent" android :orientation =...

Recycle View Show With Image in Android Studio

Image
  MainActivity 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_height ="match_parent" tools :context =".MainActivity" > < androidx.recyclerview.widget.RecyclerView android :layout_width ="match_parent" android :layout_height ="match_parent" android :id ="@+id/recyck" /> </ androidx.constraintlayout.widget.ConstraintLayout > Show item Xml :- <? xml version ="1.0" encoding ="utf-8" ?> < LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" android :orientation ="vertical"...

Simple Recycle View

  < androidx.recyclerview.widget.RecyclerView android :layout_width ="match_parent" android :layout_height ="match_parent" android :id ="@+id/recy" /> Show Data :- <? xml version ="1.0" encoding ="utf-8" ?> < LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" android :layout_width ="match_parent" android :orientation ="vertical" android :layout_height ="match_parent" > < TextView android :textSize ="30sp" android :layout_width ="match_parent" android :layout_height ="wrap_content" android :id ="@+id/text1" /> < TextView android :textSize ="20sp" android :layout_width ="match_parent" android :layout_height ="wrap_content" android :id ="@+id/text2" /> </ LinearLayout > MainActivity:- pack...

Splash Screen

  Thread timer=new Thread()         {             public void run() {                 try {                     sleep(2000);                 } catch (InterruptedException e) {                     // TODO Auto-generated catch block                     e.printStackTrace();                 }                 finally                 {                     Intent i=new Intent(Splash.this,MainActivity.class);                     finish();                 ...

UPdate and Featch Image in Realbase Datatype

   UPdate and Featch Image in Realbase Database   Xml code:- <? xml version ="1.0"  encoding ="utf-8" ?> < androidx.appcompat.widget.LinearLayoutCompat  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_height ="match_parent"      android :orientation ="vertical"      tools :context =".profile" >      < ImageView          android :id ="@+id/uimage"          android :layout_width ="200dp"          android :layout_height ="200dp"          android :layout_gravity ="center...