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 commented Jun 29, 2015

1

@aleengo

This comment has been minimized.

Copy link

aleengo commented Jun 29, 2015

Option A

@urmohan

This comment has been minimized.

Copy link

urmohan commented Jun 30, 2015

Answer: A

@gamesnepal

This comment has been minimized.

Copy link

gamesnepal commented Jul 3, 2015

Smartasses.

@spamshot

This comment has been minimized.

Copy link

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 commented Jul 17, 2015

Option A is correct

@ghost

This comment has been minimized.

Copy link

ghost commented Jul 25, 2015

A

@massoudasadi

This comment has been minimized.

Copy link

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 commented Aug 26, 2015

A

@walaa-assy

This comment has been minimized.

Copy link

walaa-assy commented Aug 31, 2015

A

@djvsal

This comment has been minimized.

Copy link

djvsal commented Sep 1, 2015

A

@cybersokari

This comment has been minimized.

Copy link

cybersokari commented Sep 11, 2015

A

@azmina721

This comment has been minimized.

Copy link

azmina721 commented Sep 15, 2015

A

@iswetha522

This comment has been minimized.

Copy link

iswetha522 commented Sep 16, 2015

A

@caribesoft

This comment has been minimized.

Copy link

caribesoft commented Sep 28, 2015

Option "A" is correct

@devmike01

This comment has been minimized.

Copy link

devmike01 commented Sep 30, 2015

A is the correct answer

@zynabsmaan

This comment has been minimized.

Copy link

zynabsmaan commented Oct 14, 2015

A

@ShivamPsit

This comment has been minimized.

Copy link

ShivamPsit commented Nov 11, 2015

A

@userAbhishek

This comment has been minimized.

Copy link

userAbhishek commented Nov 28, 2015

A

@balajimanohar

This comment has been minimized.

Copy link

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 commented Dec 17, 2015

Primeira opção

@obeshor

This comment has been minimized.

Copy link

obeshor commented Jan 3, 2016

A

@crazypregammer

This comment has been minimized.

Copy link

crazypregammer commented Jan 4, 2016

A

@amenophis1er

This comment has been minimized.

Copy link

amenophis1er commented Jan 5, 2016

A is the correct anwser

@Ekene01

This comment has been minimized.

Copy link

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 commented Jan 10, 2016

Option A is correct

@peterzimt

This comment has been minimized.

Copy link

peterzimt commented Jan 12, 2016

a

@postace

This comment has been minimized.

Copy link

postace commented Jan 18, 2016

A is correct

@mihsan

This comment has been minimized.

Copy link

mihsan commented Jan 21, 2016

option A

@zzubiplain

This comment has been minimized.

Copy link

zzubiplain commented Jan 22, 2016

Option A is correct answer

@sayansubhra

This comment has been minimized.

Copy link

sayansubhra commented Jan 26, 2016

A

@ysfali

This comment has been minimized.

Copy link

ysfali commented Feb 6, 2016

seems like option A

@MohamedAbdelrazek

This comment has been minimized.

Copy link

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 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 commented Feb 10, 2016

A

@hamzah-aidid

This comment has been minimized.

Copy link

hamzah-aidid commented Feb 13, 2016

A is correct

@watthell234

This comment has been minimized.

Copy link

watthell234 commented Feb 20, 2016

I like A. Looks better.

@HninOoLwin

This comment has been minimized.

Copy link

HninOoLwin commented Feb 21, 2016

Option A

@nekruz2

This comment has been minimized.

Copy link

nekruz2 commented Feb 22, 2016

Option A is correct :)

@SergioMendesBorges

This comment has been minimized.

Copy link

SergioMendesBorges commented Mar 1, 2016

Option A

@glamadrid

This comment has been minimized.

Copy link

glamadrid commented Mar 1, 2016

Option A

@Strider911

This comment has been minimized.

Copy link

Strider911 commented Mar 4, 2016

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

@eapmartins

This comment has been minimized.

Copy link

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 commented Mar 12, 2016

Option A

@Sarcares

This comment has been minimized.

Copy link

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 commented Mar 25, 2016

A is a good option

@terancetucker

This comment has been minimized.

Copy link

terancetucker commented Mar 30, 2016

A for sure.

@mayanksolan

This comment has been minimized.

Copy link

mayanksolan commented Apr 1, 2016

option A

@allessi

This comment has been minimized.

Copy link

allessi commented Apr 3, 2016

Option A

@gopinath-mb

This comment has been minimized.

Copy link

gopinath-mb commented Apr 9, 2016

Option A

@Daz46

This comment has been minimized.

Copy link

Daz46 commented Apr 13, 2016

Answer = Option A

@keldolabela

This comment has been minimized.

Copy link

keldolabela commented Apr 13, 2016

the answer is : A

@lorizone0906

This comment has been minimized.

Copy link

lorizone0906 commented Apr 16, 2016

A

@sebagalan

This comment has been minimized.

Copy link

sebagalan commented Apr 17, 2016

A

@sijabat

This comment has been minimized.

Copy link

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 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 commented Apr 27, 2016

A is the right answer

@abhiverma23

This comment has been minimized.

Copy link

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 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 commented Jun 27, 2016

all correct

@Kvaibhav01

This comment has been minimized.

Copy link

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 commented Jul 1, 2016

Option A.

@cchamusi

This comment has been minimized.

Copy link

cchamusi commented Jul 3, 2016

option A is the correct layout

@asadriz

This comment has been minimized.

Copy link

asadriz commented Jul 6, 2016

A

@santu369

This comment has been minimized.

Copy link

santu369 commented Jul 7, 2016

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

@angel-tren

This comment has been minimized.

Copy link

angel-tren commented Jul 8, 2016

La correcta es la A

@clayzeballos

This comment has been minimized.

Copy link

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 commented Jul 11, 2016

Option A

@ThisMiss

This comment has been minimized.

Copy link

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 commented Jul 16, 2016

Option A

@ucme316

This comment has been minimized.

Copy link

ucme316 commented Jul 17, 2016

Thanks for ruining this for me -_-

@mybengui

This comment has been minimized.

Copy link

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 commented Jul 20, 2016

C

@Maninder-Sran

This comment has been minimized.

Copy link

Maninder-Sran commented Jul 22, 2016

Option A

@hassanAzeet

This comment has been minimized.

Copy link

hassanAzeet commented Jul 24, 2016

error

@Aderight

This comment has been minimized.

Copy link

Aderight commented Jul 29, 2016

All of them are right in a certain sense.

@wasatchwired

This comment has been minimized.

Copy link

wasatchwired commented Jul 30, 2016

Option A

@jaguarman69

This comment has been minimized.

Copy link

jaguarman69 commented Aug 1, 2016

Option A

@BrandonHe

This comment has been minimized.

Copy link

BrandonHe commented Aug 1, 2016

Option A

@iamchandansharma

This comment has been minimized.

Copy link

iamchandansharma commented Aug 4, 2016

Option A is Correct answer

@hamzaahmedkhan

This comment has been minimized.

Copy link

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 commented Aug 16, 2016

A

@devted

This comment has been minimized.

Copy link

devted commented Aug 16, 2016

A

@elmaystro

This comment has been minimized.

Copy link

elmaystro commented Aug 16, 2016

A

@AyaSalamaAbdElAziz

This comment has been minimized.

Copy link

AyaSalamaAbdElAziz commented Aug 18, 2016

A 💯

@iuliar

This comment has been minimized.

Copy link

iuliar commented Aug 23, 2016

A

@badgerbay

This comment has been minimized.

Copy link

badgerbay commented Aug 24, 2016

A

@arjava

This comment has been minimized.

Copy link

arjava commented Aug 27, 2016

yes ,her answer A

@aivydebnath

This comment has been minimized.

Copy link

aivydebnath commented Aug 27, 2016

Option A

@saumya01

This comment has been minimized.

Copy link

saumya01 commented Sep 1, 2016

A :)

@WinsCreations

This comment has been minimized.

Copy link

WinsCreations commented Sep 4, 2016

A

@spirosbax

This comment has been minimized.

Copy link

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 commented Sep 12, 2016

Optiona A is correct

@yDeepak1889

This comment has been minimized.

Copy link

yDeepak1889 commented Sep 14, 2016

Option A is correct ;

@mahmayar

This comment has been minimized.

Copy link

mahmayar commented Sep 19, 2016

Option A for SURE

@mohammed3296

This comment has been minimized.

Copy link

mohammed3296 commented Sep 19, 2016

A is the right answer !

@nicolasfig

This comment has been minimized.

Copy link

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 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 commented Oct 23, 2016

My answer is "A".

@shubh120

This comment has been minimized.

Copy link

shubh120 commented Nov 12, 2016

my answer is also A option

@kingfawzy

This comment has been minimized.

Copy link

kingfawzy commented Nov 16, 2016

A is the correct answer

@jvitorcarvalho

This comment has been minimized.

Copy link

jvitorcarvalho commented Nov 24, 2016

A is the correct

@ikhwands

This comment has been minimized.

Copy link

ikhwands commented Nov 26, 2016

A si the correct

@gauravano

This comment has been minimized.

Copy link

gauravano commented Nov 26, 2016

A is correct one

@ghost

This comment has been minimized.

Copy link

ghost commented Dec 1, 2016

A é a resposta correta.

@ZerocoolVishal

This comment has been minimized.

Copy link

ZerocoolVishal commented Dec 7, 2016

Option A

@MohamedHedhili

This comment has been minimized.

Copy link

MohamedHedhili commented Dec 9, 2016

Option A

@abjoker

This comment has been minimized.

Copy link

abjoker 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 commented Dec 12, 2016

A

@victorgvieira

This comment has been minimized.

Copy link

victorgvieira commented Dec 21, 2016

A

@jim-neutron

This comment has been minimized.

Copy link

jim-neutron commented Dec 21, 2016

A

@AmitKKhanchandani

This comment has been minimized.

Copy link

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 commented Dec 23, 2016

A

@Mahmoud-fci

This comment has been minimized.

Copy link

Mahmoud-fci commented Dec 23, 2016

A is the correct answer

@DHubschman

This comment has been minimized.

Copy link

DHubschman commented Dec 28, 2016

A

@Kaushal2612

This comment has been minimized.

Copy link

Kaushal2612 commented Dec 28, 2016

A is a correct answer

@rajneesh11

This comment has been minimized.

Copy link

rajneesh11 commented Dec 30, 2016

A

@VishalKatgaye

This comment has been minimized.

Copy link

VishalKatgaye commented Jan 6, 2017

Option A is correct Layout for our operation.

@aviralsharma021

This comment has been minimized.

Copy link

aviralsharma021 commented Jan 6, 2017

option A

@michelthomas

This comment has been minimized.

Copy link

michelthomas commented Jan 10, 2017

A

@netmorgan

This comment has been minimized.

Copy link

netmorgan commented Jan 11, 2017

"A" is the right one
a
b
c

@erikflima

This comment has been minimized.

Copy link

erikflima commented Jan 14, 2017

A

@nacikaly17

This comment has been minimized.

Copy link

nacikaly17 commented Jan 18, 2017

Correct answer is option "A"

hierarchydiagram1

@danserb

This comment has been minimized.

Copy link

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 commented Jan 19, 2017

A

@CarlosCorderoSaavedra

This comment has been minimized.

Copy link

CarlosCorderoSaavedra commented Jan 20, 2017

A!!! :)

@AHMADanis

This comment has been minimized.

Copy link

AHMADanis commented Jan 20, 2017

As i consider option A is correct option

@chuksmbaka

This comment has been minimized.

Copy link

chuksmbaka commented Jan 22, 2017

A is correct

@Ksorn

This comment has been minimized.

Copy link

Ksorn commented Jan 23, 2017

A

@nniksa91

This comment has been minimized.

Copy link

nniksa91 commented Jan 23, 2017

A is correct

@adam-sanchez

This comment has been minimized.

Copy link

adam-sanchez commented Jan 24, 2017

A is the correct option here

@liviu-v

This comment has been minimized.

Copy link

liviu-v commented Jan 25, 2017

The correct answer I guess is option A

@madmat27

This comment has been minimized.

Copy link

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 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 commented Jan 28, 2017

Option A is the right one.

@toreki

This comment has been minimized.

Copy link

toreki commented Jan 29, 2017

view hierarchy diagrams

A

@ybAlfie

This comment has been minimized.

Copy link

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 commented Feb 1, 2017

A is correct due to vertical orientation

@vasileandrei

This comment has been minimized.

Copy link

vasileandrei commented Feb 2, 2017

Option A

@kwiniarski97

This comment has been minimized.

Copy link

kwiniarski97 commented Feb 5, 2017

opt a is only correct

@Fedor98

This comment has been minimized.

Copy link

Fedor98 commented Feb 8, 2017

Option A is correct.

@Tolyanskiy

This comment has been minimized.

Copy link

Tolyanskiy commented Feb 14, 2017

A

@DaveNOTDavid

This comment has been minimized.

Copy link

DaveNOTDavid commented Feb 14, 2017

A

@teezee02

This comment has been minimized.

Copy link

teezee02 commented Feb 15, 2017

A

@giovannidiluca

This comment has been minimized.

Copy link

giovannidiluca commented Feb 15, 2017

A

@xDovex

This comment has been minimized.

Copy link

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 commented Feb 17, 2017

A

@charmming

This comment has been minimized.

Copy link

charmming commented Feb 18, 2017

A

@Mostafayehya

This comment has been minimized.

Copy link

Mostafayehya commented Feb 20, 2017

Option A would be the right solution.

@koudy3316

This comment has been minimized.

Copy link

koudy3316 commented Feb 20, 2017

A

@dc1177

This comment has been minimized.

Copy link

dc1177 commented Feb 21, 2017

A

@dburgosp

This comment has been minimized.

Copy link

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 commented Feb 23, 2017

A

@sabinaioana25

This comment has been minimized.

Copy link

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 commented Feb 27, 2017

I agree for option A !

@yiantzi

This comment has been minimized.

Copy link

yiantzi commented Feb 28, 2017

Answer A is the correct

@madzik151

This comment has been minimized.

Copy link

madzik151 commented Mar 1, 2017

Of course that A

@jcunanan05

This comment has been minimized.

Copy link

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 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 commented Mar 9, 2017

A

@samkay123

This comment has been minimized.

Copy link

samkay123 commented Mar 9, 2017

A

@7ee1aa

This comment has been minimized.

Copy link

7ee1aa commented Mar 12, 2017

A-man!

@mbianka89

This comment has been minimized.

Copy link

mbianka89 commented Mar 17, 2017

A

@vassililm

This comment has been minimized.

Copy link

vassililm commented Mar 22, 2017

first one is the right one

@nightwatch92

This comment has been minimized.

Copy link

nightwatch92 commented Mar 22, 2017

A

@neliamx4

This comment has been minimized.

Copy link

neliamx4 commented Mar 24, 2017

A is the right one :)

@coldyca

This comment has been minimized.

Copy link

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 commented Mar 25, 2017

Option A. Best regards Vincenzo Masullo.

@Mojcaaap

This comment has been minimized.

Copy link

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 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 commented Mar 30, 2017

Option A¡¡¡¡

@ZdravkaEN

This comment has been minimized.

Copy link

ZdravkaEN commented Apr 4, 2017

Option A

@HansOloPL

This comment has been minimized.

Copy link

