this is the "login .xml" ------------------------- In this login page, how do I insert image 1.png ,make it display in the file.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

 this is the "login .xml"

<!--Login activity layout-->
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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=".MainActivity7">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FF4500"
>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="20dp"
android:text="login page"
android:textColor="@color/white"
android:textSize="25dp" />

</RelativeLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/1.png"
android:layout_gravity="center"
/>

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="190dp"
android:layout_marginTop="55dp">

<TextView
android:id="@+id/ema"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:text="Email"
android:textSize="15dp"

/>

<EditText

android:id="@+id/ed1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="15dp"
android:layout_marginRight="15dp"
android:hint="123@exa.com" />

<TextView
android:id="@+id/emat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/ema"
android:layout_marginLeft="20dp"
android:layout_marginTop="15dp"
android:text="Password" />

<EditText
android:id="@+id/ed2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/ema"
android:layout_alignParentRight="true"
android:layout_marginTop="6dp"
android:layout_marginRight="13dp"
android:hint="alphabets only" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/ed2"
android:layout_alignParentRight="true"
android:layout_marginRight="30dp"
android:backgroundTint="#FF4500"
android:onClick="login"
android:padding="10dp"
android:text="Login" />
</RelativeLayout>


<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textviww"
android:textSize="15dp"
android:layout_marginTop="15dp"
android:textColor="#FF0000"
/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="200dp"
android:text="try" />
</LinearLayout>

-------------------------

In this login page, how do I insert image 1.png ,make it display in the file.

||||
res
BuildConfig
drawable
1.png
btn_bg_selector.xml (v24)
Transcribed Image Text:|||| res BuildConfig drawable 1.png btn_bg_selector.xml (v24)
login page
Email
Password
123@exa.com
alphabets only
LOGIN
login page
20
Email
Password
LOGIN
30
769
Transcribed Image Text:login page Email Password 123@exa.com alphabets only LOGIN login page 20 Email Password LOGIN 30 769
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Form and its Elements
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education