This document provides information about a mobile application development course including:
- The course teacher and outcomes which include explaining Android features, configuring development tools, designing user interfaces using layouts and components.
- Commonly used Android view classes for creating user interfaces like TextView, EditText, Button, ImageView, CheckBox, RadioButton, ListView and more.
- Code examples for implementing views like ImageView, CheckBox, RadioButton, RadioGroup, ImageButton, ProgressBar and more.
Android User Interface Tutorial: DatePicker, TimePicker & SpinnerAhsanul Karim
These slides are for self-learners and trainees of my BASIS and DIIT Android course.
I have used information, content and images from various sources. As these materials are for non-commercial use, I think they won’t infringe any copyright issue.
A complete Lab Manual with Aim, Procedure, Source Code, ... All the Experiments of Mobile Application Development Lab are developed using Android Studio.
Android Application Development - Level 1Isham Rashik
Very basics of Android Application Development for the beginners who have no prior experience with programming. Can be used for hobby purpose as well as educational material for the academic purpose.
The Content helps those who wish to program mobile applications using android platform. The content has been used to conduct mobile application boot camps using android platform on different regions in Tanzania
Android User Interface Tutorial: DatePicker, TimePicker & SpinnerAhsanul Karim
These slides are for self-learners and trainees of my BASIS and DIIT Android course.
I have used information, content and images from various sources. As these materials are for non-commercial use, I think they won’t infringe any copyright issue.
A complete Lab Manual with Aim, Procedure, Source Code, ... All the Experiments of Mobile Application Development Lab are developed using Android Studio.
Android Application Development - Level 1Isham Rashik
Very basics of Android Application Development for the beginners who have no prior experience with programming. Can be used for hobby purpose as well as educational material for the academic purpose.
The Content helps those who wish to program mobile applications using android platform. The content has been used to conduct mobile application boot camps using android platform on different regions in Tanzania
COIT20270 Application Development for Mobile PlatformsWeek 4.docxmary772
COIT20270 Application Development for Mobile Platforms
Week 4: Designing UI’s with Views
Dr. R. Balsys, CQU, 2012.
Source: Beginning Android Programming with Android Studio, J.F. DiMarzio, 2016
Week 4 – Designing UI’s with Views
Objectives, to understand how to use:
basic views
TextView views
Button, ImageButton, EditText, Checkbox, ToggleButton, RadioButton and RadioGroup views
ProgressBar views
AutoCompleteTextView views
Picker views – TimePicker and DatePicker
CQU - COIT20270 Application Development for Mobile Platforms
Basic Views
Basic views allow you to display text and perform selection. This includes-
TextView
Button
ImageButton
EditText
Checkbox
ToggleButton
RadioButton
RadioGroup
CQU - COIT20270 Application Development for Mobile Platforms
3
TextView view
This basic view allows you to display static text
<TextView> elements are contained in the main.xml file in the res/layout directory
CQU - COIT20270 Application Development for Mobile Platforms
4
Other Basic Views
Other basic views you will use include:
Button – a push button widget
ImageButton – a Button with an image on it
EditText – subclass of TextView with editable text
CheckBox – a button with checked and unchecked states
RadioGroup and RadioButton – RadioGroup is used to group RadioButton’s
ToggleButton – displays states using a light indicator
CQU - COIT20270 Application Development for Mobile Platforms
5
…Other Basic Views
Use “fill_parent” for android:layout_width or android:layout_height so that the basic view fills the parent view space
Use “wrap_content” for android:layout_width or android:layout_height so that the basic view tightly bounds the content only
The android:src value is used to define the image for an ImageButton
You can use the style attribute to set the style of a CheckBox to a star
RadioButtons in a RadioGroup automatically toggle off when one is selected
CQU - COIT20270 Application Development for Mobile Platforms
6
…Other Basic Views
Use android:orientation=“horizontal” to place RadioButtons horizontally, rather than in the default vertical layout
The android:id of a view is used by View.findViewById() to identify each unique view by its Id
The setOnClickListener() method is used to define a call-back for handling a click on a view
CQU - COIT20270 Application Development for Mobile Platforms
7
ProgressBar View
The ProgressBar view is used to indicate progress of some background task
The default view is indeterminate, merely showing cyclic animation, that you stop when the activity is complete
You hide a ProgressBar by setting its Visibility attribute to View.Gone. This stops the ProgressBar and removes the it from the view
You can change the look of the ProgressBar using the constants: Widget.ProgressBar.Horizontal, Widget.ProgressBar.Small, Widget.ProgressBar.Large, Widget.ProgressBar.Inverse, Widget.ProgressBar.Small.Inverse, Widget.ProgressBar.Large.Inverse
CQU - COIT20270 Application Development for Mobile.
Those who want to be familiar with Android, can easily go through this document. It will help them to learn basics. It is also useful for those who are preparing for cracking android interviews as this document is short and precise.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
COIT20270 Application Development for Mobile PlatformsWeek 4.docxmary772
COIT20270 Application Development for Mobile Platforms
Week 4: Designing UI’s with Views
Dr. R. Balsys, CQU, 2012.
Source: Beginning Android Programming with Android Studio, J.F. DiMarzio, 2016
Week 4 – Designing UI’s with Views
Objectives, to understand how to use:
basic views
TextView views
Button, ImageButton, EditText, Checkbox, ToggleButton, RadioButton and RadioGroup views
ProgressBar views
AutoCompleteTextView views
Picker views – TimePicker and DatePicker
CQU - COIT20270 Application Development for Mobile Platforms
Basic Views
Basic views allow you to display text and perform selection. This includes-
TextView
Button
ImageButton
EditText
Checkbox
ToggleButton
RadioButton
RadioGroup
CQU - COIT20270 Application Development for Mobile Platforms
3
TextView view
This basic view allows you to display static text
<TextView> elements are contained in the main.xml file in the res/layout directory
CQU - COIT20270 Application Development for Mobile Platforms
4
Other Basic Views
Other basic views you will use include:
Button – a push button widget
ImageButton – a Button with an image on it
EditText – subclass of TextView with editable text
CheckBox – a button with checked and unchecked states
RadioGroup and RadioButton – RadioGroup is used to group RadioButton’s
ToggleButton – displays states using a light indicator
CQU - COIT20270 Application Development for Mobile Platforms
5
…Other Basic Views
Use “fill_parent” for android:layout_width or android:layout_height so that the basic view fills the parent view space
Use “wrap_content” for android:layout_width or android:layout_height so that the basic view tightly bounds the content only
The android:src value is used to define the image for an ImageButton
You can use the style attribute to set the style of a CheckBox to a star
RadioButtons in a RadioGroup automatically toggle off when one is selected
CQU - COIT20270 Application Development for Mobile Platforms
6
…Other Basic Views
Use android:orientation=“horizontal” to place RadioButtons horizontally, rather than in the default vertical layout
The android:id of a view is used by View.findViewById() to identify each unique view by its Id
The setOnClickListener() method is used to define a call-back for handling a click on a view
CQU - COIT20270 Application Development for Mobile Platforms
7
ProgressBar View
The ProgressBar view is used to indicate progress of some background task
The default view is indeterminate, merely showing cyclic animation, that you stop when the activity is complete
You hide a ProgressBar by setting its Visibility attribute to View.Gone. This stops the ProgressBar and removes the it from the view
You can change the look of the ProgressBar using the constants: Widget.ProgressBar.Horizontal, Widget.ProgressBar.Small, Widget.ProgressBar.Large, Widget.ProgressBar.Inverse, Widget.ProgressBar.Small.Inverse, Widget.ProgressBar.Large.Inverse
CQU - COIT20270 Application Development for Mobile.
Those who want to be familiar with Android, can easily go through this document. It will help them to learn basics. It is also useful for those who are preparing for cracking android interviews as this document is short and precise.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
2. 2
Course Outcomes
ESC155: Mobile Application Development
ESC255: Lab-III: Mobile Application Development
CO1: Explain Android Ecosystem and features of android operating system (II Understand)
CO2: Configure Android environment and development tools. (III Apply)
CO3: Use different layouts and control flow for designing User interface. (III Apply)
CO4: Design user interface using different UI Components of Android. (III Apply)
CO5: Demonstrate different lifecycles in Android. (III Apply)
CO6: Illustrate process of publishing an android app on google play store. (III Apply)
3. • UNIT-IV: Text View, Edit Text, Button, Image Button, Radio Button and
Radio Group, Progress Bar, Image View
Textbooks/ Reference Books :
1. Composing Mobile Apps , by Anubhav Pradhan, Anil V Deshpande, Wiley
Publication.
2. Android App Development for Dummies , Michael Burton , Wiley
Publication.
3. Android Programming for Beginners , John Horton , Packt Publishing.
3
4. 4
• The Basic building block for user interface is a View object which is created
from the View class and occupies a rectangular area on the screen.
• View referes to Android.view class , which is the super class for all the GUI
Components like Textview, ImageView, Button etc.
Views are divided into following categories,
Basic Views: it contain Commonly used view such as Textview,EditText, Button
views
Picker Views: It has views which enable users to select from list like Datepicker,
Timepicker.
ListView : It has views like ListView and Spinner Views.
6. 6
Most Commonly Used Android View classes:
These views can be used to create a useful input and output fields.
•Text View
•EditText
•Button
•ImageView
•ImageButton
•CheckBox
•Radio button
•RadioGroup
•ListView
•Spinner
•AutoCompleteTextView
7. 7
Image view:
Image view helps to display images in an android application.
Any image can be selected, we just have to paste our image in a
drawable folder from where we can access it.
For example: In below Code “@drawable/ic_laucher” has been
taken.
9. 9
Check Box:
Checkbox is used in that applications where we have to select
one option from multiple provided. Checkbox is mainly used
when 2 or more options are present.
11. 11
Radio Button:
Radio button is like checkbox, but there is slight difference between them.
Radio button is a two-states button that can be either checked or
unchecked.
12. 12
XML coding of Radio Button:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="center_horizontal" >
<RadioButton
android:id="@+id/radioButton1"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:text="Formget"
android:checked="true" />
<RadioButton
android:id="@+id/radioButton1"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:text="Mailget" />
</LinearLayout>
16. 16
btnDisplay.setOnClickListener(new OnClickListener( )
{ @Override public void onClick(View v)
{ // get selected radio button from radioGroup
int selectedId = radioSexGroup.getCheckedRadioButtonId();
// find the radiobutton by returned id
radioSexButton = (RadioButton) findViewById(selectedId);
Toast.makeText(MyAndroidAppActivity.this, radioSexButton.getText(),
Toast.LENGTH_SHORT).show();
}
});
}
}
19. 19
Image Button View:
Image button is a button but it carries an image on it. We can put
an image or a certain text on it and when we click it provides the
operations assigned to it.
20. 20
Syntax For Image Button In XML Coding Is:
XML coding of Image button:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/ic_launcher" />
</LinearLayout>
21. 21
Attribute Description
android:text Used to specify the text to be
displayed in the TextView
android:textSize Using this attribute we can control
the size of the text.
android:textColor Using this attribute we can specify
the color of our text.
android:textAllCaps If set True, this will make the text
appear in upper case.
android:letterSpacing Using this attribute we can set the
spacing between
TextView is the most widely used view used to show pre-defined text on display screen.