YogenGhodke
9/8/2019 - 6:02 PM

Activity Main

You can replace Constraint Layout with Linear Layout.

<!-- In Linear Layout opening tag. -->

android:background="@color/background"
android:orientation="vertical"
android:gravity="center"

<!-- Inside Linear Layout tag. -->

<ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_launcher_foreground"
        />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="@color/white"            // Needs Defn in Strings.xml
        android:textColor="@android:color/white"    // Direct Access from predefined colors
        android:padding="8dp"
        android:textSize="27sp"
        android:id="@+id/answers"
        android:text="Test Question"
        />
        
    <Button
            android:id="@+id/Option2"
            android:text="@string/rick_sanchez"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="65dp"
            android:layout_marginTop="20dp"
            />