ADF Notes

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

1] GET TEXT =  

getText() method to get the text entered in the EditText views

2] SET TEXT =ou can set the text to be displayed in the TextView either when declaring it in
your layout file, or by using its setText() method.
3] INTENT=Android Intent is the message that is passed between components such as
activities, content providers, broadcast receivers, services etc. It is generally used with
startActivity() method to invoke activity, broadcast receivers etc. 
4]TOAST=An Android Toast is a small message displayed on the screen, similar to a tool
tip or other similar popup notification. A Toast is displayed on top of the main content of an
activity, and only remains visible for a short time period
5] RES = The res/values folder is used to store the values for the resources that are used in
many Android projects to include features of color, styles, dimensions etc. Below explained
are few basic files, contained in the res/values folder: colors. ... xml is an XML file which is
used to store the colors for the resources

6] Android Activity Lifecycle methods


Let's see the 7 lifecycle methods of android activity.

Method Description

onCreate called when activity is first created.

onStart called when activity is becoming visible to the user.

onResume called when activity will start interacting with the user.

onPause called when activity is not visible to the user.

onStop called when activity is no longer visible to the user.

onRestart called after your activity is stopped, prior to start.

onDestroy called before the activity is destroyed.

8]WHAT IS LANGUAGE USE IN AS= java c++

9]

Sr.No Layout & Description

1 Linear Layout
LinearLayout is a view group that aligns all children in a single direction,
vertically or horizontally.

2 Relative Layout
RelativeLayout is a view group that displays child views in relative
positions.

3 Table Layout
TableLayout is a view that groups views into rows and columns.

4 Absolute Layout
AbsoluteLayout enables you to specify the exact location of its children.

5 Frame Layout
The FrameLayout is a placeholder on screen that you can use to display
a single view.

6 List View
ListView is a view group that displays a list of scrollable items.

7 Grid View
GridView is a ViewGroup that displays items in a two-dimensional,
scrollable grid.

10] A ConstraintLayout is a android. view. ViewGroup which allows you to position and
size widgets in a flexible way.
11] In Android, an XML-based layout is a file that defines the different widgets to be used in
the UI and the relations between those widgets and their containers.
12] Android is a mobile operating system based on a modified version of the Linux kernel and
other open source software, designed primarily for touchscreen mobile devices such as
smartphones and tablets.

13] The default Layout used by Android Studio is the ConstraintLayout 

14] ConstraintLayout is a layout on Android that gives you adaptable and flexible ways to
create views for your apps. ConstraintLayout , which is now the default layout in Android
Studio, gives you many ways to place objects. You can constrain them to their container, to
each other or to guidelines.
15] UI =The user interface (UI) for an Android app is built as a hierarchy of layouts and
widgets. The layouts are ViewGroup objects, containers that control how their child views
are positioned on the screen. Widgets are View objects, UI components such as buttons and
text boxes
16] XML resource that provides a single string. XML resource that provides an array
of strings. XML resource that carries different strings for pluralization.
SET ICON METHODS

1. Open the project in Android Studio.


2. Select the app folder.
3. Go to File → New → Image Asset.
4. On "Foreground Layer" select the provided image and resize in order to get
the proper aspect for the icon.
5. On “Background Layer" use the background provided.
6. Click on Next button and then Finish.

17] draw able

You might also like