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

commented Jun 29, 2015

1

@aleengo

This comment has been minimized.

Copy link

commented Jun 29, 2015

Option A

@urmohan

This comment has been minimized.

Copy link

commented Jun 30, 2015

Answer: A

@gamesnepal

This comment has been minimized.

Copy link

commented Jul 3, 2015

Smartasses.

@spamshot

This comment has been minimized.

Copy link

commented Jul 8, 2015

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

@nutthawan

This comment has been minimized.

Copy link

commented Jul 17, 2015

Option A is correct

@ghost

This comment has been minimized.

Copy link

commented Jul 25, 2015

A

@massoudasadi

This comment has been minimized.

Copy link

commented Aug 1, 2015

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

@lordhasyim

This comment has been minimized.

Copy link

commented Aug 26, 2015

A

@walaa-assy

This comment has been minimized.

Copy link

commented Aug 31, 2015

A

@djvsal

This comment has been minimized.

Copy link

commented Sep 1, 2015

A

@cybersokari

This comment has been minimized.

Copy link

commented Sep 11, 2015

A

@azmina721

This comment has been minimized.

Copy link

commented Sep 15, 2015

A

@iswetha522

This comment has been minimized.

Copy link

commented Sep 16, 2015

A

@caribesoft

This comment has been minimized.

Copy link

commented Sep 28, 2015

Option "A" is correct

@devmike01

This comment has been minimized.

Copy link

commented Sep 30, 2015

A is the correct answer

@zynabsmaan

This comment has been minimized.

Copy link

commented Oct 14, 2015

A

@ShivamPsit

This comment has been minimized.

Copy link

commented Nov 11, 2015

A

@userAbhishek

This comment has been minimized.

Copy link

commented Nov 28, 2015

A

@balajimanohar

This comment has been minimized.

Copy link

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

commented Dec 17, 2015

Primeira opção

@obeshor

This comment has been minimized.

Copy link

commented Jan 3, 2016

A

@crazypregammer

This comment has been minimized.

Copy link

commented Jan 4, 2016

A

@amenophis1er

This comment has been minimized.

Copy link

commented Jan 5, 2016

A is the correct anwser

@Ekene01

This comment has been minimized.

Copy link

commented Jan 10, 2016

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

@jjimenez3442

This comment has been minimized.

Copy link

commented Jan 10, 2016

Option A is correct

@peterzimt

This comment has been minimized.

Copy link

commented Jan 12, 2016

a

@postace

This comment has been minimized.

Copy link

commented Jan 18, 2016

A is correct

@mihsan

This comment has been minimized.

Copy link

commented Jan 21, 2016

option A

@zzubiplain

This comment has been minimized.

Copy link

commented Jan 22, 2016

Option A is correct answer

@sayansubhra

This comment has been minimized.

Copy link

commented Jan 26, 2016

A

@ysfali

This comment has been minimized.

Copy link

commented Feb 6, 2016

seems like option A

@MohamedAbdelrazek

This comment has been minimized.

Copy link

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

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

commented Feb 10, 2016

A

@hamzah-aidid

This comment has been minimized.

Copy link

commented Feb 13, 2016

A is correct

@watthell234

This comment has been minimized.

Copy link

commented Feb 20, 2016

I like A. Looks better.

@HninOoLwin

This comment has been minimized.

Copy link

commented Feb 21, 2016

Option A

@nekruz2

This comment has been minimized.

Copy link

commented Feb 22, 2016

Option A is correct :)

@SergioMendesBorges

This comment has been minimized.

Copy link

commented Mar 1, 2016

Option A

@glamadrid

This comment has been minimized.

Copy link

commented Mar 1, 2016

Option A

@Strider911

This comment has been minimized.

Copy link

commented Mar 4, 2016

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

@eapmartins

This comment has been minimized.

Copy link

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

commented Mar 12, 2016

Option A

@Sarcares

This comment has been minimized.

Copy link

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

commented Mar 25, 2016

A is a good option

@terancetucker

This comment has been minimized.

Copy link

commented Mar 30, 2016

A for sure.

@mayanksolan

This comment has been minimized.

Copy link

commented Apr 1, 2016

option A

@allessi

This comment has been minimized.

Copy link

commented Apr 3, 2016

Option A

@gopinath-mb

This comment has been minimized.

Copy link

commented Apr 9, 2016

Option A

@Daz46

This comment has been minimized.

Copy link

commented Apr 13, 2016

Answer = Option A

@keldolabela

This comment has been minimized.

Copy link

commented Apr 13, 2016

the answer is : A

@lorizone0906

This comment has been minimized.

Copy link

commented Apr 16, 2016

A

@sebagalan

This comment has been minimized.

Copy link

commented Apr 17, 2016

A

@sijabat

This comment has been minimized.

Copy link

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

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

commented Apr 27, 2016

A is the right answer

@abhiverma23

This comment has been minimized.

Copy link

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

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

commented Jun 27, 2016

all correct

@Kvaibhav01

This comment has been minimized.

Copy link

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

commented Jul 1, 2016

Option A.

@cchamusi

This comment has been minimized.

Copy link

commented Jul 3, 2016

option A is the correct layout

@asadriz

This comment has been minimized.

Copy link

commented Jul 6, 2016

A

@santu369

This comment has been minimized.

Copy link

commented Jul 7, 2016

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

@angel-tren

This comment has been minimized.

Copy link

commented Jul 8, 2016

La correcta es la A

@clayzeballos

This comment has been minimized.

Copy link

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

commented Jul 11, 2016

Option A

@ThisMiss

This comment has been minimized.

Copy link

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

commented Jul 16, 2016

Option A

@ucme316

This comment has been minimized.

Copy link

commented Jul 17, 2016

Thanks for ruining this for me -_-

@mybengui

This comment has been minimized.

Copy link

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

commented Jul 20, 2016

C

@Maninder-Sran

This comment has been minimized.

Copy link

commented Jul 22, 2016

Option A

@hassanAzeet

This comment has been minimized.

Copy link

commented Jul 24, 2016

error

@Aderight

This comment has been minimized.

Copy link

commented Jul 29, 2016

All of them are right in a certain sense.

@wasatchwired

This comment has been minimized.

Copy link

commented Jul 30, 2016

Option A

@jaguarman69

This comment has been minimized.

Copy link

commented Aug 1, 2016

Option A

@BrandonHe

This comment has been minimized.

Copy link

commented Aug 1, 2016

Option A

@iamchandansharma

This comment has been minimized.

Copy link

commented Aug 4, 2016

Option A is Correct answer

@hamzaahmedkhan

This comment has been minimized.

Copy link

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

commented Aug 16, 2016

A

@devted

This comment has been minimized.

Copy link

commented Aug 16, 2016

A

@elmaystro

This comment has been minimized.

Copy link

commented Aug 16, 2016

A

@AyaSalamaAbdElAziz

This comment has been minimized.

Copy link

commented Aug 18, 2016

A 💯

@iuliar

This comment has been minimized.

Copy link

commented Aug 23, 2016

A

@badgerbay

This comment has been minimized.

Copy link

commented Aug 24, 2016

A

@arjava

This comment has been minimized.

Copy link

commented Aug 27, 2016

yes ,her answer A

@aivydebnath

This comment has been minimized.

Copy link

commented Aug 27, 2016

Option A

@saumya01

This comment has been minimized.

Copy link

commented Sep 1, 2016

A :)

@WinsCreations

This comment has been minimized.

Copy link

commented Sep 4, 2016

A

@spirosbax

This comment has been minimized.

Copy link

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

commented Sep 12, 2016

Optiona A is correct

@yDeepak1889

This comment has been minimized.

Copy link

commented Sep 14, 2016

Option A is correct ;

@mahmayar

This comment has been minimized.

Copy link

commented Sep 19, 2016

Option A for SURE

@mohammed3296

This comment has been minimized.

Copy link

commented Sep 19, 2016

A is the right answer !

@nicolasfig

This comment has been minimized.

Copy link

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

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

commented Oct 23, 2016

My answer is "A".

@shubh120

This comment has been minimized.

Copy link

commented Nov 12, 2016

my answer is also A option

@kingfawzy

This comment has been minimized.

Copy link

commented Nov 16, 2016

A is the correct answer

@jvitorcarvalho

This comment has been minimized.

Copy link

commented Nov 24, 2016

A is the correct

@ikhwands

This comment has been minimized.

Copy link

commented Nov 26, 2016

A si the correct

@gauravano

This comment has been minimized.

Copy link

commented Nov 26, 2016

A is correct one

@ghost

This comment has been minimized.

Copy link

commented Dec 1, 2016

A é a resposta correta.

@ZerocoolVishal

This comment has been minimized.

Copy link

commented Dec 7, 2016

Option A

@MohamedHedhili

This comment has been minimized.

Copy link

commented Dec 9, 2016

Option A

@abjoker

This comment has been minimized.

Copy link

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

commented Dec 12, 2016

A

@victorgvieira

This comment has been minimized.

Copy link

commented Dec 21, 2016

A

@jim-neutron

This comment has been minimized.

Copy link

commented Dec 21, 2016

A

@AmitKKhanchandani

This comment has been minimized.

Copy link

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

commented Dec 23, 2016

A

@Mahmoud-fci

This comment has been minimized.

Copy link

commented Dec 23, 2016

A is the correct answer

@DHubschman

This comment has been minimized.

Copy link

commented Dec 28, 2016

A

@Kaushal2612

This comment has been minimized.

Copy link

commented Dec 28, 2016

A is a correct answer

@rajneesh11

This comment has been minimized.

Copy link

commented Dec 30, 2016

A

@VishalKatgaye

This comment has been minimized.

Copy link

commented Jan 6, 2017

Option A is correct Layout for our operation.

@aviralsharma021

This comment has been minimized.

Copy link

commented Jan 6, 2017

option A

@michelthomas

This comment has been minimized.

Copy link

commented Jan 10, 2017

A

@netmorgan

This comment has been minimized.

Copy link

commented Jan 11, 2017

"A" is the right one
a
b
c

@erikflima

This comment has been minimized.

Copy link

commented Jan 14, 2017

A

@nacikaly17

This comment has been minimized.

Copy link

commented Jan 18, 2017

Correct answer is option "A"

hierarchydiagram1

@danserb

This comment has been minimized.

Copy link

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.

@maycolur7

This comment has been minimized.

Copy link

commented Jan 19, 2017

A

@CarlosCorderoSaavedra

This comment has been minimized.

Copy link

commented Jan 20, 2017

A!!! :)

@AHMADanis

This comment has been minimized.

Copy link

commented Jan 20, 2017

As i consider option A is correct option

@chuksmbaka

This comment has been minimized.

Copy link

commented Jan 22, 2017

A is correct

@Ksorn

This comment has been minimized.

Copy link

commented Jan 23, 2017

A

@nniksa91

This comment has been minimized.

Copy link

commented Jan 23, 2017

A is correct

@adam-sanchez

This comment has been minimized.

Copy link

commented Jan 24, 2017

A is the correct option here

@liviu-v

This comment has been minimized.

Copy link

commented Jan 25, 2017

The correct answer I guess is option A

@madmat27

This comment has been minimized.

Copy link

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

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

commented Jan 28, 2017

Option A is the right one.

@toreki

This comment has been minimized.

Copy link

commented Jan 29, 2017

view hierarchy diagrams

A

@ybAlfie

This comment has been minimized.

Copy link

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

commented Feb 1, 2017

A is correct due to vertical orientation

@vasileandrei

This comment has been minimized.

Copy link

commented Feb 2, 2017

Option A

@kwiniarski97

This comment has been minimized.

Copy link

commented Feb 5, 2017

opt a is only correct

@Fedor98

This comment has been minimized.

Copy link

commented Feb 8, 2017

Option A is correct.

@Tolyanskiy

This comment has been minimized.

Copy link

commented Feb 14, 2017

A

@DaveNOTDavid

This comment has been minimized.

Copy link

commented Feb 14, 2017

A

@teezee02

This comment has been minimized.

Copy link

commented Feb 15, 2017

A

@giovannidiluca

This comment has been minimized.

Copy link

commented Feb 15, 2017

A

@xDovex

This comment has been minimized.

Copy link

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

commented Feb 17, 2017

A

@charmming

This comment has been minimized.

Copy link

commented Feb 18, 2017

A

@Mostafayehya

This comment has been minimized.

Copy link

commented Feb 20, 2017

Option A would be the right solution.

@koudy3316

This comment has been minimized.

Copy link

commented Feb 20, 2017

A

@dc1177

This comment has been minimized.

Copy link

commented Feb 21, 2017

A

@dburgosp

This comment has been minimized.

Copy link

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

commented Feb 23, 2017

A

@sabinaioana25

This comment has been minimized.

Copy link

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

commented Feb 27, 2017

I agree for option A !

@yiantzi

This comment has been minimized.

Copy link

commented Feb 28, 2017

Answer A is the correct

@madzik151

This comment has been minimized.

Copy link

commented Mar 1, 2017

Of course that A

@jcunanan05

This comment has been minimized.

Copy link

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

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

commented Mar 9, 2017

A

@samkay123

This comment has been minimized.

Copy link

commented Mar 9, 2017

A

@7ee1aa

This comment has been minimized.

Copy link

commented Mar 12, 2017

A-man!

@mbianka89

This comment has been minimized.

Copy link

commented Mar 17, 2017

A

@vassililm

This comment has been minimized.

Copy link

commented Mar 22, 2017

first one is the right one

@nightwatch92

This comment has been minimized.

Copy link

commented Mar 22, 2017

A

@neliamx4

This comment has been minimized.

Copy link

commented Mar 24, 2017

A is the right one :)

@coldyca

This comment has been minimized.

Copy link

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

commented Mar 25, 2017

Option A. Best regards Vincenzo Masullo.

@Mojcaaap

This comment has been minimized.

Copy link

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

commented Mar 28, 2017

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

@itziarzuazoalegria

This comment has been minimized.

Copy link

commented Mar 30, 2017

Option A¡¡¡¡

@ZdravkaEN

This comment has been minimized.

Copy link

commented Apr 4, 2017

Option A

@HansOloPL

This comment has been minimized.

Copy link

commented Apr 4, 2017

AAA.

@tudor-paraschivescu

This comment has been minimized.

Copy link

commented Apr 4, 2017

A is the one

@albertzubkowicz

This comment has been minimized.

Copy link

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

commented Apr 8, 2017

A

@zerosandonesbj7

This comment has been minimized.

Copy link

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

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

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

commented Apr 11, 2017

Option A

@K1ngandrius

This comment has been minimized.

Copy link

commented Apr 19, 2017

Option A Is The Right Answer

@ramywageh

This comment has been minimized.

Copy link

commented Apr 21, 2017

Option A

@Marcodredd

This comment has been minimized.

Copy link

commented Apr 24, 2017

A

@Joyce-O

This comment has been minimized.

Copy link

commented Apr 27, 2017

A is the correct option

@austinjerrytech

This comment has been minimized.

Copy link

commented May 3, 2017

The correct option is A

@marusoft

This comment has been minimized.

Copy link

commented May 3, 2017

The correct option is A

@digiFitz

This comment has been minimized.

Copy link

commented May 4, 2017

Option A is correct

@mhakeem53

This comment has been minimized.

Copy link

commented May 7, 2017

A

@oluwaseunmusa

This comment has been minimized.

Copy link

commented May 9, 2017

A

@tuandao2511

This comment has been minimized.

Copy link

commented May 17, 2017

answer :A .

@thattechchic

This comment has been minimized.

Copy link

commented May 17, 2017

A

@mykeverest

This comment has been minimized.

Copy link

commented May 17, 2017

A is the right answer

@YounghwanYoon

This comment has been minimized.

Copy link

commented Jun 9, 2017

A

@Santoshnani

This comment has been minimized.

Copy link

commented Jun 12, 2017

option A

@Samuelpinheiro

This comment has been minimized.

Copy link

commented Jun 14, 2017

A is correct!

@supark

This comment has been minimized.

Copy link

commented Jun 17, 2017

A

@ghost

This comment has been minimized.

Copy link

commented Jun 22, 2017

Option A

@mnr410126

This comment has been minimized.

Copy link

commented Jun 22, 2017

Option A

@Iszybee

This comment has been minimized.

Copy link

commented Jun 23, 2017

A

@siddharthoo7

This comment has been minimized.

Copy link

commented Jun 26, 2017

A is correct.

@salonikalra

This comment has been minimized.

Copy link

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

commented Jun 29, 2017

A

@amelenp

This comment has been minimized.

Copy link

commented Jul 14, 2017

A

@sandidutt

This comment has been minimized.

Copy link

commented Jul 19, 2017

option A

@karachid

This comment has been minimized.

Copy link

commented Jul 21, 2017

A

@Isprastika

This comment has been minimized.

Copy link

commented Aug 17, 2017

A

@Isprastika

This comment has been minimized.

Copy link

commented Aug 17, 2017

A

@Mahmoudtarek59

This comment has been minimized.

Copy link

commented Aug 17, 2017

A

@VladimirUkraine

This comment has been minimized.

Copy link

commented Aug 18, 2017

Variant-A

variant-a
Variant-B

variant- b
Variant-C

variant-c

@Thor55

This comment has been minimized.

Copy link

commented Aug 21, 2017

The corresponding option to the app is A.
The secret is to pay attention to the android:orientation attribute in each parent and child view

@shubhamji1993

This comment has been minimized.