Posts

Showing posts with the label Android Apps

Shadow of ImageView in android

 Shadow of ImageView in android Gradle dependencies { compile 'com.yinglan.shadowimageview:shadowimageview:1.0.4' } In layout <com.yinglan.shadowimageview.ShadowImageView android:id="@+id/shadow" android:layout_width="300dp" android:layout_height="300dp" app:shadowRound="20dp" app:shadowSrc="@mipmap/lotus" app:shadowColor="@color/colorAccent"/> Set Picture shadow.setImageResource(resID); shadow.setImageDrawable(drawable); shadow.setImageBitmap(bitmap); Set the picture radius shadow.setImageRadius(radius); Set the shadow color of the image shadow.setImageShadowColor(color);

HOW TO RETRIVED IMAGE FROM FIREBASE IN ANDROID

 HOW TO RETRIVED IMAGE FROM FIREBASE IN   ANDROID add Dependences in build.gradle file dependencies {     // Import the BoM for the Firebase platform     implementation platform ( 'com.google.firebase:firebase-bom:28.4.0' )     // Declare the dependency for the Cloud Storage library     // When using the BoM, you don't specify versions in Firebase library dependencies     implementation 'com.google.firebase:firebase-storage-latest version'//include latest version Add Imageview in xml to retrived image < ImageView android :id ="@+id/image" android :layout_width ="wrap_content" android :layout_height ="wrap_content" app :layout_constraintBottom_toBottomOf ="parent" app :layout_constraintEnd_toEndOf ="parent" app :layout_constraintStart_toStartOf ="parent" app :layout_constraintTop_toTopOf ="parent" app :layout_constraintVertical_bias ="0.966" android

Dice Roller App using Java

Image
 Dice Roller App using  Java In Android Studio <? 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" android :background ="#29b6f6" tools :context =".MainActivity" > < ImageView android :id ="@+id/Image_view_dice" android :layout_width ="300dp" android :layout_height ="300dp" android :onClick ="play" android :src ="@drawable/one" app :layout_constraintBottom_toBottomOf ="parent" app :layout_constraintLeft_toLeftOf ="parent" app :layout_constraintR

Single Music Player App in Android Studio

Image
 Music Player App in   Android Studio  Xml code:- <? 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" > < TextView android :id ="@+id/textView" android :layout_width ="149dp" android :layout_height ="40dp" android :background ="#2196F3" android :gravity ="center" android :shadowColor ="#FFFFFF" android :text ="Music Player" android :textColor ="#FFFFFF" android :textSize ="24sp" android :text

CREATE UNIT CONVERTER APP

Image
CREATE UNIT CONVERTER APP USING XML AND JAVA IN ANDROID STUDIO xml code :- <? 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" android :background ="#F8E753" tools :context =".MainActivity" > < EditText android :id ="@+id/editTextTextPersonName" android :layout_width ="wrap_content" android :layout_height ="wrap_content" android :ems ="10" android :inputType ="number" android :textColor ="#E91E63" app :layout_constraintBottom_toBottomOf ="parent"