Created
March 16, 2018 15:23
-
-
Save mrenouf/302a40228317b6ea03902fcdcfb176f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@android:color/black"> | |
<android.support.constraint.Guideline | |
android:id="@+id/guideline_h50" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
app:layout_constraintGuide_percent="0.5" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/guideline_h90" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
app:layout_constraintGuide_percent="0.90" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/guideline_v90" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="vertical" | |
app:layout_constraintGuide_percent="0.90" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/guideline_v10" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="vertical" | |
app:layout_constraintGuide_percent="0.1" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/guideline_v20" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="vertical" | |
app:layout_constraintGuide_percent="0.2" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/guideline_v80" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="vertical" | |
app:layout_constraintGuide_percent="0.8" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/guideline_h20" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
app:layout_constraintGuide_percent="0.2" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/guideline_h80" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
app:layout_constraintGuide_percent="0.8" /> | |
<View | |
android:id="@+id/foreground_panel" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:background="#828390" | |
android:elevation="8dp" | |
app:layout_constraintBottom_toTopOf="@+id/guideline_h90" | |
app:layout_constraintEnd_toStartOf="@+id/guideline_v90" | |
app:layout_constraintStart_toStartOf="@+id/guideline_v10" | |
app:layout_constraintTop_toBottomOf="@+id/guideline_h50" /> | |
<FrameLayout | |
android:id="@+id/content_outer" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:background="#192f46" | |
app:layout_constraintBottom_toBottomOf="@+id/guideline_h80" | |
app:layout_constraintEnd_toStartOf="@id/guideline_v80" | |
app:layout_constraintStart_toEndOf="@+id/guideline_v20" | |
app:layout_constraintTop_toTopOf="@+id/guideline_h20"> | |
<ScrollView | |
android:id="@+id/content_inner" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_margin="8dp" | |
android:background="?android:attr/colorPrimary"> | |
<TextView | |
android:id="@+id/text" | |
android:padding="4dp" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@string/material_design" /> | |
</ScrollView> | |
</FrameLayout> | |
</android.support.constraint.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment