Created
January 24, 2018 09:27
-
-
Save KucherenkoIhor/d2fe9381b8bbf516b1b3234eff8b1f34 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" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<ImageView | |
app:layout_constraintBottom_toTopOf="@+id/ivBottom" | |
android:background="@android:color/holo_blue_dark" | |
android:id="@+id/ivTop" | |
app:layout_constraintLeft_toLeftOf="parent" | |
app:layout_constraintRight_toRightOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintVertical_weight="0.7" | |
android:layout_width="0dp" | |
android:layout_height="0dp" /> | |
<ImageView | |
app:layout_constraintTop_toTopOf="@id/ivTop" | |
app:layout_constraintBottom_toBottomOf="@id/ivTop" | |
app:layout_constraintLeft_toLeftOf="@id/ivTop" | |
app:layout_constraintRight_toRightOf="@id/ivTop" | |
tools:src='@tools:sample/avatars' | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" /> | |
<TextView | |
app:layout_constraintVertical_bias="0.8" | |
app:layout_constraintTop_toTopOf="@id/ivTop" | |
app:layout_constraintBottom_toBottomOf="@id/ivTop" | |
app:layout_constraintLeft_toLeftOf="@id/ivTop" | |
app:layout_constraintRight_toRightOf="@id/ivTop" | |
android:text="ON" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" /> | |
<Space | |
app:layout_constraintVertical_weight="0.3" | |
app:layout_constraintTop_toBottomOf="@id/ivTop" | |
android:id="@+id/ivBottom" | |
app:layout_constraintLeft_toLeftOf="parent" | |
app:layout_constraintRight_toRightOf="parent" | |
app:layout_constraintBottom_toBottomOf="parent" | |
android:layout_width="0dp" | |
android:layout_height="0dp" /> | |
<Space | |
app:layout_constraintVertical_weight="0.65" | |
app:layout_constraintBottom_toTopOf="@+id/vSecondCardView" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintLeft_toLeftOf="parent" | |
app:layout_constraintRight_toRightOf="parent" | |
android:id="@+id/ivSecondTop" | |
android:layout_width="0dp" | |
android:layout_height="0dp" /> | |
<View | |
app:layout_constraintVertical_weight="0.35" | |
android:background="@android:color/white" | |
android:id="@+id/vSecondCardView" | |
app:layout_constraintTop_toBottomOf="@id/ivSecondTop" | |
app:layout_constraintBottom_toBottomOf="parent" | |
android:layout_marginBottom="15dp" | |
android:layout_marginStart="10dp" | |
android:layout_marginEnd="10dp" | |
app:layout_constraintLeft_toLeftOf="parent" | |
app:layout_constraintRight_toRightOf="parent" | |
android:layout_width="0dp" | |
android:layout_height="0dp"/> | |
</android.support.constraint.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment