Skip to content

Instantly share code, notes, and snippets.

/Option A

Created Apr 25, 2015
Embed
What would you like to do?
3 options for the layout of an activity for a quiz question
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="Quantity"
android:textAllCaps="true" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:layout_width="48dp"
android:layout_height="48dp"
android:onClick="decrement"
android:text="-" />
<TextView
android:id="@+id/quantity_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:text="2"
android:textColor="@android:color/black"
android:textSize="16sp" />
<Button
android:layout_width="48dp"
android:layout_height="48dp"
android:onClick="increment"
android:text="+" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Price"
android:textAllCaps="true" />
<TextView
android:id="@+id/price_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="$10"
android:textColor="@android:color/black"
android:textSize="16sp" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:onClick="submitOrder"
android:text="Order" />
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="Quantity"
android:textAllCaps="true" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<Button
android:layout_width="48dp"
android:layout_height="48dp"
android:onClick="decrement"
android:text="-" />
<TextView
android:id="@+id/quantity_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:text="2"
android:textColor="@android:color/black"
android:textSize="16sp" />
<Button
android:layout_width="48dp"
android:layout_height="48dp"
android:onClick="increment"
android:text="+" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Price"
android:textAllCaps="true" />
<TextView
android:id="@+id/price_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="$10"
android:textColor="@android:color/black"
android:textSize="16sp" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:onClick="submitOrder"
android:text="Order" />
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="Quantity"
android:textAllCaps="true" />
<Button
android:layout_width="48dp"
android:layout_height="48dp"
android:onClick="decrement"
android:text="-" />
<TextView
android:id="@+id/quantity_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:text="2"
android:textColor="@android:color/black"
android:textSize="16sp" />
<Button
android:layout_width="48dp"
android:layout_height="48dp"
android:onClick="increment"
android:text="+" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Price"
android:textAllCaps="true" />
<TextView
android:id="@+id/price_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="$10"
android:textColor="@android:color/black"
android:textSize="16sp" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:onClick="submitOrder"
android:text="Order" />
</LinearLayout>
@mukund14

This comment has been minimized.

Copy link

@mukund14 mukund14 commented Jun 29, 2015

1

@nemoka69

This comment has been minimized.

Copy link

@nemoka69 nemoka69 commented Jun 29, 2015

Option A

@urmohan

This comment has been minimized.

Copy link

@urmohan urmohan commented Jun 30, 2015

Answer: A

@gamesnepal

This comment has been minimized.

Copy link

@gamesnepal gamesnepal commented Jul 3, 2015

Smartasses.

@spamshot

This comment has been minimized.

Copy link

@spamshot spamshot commented Jul 8, 2015

None of them! android:text="Order" is wrong in all of them.

@nutthawan

This comment has been minimized.

Copy link

@nutthawan nutthawan commented Jul 17, 2015

Option A is correct

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Jul 25, 2015

A

@massoudasadi

This comment has been minimized.

Copy link

@massoudasadi massoudasadi commented Aug 1, 2015

text is 2 but must be zero . option A is correct

@lordhasyim

This comment has been minimized.

Copy link

@lordhasyim lordhasyim commented Aug 26, 2015

A

@walaa-assy

This comment has been minimized.

Copy link

@walaa-assy walaa-assy commented Aug 31, 2015

A

@vsal55555

This comment has been minimized.

Copy link

@vsal55555 vsal55555 commented Sep 1, 2015

A

@cybersokari

This comment has been minimized.

Copy link

@cybersokari cybersokari commented Sep 11, 2015

A

@azmina721

This comment has been minimized.

Copy link

@azmina721 azmina721 commented Sep 15, 2015

A

@iswetha522

This comment has been minimized.

Copy link

@iswetha522 iswetha522 commented Sep 16, 2015

A

@caribesoft

This comment has been minimized.

Copy link

@caribesoft caribesoft commented Sep 28, 2015

Option "A" is correct

@OGx09

This comment has been minimized.

Copy link

@OGx09 OGx09 commented Sep 30, 2015

A is the correct answer

@zynabsmaan

This comment has been minimized.

Copy link

@zynabsmaan zynabsmaan commented Oct 14, 2015

A

@ShivamPsit

This comment has been minimized.

Copy link

@ShivamPsit ShivamPsit commented Nov 11, 2015

A

@userAbhishek

This comment has been minimized.

Copy link

@userAbhishek userAbhishek commented Nov 28, 2015

A

@balajimanohar

This comment has been minimized.

Copy link

@balajimanohar balajimanohar commented Dec 4, 2015

option a is correct form to build two + and - button in horizontal view

@kduvaz

This comment has been minimized.

Copy link

@kduvaz kduvaz commented Dec 17, 2015

Primeira opção

@obeshor

This comment has been minimized.

Copy link

@obeshor obeshor commented Jan 3, 2016

A

@crazypregammer

This comment has been minimized.

Copy link

@crazypregammer crazypregammer commented Jan 4, 2016

A

@amenophis1er

This comment has been minimized.

Copy link

@amenophis1er amenophis1er commented Jan 5, 2016

A is the correct anwser

@Ekene01

This comment has been minimized.

Copy link

@Ekene01 Ekene01 commented Jan 10, 2016

Option A -- Pay attention to the orientation of the Linear Layouts

@jjimenez3442

This comment has been minimized.

Copy link

@jjimenez3442 jjimenez3442 commented Jan 10, 2016

Option A is correct

@peterzimt

This comment has been minimized.

Copy link

@peterzimt peterzimt commented Jan 12, 2016

a

@postace

This comment has been minimized.

Copy link

@postace postace commented Jan 18, 2016

A is correct

@mihsan

This comment has been minimized.

Copy link

@mihsan mihsan commented Jan 21, 2016

option A

@zubairahmad2

This comment has been minimized.

Copy link

@zubairahmad2 zubairahmad2 commented Jan 22, 2016

Option A is correct answer

@sayansubhra

This comment has been minimized.

Copy link

@sayansubhra sayansubhra commented Jan 26, 2016

A

@ysfali

This comment has been minimized.

Copy link

@ysfali ysfali commented Feb 6, 2016

seems like option A

@MohamedAbdelrazek

This comment has been minimized.

Copy link

@MohamedAbdelrazek MohamedAbdelrazek commented Feb 6, 2016

i sure the correct answer is "A" but when i click submit it tells me thats wrong !

@sourajeetsahoo119

This comment has been minimized.

Copy link

@sourajeetsahoo119 sourajeetsahoo119 commented Feb 7, 2016

it is option A,
although option B has same hierarchy, but it's horizontally orientated and option C well doesn't apply our required design

@antoniomalves

This comment has been minimized.

Copy link

@antoniomalves antoniomalves commented Feb 10, 2016

A

@hamzah-aidid

This comment has been minimized.

Copy link

@hamzah-aidid hamzah-aidid commented Feb 13, 2016

A is correct

@watthell234

This comment has been minimized.

Copy link

@watthell234 watthell234 commented Feb 20, 2016

I like A. Looks better.

@HninOoLwin

This comment has been minimized.

Copy link

@HninOoLwin HninOoLwin commented Feb 21, 2016

Option A

@nekruz2

This comment has been minimized.

Copy link

@nekruz2 nekruz2 commented Feb 22, 2016

Option A is correct :)

@SergioMendesBorges

This comment has been minimized.

Copy link

@SergioMendesBorges SergioMendesBorges commented Mar 1, 2016

Option A

@glamadrid

This comment has been minimized.

Copy link

@glamadrid glamadrid commented Mar 1, 2016

Option A

@Strider911

This comment has been minimized.

Copy link

@Strider911 Strider911 commented Mar 4, 2016

