What XML attribute is used to specify the width of a view in Android?
Android Boot Camp Day 2

Quiz
•
Computers
•
University
•
Hard
Ritesh Phadtare
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
layout_height
android_width
android:layout_width
width
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In Android, how do you display a simple toast message?
Toast.makeText(this, "Hello", Toast.LENGTH_SHORT).show();
showToast("Hello");
new Toast("Hello").display();
Toast.showMessage("Hello", Toast.LENGTH_SHORT);
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How do you start a new activity using an explicit Intent in Android?
startActivity(new Intent(this, NewActivity.class));
startActivity(NewActivity.class);
intent.startNewActivity(this, NewActivity.class);
startNewActivity(Intent(this, NewActivity.class));
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which layout manager is used to arrange elements in a grid in Android XML?
LinearLayout
RelativeLayout
GridLayout
FrameLayout
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How can you set the duration of a Toast message to be displayed for a longer time?
Toast.LENGTH_SHORT
Toast.LENGTH_LONG
Toast.DURATION_LONG
Toast.DURATION_SHORT
Similar Resources on Wayground
10 questions
Quiz on Android Intents and Activity Communication

Quiz
•
University
10 questions
Revisão 2ª AV - Programação Mobile

Quiz
•
University
10 questions
INTERNET CONNECTIONS

Quiz
•
University
6 questions
Pre Test Modul 1 & 2

Quiz
•
University
10 questions
Pengujian UI dan Tata Letak Adaptif

Quiz
•
University
10 questions
Android SQLite & Permissions

Quiz
•
University
10 questions
Programación Movil II - Parte 7

Quiz
•
University
10 questions
Quiz Lab IF570 2

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade