AND-401 · Question #51
Which UI does the following code builds? <?xml version="1.0" encoding="utf-8"?> android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" >…
Sign in or unlock AND-401 to reveal the answer and full explanation for question #51. The question stem and answer options stay visible for context.
Question
Which UI does the following code builds? <?xml version="1.0" encoding="utf-8"?> android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Name:" /> <EditText android:id="@+id/editText1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:ems="10" /> </LinearLayout> <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Post" /> </LinearLayout>
Options
- AAn edit text to the left of a text view and a button beneath it
- BAn edit text to the right of a text view and a button to the right of the text view
- CAn edit text to the right of a text view and a button beneath them
- DA text view , an edit text beneath it and the button beneath the edit text
Unlock AND-401 to see the answer
You've previewed enough free AND-401 questions. Unlock AND-401 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.