Skip to content

Instantly share code, notes, and snippets.

@DevPicon
Created January 20, 2016 05:18
Show Gist options
  • Save DevPicon/a042736c599a38bba8ae to your computer and use it in GitHub Desktop.
Save DevPicon/a042736c599a38bba8ae to your computer and use it in GitHub Desktop.
Una pantalla usando LinearLayout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<ImageView
android:layout_width="200dp"
android:layout_height="300dp"
android:src="@drawable/equilibrium"
android:scaleType="centerCrop"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="right"
android:padding="3dp"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Nombre"
android:background="#01579B"
android:textColor="#000000"
android:textSize="20sp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Equilibrium"
android:textColor="#000000"
android:textSize="17sp"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Duracion"
android:textColor="#000000"
android:background="#01579B"
android:textSize="20sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="107 Minutos"
android:textColor="#000000"
android:textSize="17sp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Año"
android:textSize="20sp"
android:textColor="#000000"
android:background="#01579B"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="2002"
android:textSize="17sp"
android:textColor="#000000"/>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Descripcion"
android:textColor="#000000"
android:background="#01579B"
android:textSize="20sp"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="En un futuro fascista donde todas las formas de sentimiento son ilegales , uno de los encargados de hacer cumplir la ley se levanta para derrocar el sistema."
android:textColor="#000000"
android:textSize="17sp"
/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment