SlideShare a Scribd company logo
TOPICS TO BE COVERED
• Introduction to android.
• Setup android environment.
• User interface development.
• Interactive application development.
OVERVIEW
• What is android?
• History of android.
• What is Open handset alliance?
• Different Versions of android.
BRIEF HISTORY
• Android is a Linux-based open source software stack that comes along with:
1. operating system
2. middleware
3. native mobile applications
• It was designed primarily for touchscreen mobile devices such as smartphones, tablets.
• Initially developed by Android Inc.,(founded in 2003 and is based in Palo Alto,
California) which operated as subsidiary of Google and later purchased by Google in
2005.
• Android was publically announced in 2007 and first phone was sold on October 2008.
VERSIONS OF ANDROID
NAMES & SPECIFICATION
• Initial two versions were called as beta versions specified as Android 1.0 & 1.1.
• Later on names of subsequent versions were based on some dessert & are in alphabetic orders
e.g.
1. 1.5 Cupcake
2. 1.6 Donut
3. 2.0/2.1 Éclair
4. 2.2 Froyo
5. 2.3 Gingerbread
6. 3.0/3.1 Honeycomb
7. 4.0 Ice-cream Sandwich
8. 4.1 Jelly Bean
9. 4.4 Kitkat
Open handset Alliance
What is activity ?
OPEN SOURCE
Industry
• Software stack open-
sourced under Apache
2.0 license
• Source available after
first handsets ship
• Anyone will be able to
build a system image
Users
• Users have control of their
experience
• They control what gets
installed
• They choose the defaults
Developer
• Don not need
permission to ship an
application
• No hidden or privileged
framework APIs
• Can integrate, extend
and replace existing
components
INDUSTRY
USER
DEVELOPER
ANDROID
USER INTERFACE
• User interface layout
• View
• View group
• UI attributes and ID
• Types of layouts
• Basic Input controls
I. Buttons
II. Textfields
III. Radio button
IV. Checkbox
V. Toggle button
VI. Spinners
VII. Pickers
USER INTERFACE DESIGNING
Two ways:
1. Programming
2. Drag & Drop (good and efficient)
View & view group
What is view?
• All user interface elements in the android app are build using view
and view group objects.
e.g. view contains: button, textfields, etc.
What is view group?
For Example Vertical layout in which Button and Text View look
like this
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="I am a TextView" />
<Button android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="I am a Button" />
</LinearLayout>
ATTRIBUTES
• Id: every view element has a unique id.
Example
android:id=“@+id/unique name”
Indicates
xml should
be parsed
Indicates new
resource has to added
to R.java file
Resource
generated
automatically
LAYOUT AND ITS TYPES
• Linear
• Relative
• Table layout
• Grid layout
• Grid view
• List view
LINEAR LAYOUT
• LinearLayout is a view group that aligns all children in a single
direction, vertically or horizontally. You can specify the layout
direction with the android :orientation attribute.
Example:
• <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="vertical" >
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/to" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/subject" />
<EditText
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="top"
android:hint="@string/message" />
<Button
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="@string/send" />
</LinearLayout>
RELATIVE LAYOUT
• Relative layout is a view group that displays child views in relative
positions
• <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp" >
<EditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/reminder" />
<Spinner
android:id="@+id/dates"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_below="@id/name"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/times" />
<Spinner
android:id="@id/times"
android:layout_width="96dp"
android:layout_height="wrap_content"
android:layout_below="@id/name"
android:layout_alignParentRight="true" />
<Button
android:layout_width="96dp"
android:layout_height="wrap
_content"
android:layout_below="@id
/times"
android:layout_alignParent
Right="true"
android:text="@string/done"
/>
</RelativeLayout>
LIST VIEW
• List view a view group that displays a list of scrollable items.
• The list using an adapter that pulls content from a source such as an
array or database query and converts each item result into a view
that’s placed into the list.
GRID VIEW
• Grid view is a view group that displays items in a two dimensional,
scrollable grid. The grid items are automatically inserted to the layout
using list adapter.
Control Type Description Related Classes
Button A push-button that can be pressed, or clicked, by
the user to perform an action.
Button
Text field An editable text field. You can use
theAutoCompleteTextView widget to create a text
entry widget that provides auto-complete
suggestions
EditText,AutoCompleteTextView
Checkbox An on/off switch that can be toggled by the user.
You should use checkboxes when presenting users
with a group of selectable options that are not
mutually exclusive.
CheckBox
Radio button Similar to checkboxes, except that only one option
can be selected in the group.
RadioGroup
RadioButton
Toggle button An on/off button with a light indicator. ToggleButton
Spinner A drop-down list that allows users to select one
value from a set.
Spinner
Pickers A dialog for users to select a single value for a set
by using up/down buttons or via a swipe gesture.
Use aDatePickercode> widget to enter the values
for the date (month, day, year) or
a TimePicker widget to enter the values for a time
(hour, minute, AM/PM), which will be formatted
DatePicker,TimePicker
TEXTFIELD
• <EditText
android:layout_width="match_parent“
android:layout_height="wrap_content"
android:hint="@string/subject" />
BACKGROUND COLOR
android:background=“hex-value”
TEXT COLOR
android:textColor=“hex-value”
HINT
android:hint=“string”
TEXT
• android:text=“string”
BUTTON
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_text"
….>
HOW TO MAKE APP INTERACTIVE?
Two ways:
1. onclick event
2. onclick listerner
Onclick event
• <Button
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/button_send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send"
android:onClick=“name_of_event" />
public void sendMessage(View view)
{
// Do something in response to button click
}
The method you declare in the android:onClick attribute must have a
signature exactly as shown above. Specifically, the method must:
• Be public
• Return void
• Define a View as its only parameter
USING Onclicklistener
Button button = (Button) findViewById(R.id.button_send);
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// Do something in response to button click
}
});
CHECKBOX
public void
onCheckboxClicked(View view) {
// Is the view now checked?
boolean checked = ((CheckBox)
view).isChecked();
// Check which checkbox
was clicked
switch(view.getId()) {
case R.id.checkbox_meat:
if (checked)
// Put some meat on
the sandwich
else
// Remove the meat
break;
case R.id.checkbox_cheese:
if (checked)
// Cheese me
else
// I'm lactose intolerant
break;
// TODO: Veggie sandwich
}}
RADIO BUTTONS
ONCLICK EVENT
public void onRadioButtonClicked(View view) {
// Is the button now checked?
boolean checked = ((RadioButton) view).isChecked();
// Check which radio button was clicked
switch(view.getId()) {
case R.id.radio_pirates:
if (checked)
// Pirates are the best
break;
case R.id.radio_ninjas:
if (checked)
// Ninjas rule
break;
}}
Important Folders
• Whenever we create any Application, there are a number of folders which are created by default.
• These folders contain subfolders and important files associated to them which play a key role in proper UI designing as
well as coding.
1. src (source code of activities)
2. Android 4.4 (contains all library files)
3. gen ( auto generated files (R.java))
4. Res (resource)
1. it contains all Drawable components
2. layouts ( it contains the xml file)
3. menu
4. values – string.xml
dimens.xml
style.xml
5. Android Manifest File
1. Sdk (min to max)
2. Application (contain main activity details)
a. Activity
b. Intent filter
c. Providers
d. Services
e. Receivers etc.
Image View
1. If we want to add an Image in our activity, we need to copy the
image to the “Drawable folder” in “res folder”.
2. Drawable folder contains subfolders :
1. hdpi ( ̴ 240 dpi) is High density pixels
2. ldpi ( ̴ 120 dpi) is Low density pixels
3. mdpi ( ̴ 160 dpi) is medium density pixels
4. xhdpi ( ̴ 320 dpi) is extra high density pixels
3. Add <imageView> and define different parameters in it.
Toast Message (notification)
• Toast provides simple feedback about an operation in a small popup.
• It only fills the amount of space required for the message and the current activity
remains visible and interactive.
• Toast automatically disappears after timeout.
Syntax : Toast toast=Toast.makeText (context, text, duration);
toast.show();
Note:- Toast is instantiated by using makeText() method.
Activity 1
Background= #F00000
text="@string/button_01"
textStyle="bold"
fontFamily="times new roman"
background="#68AD00"
textColor="#000000"
text="@string/button_02"
textStyle="bold"
fontFamily="times new roman"
background="#FFF000"
textColor="#000000"
Button
Activity 2 layout_width=”30dp”
ems="10"
hint="@string/Textview"
inputType="text"
textColor="#000000"
background="#FF00FF”
layout_width=”30dp”
ems="10"
hint="@string/Textview"
textColor="#000000"
background="#00FF00”
inputType= “date”
layout_width=”30dp”
ems="10"
hint="@string/Textview"
textColor="#000000"
background="#663300”
inputType= “time”
layout_width=”130dp”
android:text="Submit"
android:textColor="#FFFFFF"
android:background="#FF0000"
layout_width=”30dp”
ems="10"
hint="@string/Textview"
textColor="#000000"
background="#009900”
Background= #FFFF66

More Related Content

What's hot

What is Android?
What is Android?What is Android?
What is Android?
ndalban
 
Multiple Activity and Navigation Primer
Multiple Activity and Navigation PrimerMultiple Activity and Navigation Primer
Multiple Activity and Navigation PrimerAhsanul Karim
 
Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1
Amit Saxena
 
Basic android development
Basic android developmentBasic android development
Basic android developmentUpanya Singh
 
android layouts
android layoutsandroid layouts
android layoutsDeepa Rani
 
Day 15: Working in Background
Day 15: Working in BackgroundDay 15: Working in Background
Day 15: Working in BackgroundAhsanul Karim
 
Android Development for Beginners with Sample Project - Day 1
Android Development for Beginners with Sample Project - Day 1Android Development for Beginners with Sample Project - Day 1
Android Development for Beginners with Sample Project - Day 1
Joemarie Amparo
 
Unit2
Unit2Unit2
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesAhsanul Karim
 
01 what is android
01 what is android01 what is android
01 what is android
C.o. Nieto
 
Android Development Made Easy - With Sample Project
Android Development Made Easy - With Sample ProjectAndroid Development Made Easy - With Sample Project
Android Development Made Easy - With Sample Project
Joemarie Amparo
 
Android application-component
Android application-componentAndroid application-component
Android application-component
Ly Haza
 
Android
AndroidAndroid
Android
Sameer Patil
 
Android development orientation for starters v4 seminar
Android development orientation for starters v4   seminarAndroid development orientation for starters v4   seminar
Android development orientation for starters v4 seminar
Joemarie Amparo
 
04 user interfaces
04 user interfaces04 user interfaces
04 user interfaces
C.o. Nieto
 
Marakana android-java developers
Marakana android-java developersMarakana android-java developers
Marakana android-java developersMarko Gargenta
 
View groups containers
View groups containersView groups containers
View groups containersMani Selvaraj
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
Ed Zel
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
katayoon_bz
 

What's hot (20)

What is Android?
What is Android?What is Android?
What is Android?
 
Multiple Activity and Navigation Primer
Multiple Activity and Navigation PrimerMultiple Activity and Navigation Primer
Multiple Activity and Navigation Primer
 
Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1
 
Basic android development
Basic android developmentBasic android development
Basic android development
 
android layouts
android layoutsandroid layouts
android layouts
 
Day 15: Working in Background
Day 15: Working in BackgroundDay 15: Working in Background
Day 15: Working in Background
 
Android Development for Beginners with Sample Project - Day 1
Android Development for Beginners with Sample Project - Day 1Android Development for Beginners with Sample Project - Day 1
Android Development for Beginners with Sample Project - Day 1
 
Unit2
Unit2Unit2
Unit2
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through Activities
 
01 what is android
01 what is android01 what is android
01 what is android
 
Android Development Made Easy - With Sample Project
Android Development Made Easy - With Sample ProjectAndroid Development Made Easy - With Sample Project
Android Development Made Easy - With Sample Project
 
Android application-component
Android application-componentAndroid application-component
Android application-component
 
Android
AndroidAndroid
Android
 
Android development orientation for starters v4 seminar
Android development orientation for starters v4   seminarAndroid development orientation for starters v4   seminar
Android development orientation for starters v4 seminar
 
04 user interfaces
04 user interfaces04 user interfaces
04 user interfaces
 
Marakana android-java developers
Marakana android-java developersMarakana android-java developers
Marakana android-java developers
 
Android
AndroidAndroid
Android
 
View groups containers
View groups containersView groups containers
View groups containers
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 

Viewers also liked

Tugas maya puspita sari
Tugas maya puspita sariTugas maya puspita sari
Tugas maya puspita sari
Mayapuspitasari20
 
Pengenalan i-pengenalan-internet
Pengenalan i-pengenalan-internetPengenalan i-pengenalan-internet
Pengenalan i-pengenalan-internetAdam51000
 
Nurul asy syifa
Nurul asy syifaNurul asy syifa
Nurul asy syifa
panglimaagus
 
Step by-step advert power point
Step by-step advert power pointStep by-step advert power point
Step by-step advert power point
Jaciiraa
 
Asad adan cis_final_presentation1
Asad adan cis_final_presentation1Asad adan cis_final_presentation1
Asad adan cis_final_presentation1asadadan
 
12.14 Article in Labor Disputes
12.14 Article in Labor Disputes12.14 Article in Labor Disputes
12.14 Article in Labor DisputesDaria Ivanova
 
Forms of story_telling
Forms of story_tellingForms of story_telling
Forms of story_telling
Declan Brophy
 
Evaluation 3
Evaluation 3Evaluation 3
Evaluation 3
Anya Wagstaff
 
Boost your revenue with music!
Boost your revenue with music! Boost your revenue with music!
Boost your revenue with music!
beatvyne
 
CV_Fayle_Mark _Rev.1
CV_Fayle_Mark _Rev.1CV_Fayle_Mark _Rev.1
CV_Fayle_Mark _Rev.1Mark Fayle
 
folderAGECONTROL-ENhires
folderAGECONTROL-ENhiresfolderAGECONTROL-ENhires
folderAGECONTROL-ENhiresArnaud Veere
 
Unterschiedliche Ansichtsweisen eines Titels
Unterschiedliche Ansichtsweisen eines TitelsUnterschiedliche Ansichtsweisen eines Titels
Unterschiedliche Ansichtsweisen eines Titels
edelweiss_Deutschland
 
Nov16_Updated Resume_BHOLAKUMAR SONAR
Nov16_Updated Resume_BHOLAKUMAR SONARNov16_Updated Resume_BHOLAKUMAR SONAR
Nov16_Updated Resume_BHOLAKUMAR SONARBholakumar Sonar
 
Global Pack Hungary Presentation DE-AT - Tape & Go Klebebänder
Global Pack Hungary Presentation DE-AT  - Tape & Go KlebebänderGlobal Pack Hungary Presentation DE-AT  - Tape & Go Klebebänder
Global Pack Hungary Presentation DE-AT - Tape & Go Klebebänder
Dragana Jokic Babic
 
ενέργεια
ενέργειαενέργεια
ενέργεια
roumkosalex
 
Nichlaus Jay Rowe 2016
Nichlaus Jay Rowe 2016Nichlaus Jay Rowe 2016
Nichlaus Jay Rowe 2016Nichlaus Rowe
 

Viewers also liked (18)

Tugas maya puspita sari
Tugas maya puspita sariTugas maya puspita sari
Tugas maya puspita sari
 
Pengenalan i-pengenalan-internet
Pengenalan i-pengenalan-internetPengenalan i-pengenalan-internet
Pengenalan i-pengenalan-internet
 
Nurul asy syifa
Nurul asy syifaNurul asy syifa
Nurul asy syifa
 
Step by-step advert power point
Step by-step advert power pointStep by-step advert power point
Step by-step advert power point
 
Asad adan cis_final_presentation1
Asad adan cis_final_presentation1Asad adan cis_final_presentation1
Asad adan cis_final_presentation1
 
Shrikrishna Resume (1)
Shrikrishna Resume (1)Shrikrishna Resume (1)
Shrikrishna Resume (1)
 
12.14 Article in Labor Disputes
12.14 Article in Labor Disputes12.14 Article in Labor Disputes
12.14 Article in Labor Disputes
 
Forms of story_telling
Forms of story_tellingForms of story_telling
Forms of story_telling
 
efikasno disciplinovanje
efikasno disciplinovanjeefikasno disciplinovanje
efikasno disciplinovanje
 
Evaluation 3
Evaluation 3Evaluation 3
Evaluation 3
 
Boost your revenue with music!
Boost your revenue with music! Boost your revenue with music!
Boost your revenue with music!
 
CV_Fayle_Mark _Rev.1
CV_Fayle_Mark _Rev.1CV_Fayle_Mark _Rev.1
CV_Fayle_Mark _Rev.1
 
folderAGECONTROL-ENhires
folderAGECONTROL-ENhiresfolderAGECONTROL-ENhires
folderAGECONTROL-ENhires
 
Unterschiedliche Ansichtsweisen eines Titels
Unterschiedliche Ansichtsweisen eines TitelsUnterschiedliche Ansichtsweisen eines Titels
Unterschiedliche Ansichtsweisen eines Titels
 
Nov16_Updated Resume_BHOLAKUMAR SONAR
Nov16_Updated Resume_BHOLAKUMAR SONARNov16_Updated Resume_BHOLAKUMAR SONAR
Nov16_Updated Resume_BHOLAKUMAR SONAR
 
Global Pack Hungary Presentation DE-AT - Tape & Go Klebebänder
Global Pack Hungary Presentation DE-AT  - Tape & Go KlebebänderGlobal Pack Hungary Presentation DE-AT  - Tape & Go Klebebänder
Global Pack Hungary Presentation DE-AT - Tape & Go Klebebänder
 
ενέργεια
ενέργειαενέργεια
ενέργεια
 
Nichlaus Jay Rowe 2016
Nichlaus Jay Rowe 2016Nichlaus Jay Rowe 2016
Nichlaus Jay Rowe 2016
 

Similar to Introduction to android

Basic android development
Basic android developmentBasic android development
Basic android developmentUpanya Singh
 
Android Development project
Android Development projectAndroid Development project
Android Development projectMinhaj Kazi
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
Aly Abdelkareem
 
Android App Development (Basics)
Android App Development (Basics)Android App Development (Basics)
Android App Development (Basics)
Alberto Rubalcaba Stockman
 
Get an Android tutorial for beginners
Get an Android tutorial for beginnersGet an Android tutorial for beginners
Get an Android tutorial for beginners
JavaTpoint.Com
 
android training_material ravy ramio
android training_material ravy ramioandroid training_material ravy ramio
android training_material ravy ramio
slesulvy
 
Android terminologies
Android terminologiesAndroid terminologies
Android terminologies
jerry vasoya
 
Android development orientation for starters v2
Android development orientation for starters v2Android development orientation for starters v2
Android development orientation for starters v2
Joemarie Amparo
 
Android Tutorial
Android TutorialAndroid Tutorial
Android Tutorial
Fun2Do Labs
 
Android User Interface Tutorial: DatePicker, TimePicker & Spinner
Android User Interface Tutorial: DatePicker, TimePicker & SpinnerAndroid User Interface Tutorial: DatePicker, TimePicker & Spinner
Android User Interface Tutorial: DatePicker, TimePicker & Spinner
Ahsanul Karim
 
Mobile application development
Mobile application developmentMobile application development
Mobile application development
umesh patil
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
lzongren
 
01 09 - graphical user interface - basic widgets
01  09 - graphical user interface - basic widgets01  09 - graphical user interface - basic widgets
01 09 - graphical user interface - basic widgets
Siva Kumar reddy Vasipally
 
ANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.docANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.doc
Palakjaiswal43
 
Notes Unit3.pptx
Notes Unit3.pptxNotes Unit3.pptx
Notes Unit3.pptx
MIT Autonomous Aurangabad
 
Android Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_androidAndroid Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_android
Denis Minja
 
Workshop Android for Java Developers
Workshop Android for Java DevelopersWorkshop Android for Java Developers
Workshop Android for Java Developers
mhant
 
[PBO] Pertemuan 12 - Pemrograman Android
[PBO] Pertemuan 12 - Pemrograman Android[PBO] Pertemuan 12 - Pemrograman Android
[PBO] Pertemuan 12 - Pemrograman Android
rizki adam kurniawan
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
Arcadian Learning
 

Similar to Introduction to android (20)

Basic android development
Basic android developmentBasic android development
Basic android development
 
Android Development project
Android Development projectAndroid Development project
Android Development project
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
 
Android App Development (Basics)
Android App Development (Basics)Android App Development (Basics)
Android App Development (Basics)
 
Get an Android tutorial for beginners
Get an Android tutorial for beginnersGet an Android tutorial for beginners
Get an Android tutorial for beginners
 
android training_material ravy ramio
android training_material ravy ramioandroid training_material ravy ramio
android training_material ravy ramio
 
Android terminologies
Android terminologiesAndroid terminologies
Android terminologies
 
Android development orientation for starters v2
Android development orientation for starters v2Android development orientation for starters v2
Android development orientation for starters v2
 
Android Tutorial
Android TutorialAndroid Tutorial
Android Tutorial
 
Android User Interface Tutorial: DatePicker, TimePicker & Spinner
Android User Interface Tutorial: DatePicker, TimePicker & SpinnerAndroid User Interface Tutorial: DatePicker, TimePicker & Spinner
Android User Interface Tutorial: DatePicker, TimePicker & Spinner
 
Mobile application development
Mobile application developmentMobile application development
Mobile application development
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
01 09 - graphical user interface - basic widgets
01  09 - graphical user interface - basic widgets01  09 - graphical user interface - basic widgets
01 09 - graphical user interface - basic widgets
 
Android
AndroidAndroid
Android
 
ANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.docANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.doc
 
Notes Unit3.pptx
Notes Unit3.pptxNotes Unit3.pptx
Notes Unit3.pptx
 
Android Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_androidAndroid Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_android
 
Workshop Android for Java Developers
Workshop Android for Java DevelopersWorkshop Android for Java Developers
Workshop Android for Java Developers
 
[PBO] Pertemuan 12 - Pemrograman Android
[PBO] Pertemuan 12 - Pemrograman Android[PBO] Pertemuan 12 - Pemrograman Android
[PBO] Pertemuan 12 - Pemrograman Android
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
 

More from Shrijan Tiwari

ASPX Session xi(page lifecycle)
ASPX Session xi(page lifecycle)ASPX Session xi(page lifecycle)
ASPX Session xi(page lifecycle)
Shrijan Tiwari
 
Session x(ado.net)
Session x(ado.net)Session x(ado.net)
Session x(ado.net)
Shrijan Tiwari
 
Session viii(state mngtserver)
Session viii(state mngtserver)Session viii(state mngtserver)
Session viii(state mngtserver)
Shrijan Tiwari
 
Session viii(state mngtclient)
Session viii(state mngtclient)Session viii(state mngtclient)
Session viii(state mngtclient)
Shrijan Tiwari
 
Session vii(java scriptbasics)
Session vii(java scriptbasics)Session vii(java scriptbasics)
Session vii(java scriptbasics)
Shrijan Tiwari
 
Session vi(user control)
Session vi(user control)Session vi(user control)
Session vi(user control)
Shrijan Tiwari
 
Session v(css)
Session v(css)Session v(css)
Session v(css)
Shrijan Tiwari
 
Session ix(database)
Session ix(database)Session ix(database)
Session ix(database)
Shrijan Tiwari
 
Session iv(master pages)
Session iv(master pages)Session iv(master pages)
Session iv(master pages)
Shrijan Tiwari
 
Session iii(server controls)
Session iii(server controls)Session iii(server controls)
Session iii(server controls)
Shrijan Tiwari
 
Session ii(html)
Session ii(html)Session ii(html)
Session ii(html)
Shrijan Tiwari
 
Session i(introduction)
Session i(introduction)Session i(introduction)
Session i(introduction)
Shrijan Tiwari
 

More from Shrijan Tiwari (12)

ASPX Session xi(page lifecycle)
ASPX Session xi(page lifecycle)ASPX Session xi(page lifecycle)
ASPX Session xi(page lifecycle)
 
Session x(ado.net)
Session x(ado.net)Session x(ado.net)
Session x(ado.net)
 
Session viii(state mngtserver)
Session viii(state mngtserver)Session viii(state mngtserver)
Session viii(state mngtserver)
 
Session viii(state mngtclient)
Session viii(state mngtclient)Session viii(state mngtclient)
Session viii(state mngtclient)
 
Session vii(java scriptbasics)
Session vii(java scriptbasics)Session vii(java scriptbasics)
Session vii(java scriptbasics)
 
Session vi(user control)
Session vi(user control)Session vi(user control)
Session vi(user control)
 
Session v(css)
Session v(css)Session v(css)
Session v(css)
 
Session ix(database)
Session ix(database)Session ix(database)
Session ix(database)
 
Session iv(master pages)
Session iv(master pages)Session iv(master pages)
Session iv(master pages)
 
Session iii(server controls)
Session iii(server controls)Session iii(server controls)
Session iii(server controls)
 
Session ii(html)
Session ii(html)Session ii(html)
Session ii(html)
 
Session i(introduction)
Session i(introduction)Session i(introduction)
Session i(introduction)
 

Recently uploaded

Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Hivelance Technology
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
ayushiqss
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 

Recently uploaded (20)

Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 

Introduction to android

  • 1. TOPICS TO BE COVERED • Introduction to android. • Setup android environment. • User interface development. • Interactive application development.
  • 2. OVERVIEW • What is android? • History of android. • What is Open handset alliance? • Different Versions of android.
  • 3. BRIEF HISTORY • Android is a Linux-based open source software stack that comes along with: 1. operating system 2. middleware 3. native mobile applications • It was designed primarily for touchscreen mobile devices such as smartphones, tablets. • Initially developed by Android Inc.,(founded in 2003 and is based in Palo Alto, California) which operated as subsidiary of Google and later purchased by Google in 2005. • Android was publically announced in 2007 and first phone was sold on October 2008.
  • 5. NAMES & SPECIFICATION • Initial two versions were called as beta versions specified as Android 1.0 & 1.1. • Later on names of subsequent versions were based on some dessert & are in alphabetic orders e.g. 1. 1.5 Cupcake 2. 1.6 Donut 3. 2.0/2.1 Éclair 4. 2.2 Froyo 5. 2.3 Gingerbread 6. 3.0/3.1 Honeycomb 7. 4.0 Ice-cream Sandwich 8. 4.1 Jelly Bean 9. 4.4 Kitkat
  • 8. OPEN SOURCE Industry • Software stack open- sourced under Apache 2.0 license • Source available after first handsets ship • Anyone will be able to build a system image Users • Users have control of their experience • They control what gets installed • They choose the defaults Developer • Don not need permission to ship an application • No hidden or privileged framework APIs • Can integrate, extend and replace existing components INDUSTRY USER DEVELOPER
  • 10. USER INTERFACE • User interface layout • View • View group • UI attributes and ID • Types of layouts • Basic Input controls I. Buttons II. Textfields III. Radio button IV. Checkbox V. Toggle button VI. Spinners VII. Pickers
  • 11. USER INTERFACE DESIGNING Two ways: 1. Programming 2. Drag & Drop (good and efficient)
  • 12. View & view group What is view? • All user interface elements in the android app are build using view and view group objects. e.g. view contains: button, textfields, etc.
  • 13. What is view group?
  • 14. For Example Vertical layout in which Button and Text View look like this <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="I am a TextView" /> <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="I am a Button" /> </LinearLayout>
  • 15. ATTRIBUTES • Id: every view element has a unique id. Example android:id=“@+id/unique name” Indicates xml should be parsed Indicates new resource has to added to R.java file Resource generated automatically
  • 16. LAYOUT AND ITS TYPES • Linear • Relative • Table layout • Grid layout • Grid view • List view
  • 17. LINEAR LAYOUT • LinearLayout is a view group that aligns all children in a single direction, vertically or horizontally. You can specify the layout direction with the android :orientation attribute. Example:
  • 18. • <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="16dp" android:paddingRight="16dp" android:orientation="vertical" > <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/to" /> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/subject" /> <EditText android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:gravity="top" android:hint="@string/message" /> <Button android:layout_width="100dp" android:layout_height="wrap_content" android:layout_gravity="right" android:text="@string/send" /> </LinearLayout>
  • 19.
  • 20. RELATIVE LAYOUT • Relative layout is a view group that displays child views in relative positions
  • 21. • <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="16dp" android:paddingRight="16dp" > <EditText android:id="@+id/name" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/reminder" /> <Spinner android:id="@+id/dates" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_below="@id/name" android:layout_alignParentLeft="true" android:layout_toLeftOf="@+id/times" /> <Spinner android:id="@id/times" android:layout_width="96dp" android:layout_height="wrap_content" android:layout_below="@id/name" android:layout_alignParentRight="true" /> <Button android:layout_width="96dp" android:layout_height="wrap _content" android:layout_below="@id /times" android:layout_alignParent Right="true" android:text="@string/done" /> </RelativeLayout>
  • 22. LIST VIEW • List view a view group that displays a list of scrollable items. • The list using an adapter that pulls content from a source such as an array or database query and converts each item result into a view that’s placed into the list.
  • 23. GRID VIEW • Grid view is a view group that displays items in a two dimensional, scrollable grid. The grid items are automatically inserted to the layout using list adapter.
  • 24. Control Type Description Related Classes Button A push-button that can be pressed, or clicked, by the user to perform an action. Button Text field An editable text field. You can use theAutoCompleteTextView widget to create a text entry widget that provides auto-complete suggestions EditText,AutoCompleteTextView Checkbox An on/off switch that can be toggled by the user. You should use checkboxes when presenting users with a group of selectable options that are not mutually exclusive. CheckBox Radio button Similar to checkboxes, except that only one option can be selected in the group. RadioGroup RadioButton Toggle button An on/off button with a light indicator. ToggleButton Spinner A drop-down list that allows users to select one value from a set. Spinner Pickers A dialog for users to select a single value for a set by using up/down buttons or via a swipe gesture. Use aDatePickercode> widget to enter the values for the date (month, day, year) or a TimePicker widget to enter the values for a time (hour, minute, AM/PM), which will be formatted DatePicker,TimePicker
  • 31. HOW TO MAKE APP INTERACTIVE? Two ways: 1. onclick event 2. onclick listerner
  • 33. public void sendMessage(View view) { // Do something in response to button click } The method you declare in the android:onClick attribute must have a signature exactly as shown above. Specifically, the method must: • Be public • Return void • Define a View as its only parameter
  • 34. USING Onclicklistener Button button = (Button) findViewById(R.id.button_send); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Do something in response to button click } });
  • 35. CHECKBOX public void onCheckboxClicked(View view) { // Is the view now checked? boolean checked = ((CheckBox) view).isChecked(); // Check which checkbox was clicked switch(view.getId()) { case R.id.checkbox_meat: if (checked) // Put some meat on the sandwich else // Remove the meat break; case R.id.checkbox_cheese: if (checked) // Cheese me else // I'm lactose intolerant break; // TODO: Veggie sandwich }}
  • 37. ONCLICK EVENT public void onRadioButtonClicked(View view) { // Is the button now checked? boolean checked = ((RadioButton) view).isChecked(); // Check which radio button was clicked switch(view.getId()) { case R.id.radio_pirates: if (checked) // Pirates are the best break; case R.id.radio_ninjas: if (checked) // Ninjas rule break; }}
  • 38. Important Folders • Whenever we create any Application, there are a number of folders which are created by default. • These folders contain subfolders and important files associated to them which play a key role in proper UI designing as well as coding. 1. src (source code of activities) 2. Android 4.4 (contains all library files) 3. gen ( auto generated files (R.java)) 4. Res (resource) 1. it contains all Drawable components 2. layouts ( it contains the xml file) 3. menu 4. values – string.xml dimens.xml style.xml 5. Android Manifest File 1. Sdk (min to max) 2. Application (contain main activity details) a. Activity b. Intent filter c. Providers d. Services e. Receivers etc.
  • 39.
  • 40. Image View 1. If we want to add an Image in our activity, we need to copy the image to the “Drawable folder” in “res folder”. 2. Drawable folder contains subfolders : 1. hdpi ( ̴ 240 dpi) is High density pixels 2. ldpi ( ̴ 120 dpi) is Low density pixels 3. mdpi ( ̴ 160 dpi) is medium density pixels 4. xhdpi ( ̴ 320 dpi) is extra high density pixels 3. Add <imageView> and define different parameters in it.
  • 41. Toast Message (notification) • Toast provides simple feedback about an operation in a small popup. • It only fills the amount of space required for the message and the current activity remains visible and interactive. • Toast automatically disappears after timeout. Syntax : Toast toast=Toast.makeText (context, text, duration); toast.show(); Note:- Toast is instantiated by using makeText() method.
  • 42. Activity 1 Background= #F00000 text="@string/button_01" textStyle="bold" fontFamily="times new roman" background="#68AD00" textColor="#000000" text="@string/button_02" textStyle="bold" fontFamily="times new roman" background="#FFF000" textColor="#000000" Button
  • 43. Activity 2 layout_width=”30dp” ems="10" hint="@string/Textview" inputType="text" textColor="#000000" background="#FF00FF” layout_width=”30dp” ems="10" hint="@string/Textview" textColor="#000000" background="#00FF00” inputType= “date” layout_width=”30dp” ems="10" hint="@string/Textview" textColor="#000000" background="#663300” inputType= “time” layout_width=”130dp” android:text="Submit" android:textColor="#FFFFFF" android:background="#FF0000" layout_width=”30dp” ems="10" hint="@string/Textview" textColor="#000000" background="#009900” Background= #FFFF66