Skip to content

Instantly share code, notes, and snippets.

@russelarms
Created May 28, 2017 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russelarms/4127e767d8dd82f23882da8cc1ac8ac4 to your computer and use it in GitHub Desktop.
Save russelarms/4127e767d8dd82f23882da8cc1ac8ac4 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:id="@+id/ocean"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/blue"
android:translationY="120dp"/>
<ImageView
android:id="@+id/fish_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/fish_left"
android:translationX="-280dp"/>
<ImageView
android:id="@+id/fish_left_bottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/fish_left"/>
<ImageView
android:id="@+id/submarine"
android:layout_width="137.91dp"
android:layout_height="100dp"
android:scaleType="fitCenter"
android:src="@drawable/submarine_blue"/>
<ImageView
android:id="@+id/fish_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/fish_right"
android:translationX="280dp"/>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment