Skip to content

Instantly share code, notes, and snippets.

@NezSpencer
Created March 10, 2019 07:21
Show Gist options
  • Save NezSpencer/73a402d79efb118f8c5d0e553eb35864 to your computer and use it in GitHub Desktop.
Save NezSpencer/73a402d79efb118f8c5d0e553eb35864 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/iv_image"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:src="@drawable/kid"
android:scaleType="centerCrop"
android:adjustViewBounds="true"
android:contentDescription="Hello World!"
/>
<TextView
android:id="@+id/tv_image_name"
android:textSize="16sp"
android:text="Image Name: Pencil"
android:layout_marginTop="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/tv_image_desc"
android:textSize="16sp"
android:layout_marginTop="16dp"
android:text="Image Description: Pencil description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment