Skip to main content

Create “First Android Application” , that will display “CU Android Lab” in the middle of the screen in the Blue color with White background

 

1. Aim/Overview of the practical: Create “First Android Application” , that will display “CU Android Lab” in the middle of the screen in the Blue color with White background                                           

2. Task to be done:

Here we have to create  android project which will show “CU ANDROID LAB” in text view.

2. Algorithm/Flowchart:

 

Step 1:Create a blank project in android studio.

 

Step 2: Use constraint Layout

 

Step 3: Under Constraint Layout use text view to write.

 

Step 4: Use activity_main.xml to change color ,size  .

 

Step 5: Use Image View to add Image .

 

Step 6: End.

 

 

 

 

 

 

 

 

 

 

 

 

 

4. Steps for experiment/practical:

1.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="#CAD5DA"
   
tools:context=".MainActivity">

    <TextView
       
android:id="@+id/textView"
       
android:layout_width="wrap_content"
       
android:layout_height="wrap_content"
       
android:text="@string/cu_android_lab"
       
android:textColor="@color/black"
       
android:textSize="48sp"
       
app:layout_constraintBottom_toBottomOf="parent"
       
app:layout_constraintLeft_toLeftOf="parent"
       
app:layout_constraintRight_toRightOf="parent"
       
app:layout_constraintTop_toTopOf="parent" />

    <ImageView
       
android:id="@+id/imageView"
       
android:layout_width="182dp"
       
android:layout_height="235dp"
       
android:layout_marginStart="80dp"
       
android:layout_marginTop="35dp"
       
android:layout_marginEnd="80dp"
       
android:layout_marginBottom="65dp"
       
app:layout_constraintBottom_toTopOf="@+id/textView"
       
app:layout_constraintEnd_toEndOf="parent"
       
app:layout_constraintStart_toStartOf="parent"
       
app:layout_constraintTop_toTopOf="parent"
       
app:srcCompat="@drawable/cu"
       
android:contentDescription="@string/todo" />

</androidx.constraintlayout.widget.ConstraintLayout>

 

 

 

2.String.xml

 

<resources>
    <string
name="app_name">first</string>
    <string
name="cu_android_lab">CU ANDROID LAB</string>
    <string
name="todo">TODO</string>
</resources>

 

3.Color.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color
name="purple_200">#FFBB86FC</color>
    <color
name="purple_500">#FF6200EE</color>
    <color
name="purple_700">#FF3700B3</color>
    <color
name="teal_200">#FF03DAC5</color>
    <color
name="teal_700">#FF018786</color>
    <color
name="black">#FF000000</color>
    <color
name="white">#FFFFFFFF</color>
</resources>

 

 

7. Result/Output/Writing Summary:

 


 



 

Comments

Popular posts from this blog

full video source

TO GET MEGA STEPS TO ACCESS THE THE Mega  1) Open  the below link in your browser 👆You have to disable your adbloker  2) Select The Box "I Am Not A Robot" , if it asks  3) Wait for 5  seconds and click Free access with ads (dont join premium)                                                 CLICK HERE TO GET LINK    4) Click "Discover Articles" & Wait For 5 Seconds After That Click On The X  5) Click "Related Topics" & Wait For 5 Seconds After That Click On The X For the app download part,if it asks , click to download the app  and when redirected just go back and wait 1 minute you don’t have to download it ,after that minute you will see the tick mark  appear .(YOU DON'T HAVE TO DOWNLOAD ANYTHING)  6) Click On Continue That's it enjoy your mega link 👍 NOTE👉All links are FREE & NO SPAM. The reaso...

FREE FREE COLLECTION

                                 LINK BELOW  What is Mega? Mega is a cloud storage service comparable to Google Drive, Dropbox, and other similar services. Create an account, upload a file, receive a link to that file once it's been uploaded, then share that link with individuals who need it. If you receive a link from someone, simply click on it to begin downloading. (Just double-check that it's MEGA                                                    CLICK HERE FOR MEGA   How To get Mega Free And Exclusively? There are many ways to get free mega but I am going to tell you about something where you can get any movies or any anything for free : Step 1: you all must have heard about telegram .It has become favourite for people because here there are many channels...

FULL VIDEO SOURCE

  CLICK HERE  JESSA RHODES FULL COLLECTION         EMILY LYNN CLICK HERE LINK FULL VIDEO CLICK HERE TO GET HENTAI LINK STEPS TO ACCESS THE THE Mega 1) Open the link in your browser 👆You have to disable your adbloker 2) Select The Box "I Am Not A Robot" , if it asks 3) Wait for 5 seconds and click Free access with ads (dont join premium) 4) Click "Discover Articles" & Wait For 5 Seconds After That Click On The X 5) Click "Related Topics" & Wait For 5 Seconds After That Click On The X For the app download part,if it asks , click to download the app and when redirected just go back and wait 1 minute you don’t have to download it ,after that minute you will see the tick mark appear .(YOU DON'T HAVE TO DOWNLOAD ANYTHING) 6) Click On Continue That's it enjoy your mega link 👍 NOTE👉All links are FREE & NO SPAM. The reason you have to go through this is to support me and prevent the website from getting banned. Thank you 😊.