option A is correct. But button "Order" should have textAllCaps

@eapmartins

This comment has been minimized.

Copy link

@eapmartins eapmartins commented Mar 5, 2016

Hi,

In that quiz I'm choosing the Option A but was displayed that the message that is not correct. But also for me is the right solution.

I choose others option and receive the same message:

Try Again!
Use the examples in the quiz video to get you started and try guessing if you're not sure. Then watch the solution video for a full walk through.

Is there any problem for this quiz?

Thanks,
Edson

@Deangelogn

This comment has been minimized.

Copy link

@Deangelogn Deangelogn commented Mar 12, 2016

Option A

@Sarcares

This comment has been minimized.

Copy link

@Sarcares Sarcares commented Mar 14, 2016

@eapmartins in this lesson is only request to draw the different graphs. You do not have to select the right chiose.
Check all the option and you will be able to continue.

@davidkadiata

This comment has been minimized.

Copy link

@davidkadiata davidkadiata commented Mar 25, 2016

A is a good option

@terancetucker

This comment has been minimized.

Copy link

@terancetucker terancetucker commented Mar 30, 2016

A for sure.

@mayanksolan

This comment has been minimized.

Copy link

@mayanksolan mayanksolan commented Apr 1, 2016

option A

@allessi

This comment has been minimized.

Copy link

@allessi allessi commented Apr 3, 2016

Option A

@gopinathmb

This comment has been minimized.

Copy link

@gopinathmb gopinathmb commented Apr 9, 2016

Option A

@Daz46

This comment has been minimized.

Copy link

@Daz46 Daz46 commented Apr 13, 2016

Answer = Option A

@keldolabela

This comment has been minimized.

Copy link

@keldolabela keldolabela commented Apr 13, 2016

the answer is : A

@lorizone0906

This comment has been minimized.

Copy link

@lorizone0906 lorizone0906 commented Apr 16, 2016

A

@sebagalan

This comment has been minimized.

Copy link

@sebagalan sebagalan commented Apr 17, 2016

A

@sijabat

This comment has been minimized.

Copy link

@sijabat sijabat commented Apr 22, 2016

A and C almost same , just different on TextView (on option c) in the second LinearLayout, if you make it out from the problem solved

@angel-tren

This comment has been minimized.

Copy link

@angel-tren angel-tren commented Apr 24, 2016

Respuesta es la A... Lo coloco en mi respuesta y dice que lo intente de nuevo cuando ya lo apliqué en mi Android Studio y estoy seguro 100% de mi respuesta. Lo hice sin haberlo copiado

@NandaHayatun

This comment has been minimized.

Copy link

@NandaHayatun NandaHayatun commented Apr 27, 2016

A is the right answer

@abhiverma23

This comment has been minimized.

Copy link

@abhiverma23 abhiverma23 commented May 7, 2016

Hey, I got the correct Answer..!
As usual I too tried to submit option A, for me it's wrong, but I tried some different options, then I checked All A,B,C option then it says

Good work. Compare your drawing with mine in the solution video.

@vwainne

This comment has been minimized.

Copy link

@vwainne vwainne commented Jun 4, 2016

Based on the View Hierarchy diagrams, versus the goal, C would not work off the bat. B and A were close, however, B had a horizontal orientation in the root view, which would not allow us to get to the design goal. Therefore, by process of elimination, A is the answer.

@jameeldigital

This comment has been minimized.

Copy link

@jameeldigital jameeldigital commented Jun 27, 2016

all correct

@Kvaibhav01

This comment has been minimized.

Copy link

@Kvaibhav01 Kvaibhav01 commented Jun 30, 2016

First of all the question of the video says to draw the hierarchy diagrams and not to choose between options.

You need to mark an option (between Options A, B and C) in the video that comes later.

Pro tip: Check boxes are meant to select multiple options while Option circles for a single answer!

Kvaibhav01.

@PatrickPRAR

This comment has been minimized.

Copy link

@PatrickPRAR PatrickPRAR commented Jul 1, 2016

Option A.

@cchamusi

This comment has been minimized.

Copy link

@cchamusi cchamusi commented Jul 3, 2016

option A is the correct layout

@asadriz

This comment has been minimized.

Copy link

@asadriz asadriz commented Jul 6, 2016

A

@santu369

This comment has been minimized.

Copy link

@santu369 santu369 commented Jul 7, 2016

option A is correct................

@angel-tren

This comment has been minimized.

Copy link

@angel-tren angel-tren commented Jul 8, 2016

La correcta es la A

@clayzeballos

This comment has been minimized.

Copy link

@clayzeballos clayzeballos commented Jul 9, 2016

Realmente a opção correta aqui é usar o código da opção A

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Jul 11, 2016

Option A

@ThisMiss

This comment has been minimized.

Copy link

@ThisMiss ThisMiss commented Jul 11, 2016

I chose A too but apparently the quiz only accepts all choices together as the correct answer @_@

@mnarasimhan02

This comment has been minimized.

Copy link

@mnarasimhan02 mnarasimhan02 commented Jul 16, 2016

Option A

@ucme316

This comment has been minimized.

Copy link

@ucme316 ucme316 commented Jul 17, 2016

Thanks for ruining this for me -_-

@mybengui

This comment has been minimized.

Copy link

@mybengui mybengui commented Jul 18, 2016

option A
But its is missing: android:textAllCaps="true" to capitalize text "order" as appears in button.

@musti2304

This comment has been minimized.

Copy link

@musti2304 musti2304 commented Jul 20, 2016

C

@Maninder-Sran

This comment has been minimized.

Copy link

@Maninder-Sran Maninder-Sran commented Jul 22, 2016

Option A

@hassanAzeet

This comment has been minimized.

Copy link

@hassanAzeet hassanAzeet commented Jul 24, 2016

error

@Aderight

This comment has been minimized.

Copy link

@Aderight Aderight commented Jul 29, 2016

All of them are right in a certain sense.

@wasatchwired

This comment has been minimized.

Copy link

@wasatchwired wasatchwired commented Jul 30, 2016

Option A

@jaguarman69

This comment has been minimized.

Copy link

@jaguarman69 jaguarman69 commented Aug 1, 2016

Option A

@BrandonHe

This comment has been minimized.

Copy link

@BrandonHe BrandonHe commented Aug 1, 2016

Option A

@iamchandansharma

This comment has been minimized.

Copy link

@iamchandansharma iamchandansharma commented Aug 4, 2016

Option A is Correct answer

@hamzaahmedkhan

This comment has been minimized.

Copy link

@hamzaahmedkhan hamzaahmedkhan commented Aug 8, 2016

Option A is correct, these are very easy.
Similar to loops in C language

@hassanshahzadaheer

This comment has been minimized.

Copy link

@hassanshahzadaheer hassanshahzadaheer commented Aug 16, 2016

A

@devted

This comment has been minimized.

Copy link

@devted devted commented Aug 16, 2016

A

@asamirel

This comment has been minimized.

Copy link

@asamirel asamirel commented Aug 16, 2016

A

@AyaSalamaAbdElAziz

This comment has been minimized.

Copy link

@AyaSalamaAbdElAziz AyaSalamaAbdElAziz commented Aug 18, 2016

A 💯

@iuliar

This comment has been minimized.

Copy link

@iuliar iuliar commented Aug 23, 2016

A

@badgerbay

This comment has been minimized.

Copy link

@badgerbay badgerbay commented Aug 24, 2016

A

@arjava

This comment has been minimized.

Copy link

@arjava arjava commented Aug 27, 2016

yes ,her answer A

@aivydebnath

This comment has been minimized.

Copy link

@aivydebnath aivydebnath commented Aug 27, 2016

Option A

@saumya01

This comment has been minimized.

Copy link

@saumya01 saumya01 commented Sep 1, 2016

A :)

@WinsCreations

This comment has been minimized.

Copy link

@WinsCreations WinsCreations commented Sep 4, 2016

A

@spirosbax

This comment has been minimized.

Copy link

@spirosbax spirosbax commented Sep 12, 2016

well to be accurate , none ! All of them say Order in the order button but it should say ORDER , but aside from that it's A

@R3ddyJ

This comment has been minimized.

Copy link

@R3ddyJ R3ddyJ commented Sep 12, 2016

Optiona A is correct

@yDeepak1889

This comment has been minimized.

Copy link

@yDeepak1889 yDeepak1889 commented Sep 14, 2016

Option A is correct ;

@mayaraelaziz

This comment has been minimized.

Copy link

@mayaraelaziz mayaraelaziz commented Sep 19, 2016

Option A for SURE

@mohammed3296

This comment has been minimized.

Copy link

@mohammed3296 mohammed3296 commented Sep 19, 2016

A is the right answer !

@nicolasfig

This comment has been minimized.

Copy link

@nicolasfig nicolasfig commented Oct 1, 2016

Option A but I wasn't listening on how to complete the quiz :/

@flosommerfeld

This comment has been minimized.

Copy link

@flosommerfeld flosommerfeld commented Oct 2, 2016

Guys, these checkboxes are just like a to-do-list.. if youve drawn the first view hierarchy diagram you check A and so on.. (which means you have to check all the boxes if youre done)
Ofc A is the only code which will exactly look like the given design in the question!

@maibinefugi

This comment has been minimized.

Copy link

@maibinefugi maibinefugi commented Oct 23, 2016

My answer is "A".

@shubh120

This comment has been minimized.

Copy link

@shubh120 shubh120 commented Nov 12, 2016

my answer is also A option

@kingfawzy

This comment has been minimized.

Copy link

@kingfawzy kingfawzy commented Nov 16, 2016

A is the correct answer

@jvitorcarvalho

This comment has been minimized.

Copy link

@jvitorcarvalho jvitorcarvalho commented Nov 24, 2016

A is the correct

@dodisutarya

This comment has been minimized.

Copy link

@dodisutarya dodisutarya commented Nov 26, 2016

A si the correct

@grvsachdeva

This comment has been minimized.

Copy link

@grvsachdeva grvsachdeva commented Nov 26, 2016

A is correct one

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Dec 1, 2016

A é a resposta correta.

@ZerocoolVishal

This comment has been minimized.

Copy link

@ZerocoolVishal ZerocoolVishal commented Dec 7, 2016

Option A

@MohamedHedhili

This comment has been minimized.

Copy link

@MohamedHedhili MohamedHedhili commented Dec 9, 2016

Option A

@koolwafer

This comment has been minimized.

Copy link

@koolwafer koolwafer commented Dec 10, 2016

please don't comment answer again and again, let others figure it out on their own, you are not going to get even brownie points for typing your answer

@LekanAkinremi

This comment has been minimized.

Copy link

@LekanAkinremi LekanAkinremi commented Dec 12, 2016

A

@victorgvieira

This comment has been minimized.

Copy link

@victorgvieira victorgvieira commented Dec 21, 2016

A

@jim-neutron

This comment has been minimized.

Copy link

@jim-neutron jim-neutron commented Dec 21, 2016

A

@AmitKKhanchandani

This comment has been minimized.

Copy link

@AmitKKhanchandani AmitKKhanchandani commented Dec 22, 2016

Option A is Correct

Option B is InCorrect (Horizontal LinearLayout)

Option C is InCorrect ( Quantity is part of Horizontal LinearLayout)

@pedroberbel

This comment has been minimized.

Copy link

@pedroberbel pedroberbel commented Dec 23, 2016

A

@Mahmoud-fci

This comment has been minimized.

Copy link

@Mahmoud-fci Mahmoud-fci commented Dec 23, 2016

A is the correct answer

@DHubschman

This comment has been minimized.

Copy link

@DHubschman DHubschman commented Dec 28, 2016

A

@Kaushal2612

This comment has been minimized.

Copy link

@Kaushal2612 Kaushal2612 commented Dec 28, 2016

A is a correct answer

@rajneesh11

This comment has been minimized.

Copy link

@rajneesh11 rajneesh11 commented Dec 30, 2016

A

@VishalKatgaye

This comment has been minimized.

Copy link

@VishalKatgaye VishalKatgaye commented Jan 6, 2017

Option A is correct Layout for our operation.

@aviralsharma021

This comment has been minimized.

Copy link

@aviralsharma021 aviralsharma021 commented Jan 6, 2017

option A

@michelthomas

This comment has been minimized.

Copy link

@michelthomas michelthomas commented Jan 10, 2017

A

@netmorgan

This comment has been minimized.

Copy link

@netmorgan netmorgan commented Jan 11, 2017

"A" is the right one
a
b
c

@erikflima

This comment has been minimized.

Copy link

@erikflima erikflima commented Jan 14, 2017

A

@nacikaly17

This comment has been minimized.

Copy link

@nacikaly17 nacikaly17 commented Jan 18, 2017

Correct answer is option "A"

hierarchydiagram1

@danserb

This comment has been minimized.

Copy link

@danserb danserb commented Jan 19, 2017

The correct answer is A, because the 1st Linear Layout (the parent) is a VERTICAL Layout. In the B version, the 1st Linear Layout is set to be HORIZONTAL, so that's not the case.

@uriberma

This comment has been minimized.

Copy link

@uriberma uriberma commented Jan 19, 2017

A

@CarlosCorderoSaavedra

This comment has been minimized.

Copy link

@CarlosCorderoSaavedra CarlosCorderoSaavedra commented Jan 20, 2017

A!!! :)

@AHMADanis

This comment has been minimized.

Copy link

@AHMADanis AHMADanis commented Jan 20, 2017

As i consider option A is correct option

@chuksmbaka

This comment has been minimized.

Copy link

@chuksmbaka chuksmbaka commented Jan 22, 2017

A is correct

@Ksorn

This comment has been minimized.

Copy link

@Ksorn Ksorn commented Jan 23, 2017

A

@nniksa91

This comment has been minimized.

Copy link

@nniksa91 nniksa91 commented Jan 23, 2017

A is correct

@adam-sanchez

This comment has been minimized.

Copy link

@adam-sanchez adam-sanchez commented Jan 24, 2017

A is the correct option here

@liviu-v

This comment has been minimized.

Copy link

@liviu-v liviu-v commented Jan 25, 2017

The correct answer I guess is option A

@madmat27

This comment has been minimized.

Copy link

@madmat27 madmat27 commented Jan 25, 2017

