Android Development Flashcards
what makes up the ANDROID SYSTEM ARCHITECTURE?
Applications Application Framework Libraries Android Runtime Linux Kernel
What is a VIEW?
The base class create Interactive UI Components
What is the CONTENT PROVIDER?
It allows the user to access information from another application
What is the RESOURCE MANAGER?
Provides access to non-code resources such as localised strings, graphics and layouts
What is the NOTIFICATION MANAGER?
Displays custom alerts
What is the ACTIVITY MANAGER?
This manages the lifecycle of an application
What is ANDROID RUNTIME?
A java code which implements the Android Application Programming Interface for UI data access, and other platform features.
What is the LINUX KERNEL?
Operating System used by LINUX family.
What is SDK and what does it provide?
Software Developer’s Kit, and it provides the API (Application Programming Interface) libraries and developer tools
RelativeLayout: …
to specify the location of child objects relative to each other.
xmlns:android=“…”: …
to define the XML namespace to reference part of the Android SDK.
android:layout_width/height=”match_parent”:…
to make the width as wide/high as it can be within the parent.
android:paddingBottom/Left/Right/Top=“16dp”: …
to set the padding, in pixels, of the bottom/left/right/top edge.
tools:context=“com…MainActivity”:
to find the right theme based on the activity.
android:layout_width/height=“wrap_content”:
to display the item wide/high enough to enclose its content.
android:text=“…”:
to display the text.
android:id=“@+id/phone_icon” :
The id attribute defines the unique identifier for the view in the Android system.
android:layout_width=“wrap_content”:
Informs the Android system to only take up as wide as needed to show the view.
android:layout_height=“wrap_content”:
Informs the Android system to only take up as high as needed to show the view.
android:layout_gravity:
This defines how to place the view, both its x- and y-axis, with its parent.
android:src=“@drawable/phone_on”:
This is a direct child of the ImageView class. One can use this to set the image that they wish to see on the screen.
What are Event Listeners:
This is an object that receives notification when an event happens, using the View class to build up an Android GUI.