Category: Android Linkedin Answer

Which code snippet would achieve the layout displayed below?

[ ] <androidx.constraintlayout.widget.ConstraintLayout ...> <TextView android:id="@+id/text_dashboard" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="16dp" android:padding="8dp" android:textAlignment="center" android:text="Dashboard" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> </androidx.constraintlayout.widget.ConstraintLayout> [x] <androidx.constraintlayout.widget.ConstraintLayout ...>…

 Which image best corresponds to the following LinearLayout?

<LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:gravity="center"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" /> </LinearLayout>  A   B   C   D