A is the only one that matches exercise's layout. Vertical Linear Layout with "-, 2, +" elements in a Horizontal Linear Layout.
B is wrong, because we have the exact opposite: Horizontal Linear Layout with "-, 2, +" elements in a Vertical Linear Layout.
C is also wrong, because in the horizontal linear layout, the "quantity" textview is also included (which, we don't want to).

@NicReg

This comment has been minimized.

Copy link

@NicReg NicReg commented Jan 26, 2017

Option A is the right one. The others have their linear layout orientation wrong.

@sumit1979

This comment has been minimized.

Copy link

@sumit1979 sumit1979 commented Jan 28, 2017

Option A is the right one.

@toreki

This comment has been minimized.

Copy link

@toreki toreki commented Jan 29, 2017

view hierarchy diagrams

A

@ybAlfie

This comment has been minimized.

Copy link

@ybAlfie ybAlfie commented Jan 31, 2017

i tried

when you can't find a pen and paper so you try and use paint.

@Dikshant18

This comment has been minimized.

Copy link

@Dikshant18 Dikshant18 commented Feb 1, 2017

A is correct due to vertical orientation

@vasileandrei

This comment has been minimized.

Copy link

@vasileandrei vasileandrei commented Feb 2, 2017

Option A

@kwiniarski97

This comment has been minimized.

Copy link

@kwiniarski97 kwiniarski97 commented Feb 5, 2017

opt a is only correct

@Fedor98

This comment has been minimized.

Copy link

@Fedor98 Fedor98 commented Feb 8, 2017

Option A is correct.

@Tolyanskiy

This comment has been minimized.

Copy link

@Tolyanskiy Tolyanskiy commented Feb 14, 2017

A

@DaveNOTDavid

This comment has been minimized.

Copy link

@DaveNOTDavid DaveNOTDavid commented Feb 14, 2017

A

@teezee02

This comment has been minimized.

Copy link

@teezee02 teezee02 commented Feb 15, 2017

A

@giovannidiluca

This comment has been minimized.

Copy link

@giovannidiluca giovannidiluca commented Feb 15, 2017

A

@xDovex

This comment has been minimized.

Copy link

@xDovex xDovex commented Feb 16, 2017

The answer is A, however every time I click A it shows as incorrect.

@thuraaung1995

This comment has been minimized.

Copy link

@thuraaung1995 thuraaung1995 commented Feb 17, 2017

A

@charmming

This comment has been minimized.

Copy link

@charmming charmming commented Feb 18, 2017

A

@Mostafayehya

This comment has been minimized.

Copy link

@Mostafayehya Mostafayehya commented Feb 20, 2017

Option A would be the right solution.

@koudy3316

This comment has been minimized.

Copy link

@koudy3316 koudy3316 commented Feb 20, 2017

A

@dc1177

This comment has been minimized.

Copy link

@dc1177 dc1177 commented Feb 21, 2017

A

@dburgosp

This comment has been minimized.

Copy link

@dburgosp dburgosp commented Feb 23, 2017

I guess the correct answer is "A", but when I submit this answer in the Quiz of Lesson 2B I get a "Try again" message :(

@AuraLoredana

This comment has been minimized.

Copy link

@AuraLoredana AuraLoredana commented Feb 23, 2017

A

@sabinaioana25

This comment has been minimized.

Copy link

@sabinaioana25 sabinaioana25 commented Feb 25, 2017

image

This is the correct version (option A); option B would display the views horizontally and option C would display the views as in the previews app, the one we want to modify. 😄

@PascalR2014

This comment has been minimized.

Copy link

@PascalR2014 PascalR2014 commented Feb 27, 2017

I agree for option A !

@yiantzi

This comment has been minimized.

Copy link

@yiantzi yiantzi commented Feb 28, 2017

Answer A is the correct

@madzik151

This comment has been minimized.

Copy link

@madzik151 madzik151 commented Mar 1, 2017

Of course that A

@jcunanan05

This comment has been minimized.

Copy link

@jcunanan05 jcunanan05 commented Mar 3, 2017

in the course, you must check all checkboxes A, B and C first in order to proceed to the lesson. :)))

@Aldo-f

This comment has been minimized.

Copy link

@Aldo-f Aldo-f commented Mar 7, 2017

A

lin (vertical)

  • text
  • lin (horizontal)
    -- button
    -- text
    -- button
  • text
  • text
  • button

B

lin (horizontal)

  • text
  • lin (vertical)
    -- button
    -- text
    -- button
  • text
  • text
  • button

C

lin (vertical)

  • lin (horizontal)
    -- text
    -- button
    -- text
    -- button
  • text
  • text
  • button
@Aedelliks

This comment has been minimized.

Copy link

@Aedelliks Aedelliks commented Mar 9, 2017

A

@samkay123

This comment has been minimized.

