x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

x
x
x
Hire a Tutor

Answers and Solutions

What's Your Question?
Answer

It defines layout or architecture for the application UI and that will be saved in res/layout/ folder and access through R.layout class.

Answer

Layout is simply the look and feel of your application. Different pages in your application are called activities, these activities contain different layouts.

Answer

A layout resource defines the architecture for the UI in an Activity or a component of a UI.

FILE LOCATION:

res/layout/filename.xml

The filename will be used as the resource ID.

COMPILED RESOURCE DATATYPE:

Resource pointer to a View (or subclass) resource.

RESOURCE REFERENCE:

In Java: R.layout.filename In XML: @[package:]layout/filename

Answer

Resources is everything of the application except the Java code. In Android  we are familiar with some of the resources like text, color, layout, dimension, etc. Android provides the specific folders the specific resources type. The root folder of resources is res/ and this folder contains many sub folder for each resource type.Whereas Layout resource is the file that is a definition of User Interface. The directory that store the layout resources is res/layout.

Answer
The layout resources defines layout or architecture for the application UI and that will be saved in res/layout/ folder and access through R.layout class.

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer