I would like to do something like this in XML:
I'vetriedwithLinearLayoutbutI'mnotgettingit.
<?xmlversion="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorBackground"
android:orientation="vertical"
android:weightSum="1" >
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10px"
android:layout_marginTop="10px"
android:fontFamily="serif"
android:text="Título Legal"
android:textColor="@color/colorText"
android:textSize="40px"
android:textStyle="bold" />
<LinearLayout
android:layout_width="280px"
android:layout_height="400px"
android:background="@drawable/img1"
android:orientation="horizontal"
android:weightSum="1">
<LinearLayout
android:layout_width="171dp"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Oie"
android:textColor="@color/colorText"
android:layout_marginLeft="281px" />
</LinearLayout>
</LinearLayout>
If I put text where the image is, the text appears, but when I try to put it a bit ahead of the image, it does not appear (android: layout_marginLeft="281px").
Note: The background color is black (@ color / colorBackground) and the color of the text is white (@ color / colorText).