Copy link

@samkay123 samkay123 commented Mar 9, 2017

A

@7ee1aa

This comment has been minimized.

Copy link

@7ee1aa 7ee1aa commented Mar 12, 2017

A-man!

@mbianka89

This comment has been minimized.

Copy link

@mbianka89 mbianka89 commented Mar 17, 2017

A

@vassililm

This comment has been minimized.

Copy link

@vassililm vassililm commented Mar 22, 2017

first one is the right one

@nightwatch92

This comment has been minimized.

Copy link

@nightwatch92 nightwatch92 commented Mar 22, 2017

A

@neliamx4

This comment has been minimized.

Copy link

@neliamx4 neliamx4 commented Mar 24, 2017

A is the right one :)

@coldyca

This comment has been minimized.

Copy link

@coldyca coldyca commented Mar 25, 2017

My answer is A but not just because everybody said that, but because in option A the android:orientation="vertical" and option B has the orientation horizontal

@vmasullo

This comment has been minimized.

Copy link

@vmasullo vmasullo commented Mar 25, 2017

Option A. Best regards Vincenzo Masullo.

@Mojcaaap

This comment has been minimized.

Copy link

@Mojcaaap Mojcaaap commented Mar 25, 2017

Why everybody is writing their answer here, so nobody can't figure it out on their own anymore?????? OK, I understand that the point its too to understand why some option is correct or why not, but it feels like watching a movie, after somebody already told you how it ends -.-'' No excitement anymore :(

@NPseba

This comment has been minimized.

Copy link

@NPseba NPseba commented Mar 28, 2017

Option A
option A
Option B
option B
Option C
option C

@itziarzuazoalegria

This comment has been minimized.

Copy link

@itziarzuazoalegria itziarzuazoalegria commented Mar 30, 2017

Option A¡¡¡¡

@ZdravkaEN

This comment has been minimized.

Copy link

@ZdravkaEN ZdravkaEN commented Apr 4, 2017

Option A

@HansOloPL

This comment has been minimized.

Copy link

@HansOloPL HansOloPL commented Apr 4, 2017

AAA.

@tudor-paraschivescu

This comment has been minimized.

Copy link

@tudor-paraschivescu tudor-paraschivescu commented Apr 4, 2017

A is the one

@albertzubkowicz

This comment has been minimized.

Copy link

@albertzubkowicz albertzubkowicz commented Apr 5, 2017

Option A is the right one. B puts everything horizontal at first, and then desired Buttons and TextView are placed vertically which is opposite of option A. Option C could be correct but it places Quantity next to buttons and the rest, and we don't want that too.

@Florin415

This comment has been minimized.

Copy link

@Florin415 Florin415 commented Apr 8, 2017

A

@zerosandonesbj7

This comment has been minimized.

Copy link

@zerosandonesbj7 zerosandonesbj7 commented Apr 10, 2017

Option A is the correct answer.
Option B is similar to A but it arranges the views in the nested Linear layout vertically not horizontally as desired.

@AdriaticHeart

This comment has been minimized.

Copy link

@AdriaticHeart AdriaticHeart commented Apr 11, 2017

I was forced to comment after A was not the right answer, but it is! :P¨

@Sabvg

This comment has been minimized.

Copy link

@Sabvg Sabvg commented Apr 11, 2017

The Option A is the right because the hierarchy diagram is the correct (like the option B, but this one has android:orientation=“vertical" and this is wrong ).

@maudlyn

This comment has been minimized.

Copy link

@maudlyn maudlyn commented Apr 11, 2017

Option A

@K1ngandrius

This comment has been minimized.

Copy link

@K1ngandrius K1ngandrius commented Apr 19, 2017

Option A Is The Right Answer

@ramywageh

This comment has been minimized.

Copy link

@ramywageh ramywageh commented Apr 21, 2017

Option A

@Marcodredd

This comment has been minimized.

Copy link