HansOloPL commented Apr 4, 2017

AAA.

@tudor-paraschivescu

This comment has been minimized.

Copy link

tudor-paraschivescu commented Apr 4, 2017

A is the one

@albertzubkowicz

This comment has been minimized.

Copy link

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 commented Apr 8, 2017

A

@zerosandonesbj7

This comment has been minimized.

Copy link

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 commented Apr 11, 2017

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

@rawson-team2-svg

This comment has been minimized.

Copy link

rawson-team2-svg 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 commented Apr 11, 2017

Option A

@K1ngandrius

This comment has been minimized.

Copy link

K1ngandrius commented Apr 19, 2017

Option A Is The Right Answer

@ramywageh

This comment has been minimized.

Copy link

ramywageh commented Apr 21, 2017

Option A

@Marcodredd

This comment has been minimized.

Copy link

Marcodredd commented Apr 24, 2017

A

@Joyce-O

This comment has been minimized.

Copy link

Joyce-O commented Apr 27, 2017

A is the correct option

@austinjerrytech

This comment has been minimized.

Copy link

austinjerrytech commented May 3, 2017

The correct option is A

@marusoft

This comment has been minimized.

Copy link

marusoft commented May 3, 2017

The correct option is A

@digiFitz

This comment has been minimized.

Copy link

digiFitz commented May 4, 2017

Option A is correct

@mhakeem53

This comment has been minimized.

Copy link

mhakeem53 commented May 7, 2017

A

@oluwaseunmusa

This comment has been minimized.

Copy link

oluwaseunmusa commented May 9, 2017

A

@tuandao2511

This comment has been minimized.

Copy link

tuandao2511 commented May 17, 2017

answer :A .

@thattechchic

This comment has been minimized.

Copy link

thattechchic commented May 17, 2017

A

@mykeverest

This comment has been minimized.

Copy link

mykeverest commented May 17, 2017

A is the right answer

@YounghwanYoon

This comment has been minimized.

Copy link

YounghwanYoon commented Jun 9, 2017

A

@Santoshnani

This comment has been minimized.

Copy link

Santoshnani commented Jun 12, 2017

option A

@Samuelpinheiro

This comment has been minimized.

Copy link

Samuelpinheiro commented Jun 14, 2017

A is correct!

@supark

This comment has been minimized.

Copy link

supark commented Jun 17, 2017

A

@ghost

This comment has been minimized.

Copy link

ghost commented Jun 22, 2017

Option A

@mnr410126

This comment has been minimized.

Copy link

mnr410126 commented Jun 22, 2017

Option A

@Iszybee

This comment has been minimized.

Copy link

Iszybee commented Jun 23, 2017

A

@siddharthoo7

This comment has been minimized.

Copy link

siddharthoo7 commented Jun 26, 2017

A is correct.

@salonikalra

This comment has been minimized.

Copy link

salonikalra commented Jun 28, 2017

A is the correct option.
view heirarchy
In B, the orientation of parent layout is horizozntal.
in C, there are only 4 child views of the root view. And one of the child text view is placed incorrectly in the child LinearLayout.

@aysesenses

This comment has been minimized.

Copy link

aysesenses commented Jun 29, 2017

A

@amelenp

This comment has been minimized.

Copy link

amelenp commented Jul 14, 2017

A

@sandidutt

This comment has been minimized.

Copy link

sandidutt commented Jul 19, 2017

option A

@karachid

This comment has been minimized.

Copy link

karachid commented Jul 21, 2017

A

@Isprastika

This comment has been minimized.

Copy link

Isprastika commented Aug 17, 2017

A

@Isprastika

This comment has been minimized.

Copy link

Isprastika commented Aug 17, 2017

A

@Mahmoudtarek59

This comment has been minimized.

Copy link

Mahmoudtarek59 commented Aug 17, 2017

A

@VladimirUkraine

This comment has been minimized.

Copy link

VladimirUkraine commented Aug 18, 2017

Variant-A