Skip to content

Instantly share code, notes, and snippets.

@operateur-mar
Last active June 9, 2018 14:34
Show Gist options
  • Save operateur-mar/ba9866a82cc624869e15d5bdcd25e507 to your computer and use it in GitHub Desktop.
Save operateur-mar/ba9866a82cc624869e15d5bdcd25e507 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView"
android:layout_margin="25dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher"
/>
<Button
android:id="@+id/randomButton"
android:layout_margin="25dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Random"
android:layout_gravity="center"
/>
</LinearLayout>
</android.support.constraint.ConstraintLayout>
<!-- http://www.aqweeb.com -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment