Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Select the appropriate option to set the width of the TextView to 100% of the available space /1pt a) android:layout_width=match_parent b) android:layout_width=wrap_content c) android:

image text in transcribed

image text in transcribed

image text in transcribed

1) Select the appropriate option to set the width of the TextView to 100% of the available space /1pt a) android:layout_width="match_parent" b) android:layout_width="wrap_content" c) android: width="match_parent" d) android:layout_length="match_parent" 2) Which of the following options will set the button width to 150 dp/1pt a) android:layout_width="150" b) android:layout_width="150dp" c) android:layout_height="150dp" d) android:layout_length="150dp" 3) Which of the following options will set the text size to 25sp/1pt a) android:layout_textSize="25" b) android:textSize="25sp" c) android:layout_ textSize="25sp" d) android:fontSize="25sp" 4) Select the appropriate option to set the button text to "click me"/1pt a) android:layout_text=" click me" b) android:text Value=" click me" c) android:layout_text=" click me" d) android:text=" click me" 5) Select the appropriate option to set the color of the text on the button /1pt a) android:layout_textColour b) android:textColor c) android:layout_textColor d) android:textColour 6) Select the appropriate option to set the background colour of the button /1pt a) android:backColor b) android:backgroundColor c) android:background d) android:backgroundColour 7) Select the appropriate option to center the text on the object of TextView /1pt a) android:layout_center Horizontal="false" b) android:layout_center Horizontal="true" c) android: center Horizontal="true" d) android: gravity="center" 8) Select the appropriate option to set the button ID to "button OK"/1pt a) android:id="id/button OK" b) android:id="@+id_buttonOK" c) android:id="@/button OK" d) android:id="@+id/button OK" 9) Select the main method of the Activity class /1pt a) StartActivity() b) StartActionMode() c) OnCreate() d) StartActivities() 10) Select the option that sets Page1 as the home page in an application of type Xamarin.Forms/1pt a) Main = new Page1(); b) MainPage = new Page1(); c) Root = new Page 1(); d) RootPage = new Page 1(); 11) Select the option that removes the Page2 page from the stack in an application of Xamarin.Forms /1pt a) Navigation.PopAsync(); b) Navigation.PopAsync(Page 2); c) Navigation.PushAsync(); d) Navigation.PushAsync(Page 2); 12) Select the option that sets the Page3 page stacked in an application of Xamarin.Forms/1pt a) Navigation.PushAsync(Page 3); b) Navigation.PushAsync(Page3()); c) Navigation.PushAsync(new Page30); d) Navigation.PopAsync(new Page 3()); 13) Select the option that combines 2 cells in a row of Grid in an application of Xamarin.Forms /1pt a) ColumnSpan="2" b) Grid.RowSpan="2" c) Grid.ColumnSpan="2" d) RowSpan="2" 14) Write the missing code to split the contentPage (in Xamarin.Forms) into 2 columns and 3 rows. Take the same height of the rows and the same width of the columns. /3pt Content> 15) Write the properties for LinearLayout1 according the drawing shown below/3pt ... 18) Having the following 3 elements in a layout file (e.g. in the file layout1.xml): write instructions assigning references to the textview1, button1, edittext1 objects in the Activity class to the above elements of the layout/3p 19) Describe the differences between LineraLayout and RelativeLayout /4p 20) Write a Click event for the button object (of the Button type), which will set the following text on the textview1 object (of the TextView type): "Mobile device software design - exam"/3p

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

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions