Skip to content

Instantly share code, notes, and snippets.

@Floern
Created April 21, 2016 19:56
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Floern/c066966119236abf1782671137f8b01c to your computer and use it in GitHub Desktop.
Save Floern/c066966119236abf1782671137f8b01c to your computer and use it in GitHub Desktop.
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#f0f0f0">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:padding="30dp"
android:clipChildren="false"
android:clipToPadding="false"
android:orientation="horizontal">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:outlineProvider="bounds"
android:elevation="5dp"
android:paddingTop="0dp"
android:layout_marginTop="0dp">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="normal"
android:gravity="center"
android:background="@android:color/white"
android:textAppearance="@style/TextAppearance.AppCompat.Large"/>
</FrameLayout>
<Space
android:layout_width="30dp"
android:layout_height="match_parent" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:outlineProvider="bounds"
android:elevation="5dp"
android:paddingTop="2dp"
android:layout_marginTop="-2dp">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="offset"
android:gravity="center"
android:background="@android:color/white"
android:textAppearance="@style/TextAppearance.AppCompat.Large"/>
</FrameLayout>
<Space
android:layout_width="30dp"
android:layout_height="match_parent" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:outlineProvider="bounds"
android:elevation="5dp"
android:paddingTop="8dp"
android:layout_marginTop="-8dp">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="too much"
android:gravity="center"
android:background="@android:color/white"
android:textAppearance="@style/TextAppearance.AppCompat.Large"/>
</FrameLayout>
</LinearLayout>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment