Question

In: Computer Science

Describe each layout type: linear, table, frame and nest and give an example of an app...

Describe each layout type: linear, table, frame and nest and give an example of an app function it might be best for.

This is for Android Programming

Solutions

Expert Solution

Linear Layoout: In linear layout,

1) the child elements are displayed in a linear style like horizontal or vertical.

2) it has two orientations, horizontal and vertical.

3) in vertical orientation, all child elements are arranged one below the other.

4) in horizontal orientation, all child elements are arranged sideways.

5) It can be used in making a login/signup activity, where we need a vertical alignement of textviews.

6) As it has weightsum attribute, different child element's height and width can be set relative to the whole layout.

Table Layout: In table layout,

1) the child elements are arranged according to rows and columns

2) it is same like the HTML tables and in this also, the rows has as many cells as the row having the most cells.

3) it can be used in showing tabular data to the user.

Frame Layout: In frame layout,

1) it is specifically used to display a single view on a specific area.

2) multiple childs can be there , but it will be very difficult to manage them in frame layout.

3) It can be used to show pictorial cards, title image, etc.

Nested Layout: In nested layout, multiples layouts are nested within each other to get the desired view and control over child elements. For ex: need to show some list of data with scroll property. In this case we need to use ListView with Scrollview.

if it helps you, do upvote as it motivates us a lot!


Related Solutions

Name and describe the 7 layout strategies and give an example of each one
Name and describe the 7 layout strategies and give an example of each one
Give an example of each type of tissue in a frog Describe its general anatomy Describe...
Give an example of each type of tissue in a frog Describe its general anatomy Describe its basic function
describe how the various types of protozoans move, and give an example of each type
describe how the various types of protozoans move, and give an example of each type
Describe how the various types of protozoans move, and give an example of each type. What...
Describe how the various types of protozoans move, and give an example of each type. What type of algae are believed to be closely related to the first plants? Why? How might diseases like malaria, which are transmitted via mosquitoes, be affected by global warming? Explain the difference between pollination and fertilization in plants. What features are seen in angiosperms that are not seen in gymnosperms? How do they contribute to the success of angiosperms? Which plant group provides the...
Give an example of an enzyme Give a type of reaction Name a pathway for each...
Give an example of an enzyme Give a type of reaction Name a pathway for each coenzyme/cofactor For each: Fe2+: found in Mb/Hb Mg2+: stabilizes negative charges on ADP/ATP Biotin: 1-C (carboxy) carrier NAD+/NADH & FAD(H2): electron carriers (how many electrons?) TPP: 2-C (acetaldehyde) carrier Lipoate: acyl/acetyl group and electron carrier Coenzyme A: acyl/acetyl carrier with thiol group
whats the type of loops and give example of each one ?
whats the type of loops and give example of each one ?
What is Linear Programming? Give an example of an application of Linear
What is Linear Programming? Give an example of an application of Linear
Please explain and give an example: Solving linear and quadratic equations. Please type answer do not...
Please explain and give an example: Solving linear and quadratic equations. Please type answer do not hand write. Thank you.
Describe a workplace you are familiar with. For each type of hazard, describe an example of...
Describe a workplace you are familiar with. For each type of hazard, describe an example of the hazard present in the workplace, and what controls are used to mitigate the danger associated with it. There should be an example of each type of control (Engineering, Administrative, and PPE) for each hazard. Example: Grocery Distribution Center Temperature Hazard: -25° Freezer Engineering Control: The freezer is walled off from the rest of the perishable goods area Admin Control: Personnel cannot work in...
List the three types of radius of convergence. Give an example of each type
List the three types of radius of convergence. Give an example of each type  
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT