Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Introduction In this homework you will explore LinearLayout. Throughout this homework you will find resources at https: //developer.android.com very help. In particular the the

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
1 Introduction In this homework you will explore LinearLayout. Throughout this homework you will find resources at https: //developer.android.com very help. In particular the the API guide For the following exercises, create an Android project called Homeworkl targeting API level 16 and above. Accept the defaults for all subsequent dialogs (including letting Android create an empty activity for you). 2 Colored rectangles We need to see what the layout manager is doing with our components (View subclasses). For the most part, it doesn't matter what kind of view we place inside the layout so we'l simply use solid rectangles: one rectangle.xml 1 2 10 12 KILinearLayout> Here we create a generic View (which all Android views subclass) and give it a background color. Create this layout and note its appearance in the Design view. Note that colors are specified as hexadecimal numbers, each two digits, in red. green blue order. So, for example, #ff0000 is red and #00ff00 is green etc. In the Text view note the colored swab appearing in the swim lane on the left of the editor on the android:background line. Click on this to adjust the color using a GUI 3 Linear Layout Read https://developer.android.com/guide/topics/ui/layout/linear.html and especially note the link towards the bottom that discusses layout parameters for children of Linear Layouts. Note that we focus on horizontal layouts in the subsequent sections but you can achieve the same effects vertically, of course

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions