Last active
July 27, 2018 06:12
-
-
Save csarq/8bbda0e5c1cdff0cdc7ff8714a1d032b to your computer and use it in GitHub Desktop.
preparing xml
This file contains hidden or 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.v4.widget.NestedScrollView | |
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" | |
tools:context=".MainActivity" | |
android:layout_height="match_parent" | |
android:layout_width="match_parent" | |
android:fillViewport="true"> | |
<android.support.constraint.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<android.support.constraint.Guideline | |
android:id="@+id/margin_left1" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
app:layout_constraintGuide_begin="15dp" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/margin_left2" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
app:layout_constraintGuide_percent="0.30" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/margin_right1" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
app:layout_constraintGuide_end="15dp" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/margin_top" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="horizontal" | |
app:layout_constraintGuide_begin="15dp" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/margin_header_end" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="horizontal" | |
app:layout_constraintGuide_begin="60dp" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/main_body_top" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="horizontal" | |
app:layout_constraintGuide_begin="70dp" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/main_body_left" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
app:layout_constraintGuide_begin="25dp" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/main_body_centre" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
app:layout_constraintGuide_percent="0.5" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/main_body_right" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
app:layout_constraintGuide_end="25dp" /> | |
<android.support.constraint.Guideline | |
android:id="@+id/margin_bottom" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="horizontal" | |
app:layout_constraintGuide_end="15dp" /> | |
<TextView | |
android:id="@+id/logo" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@string/app_name" | |
app:layout_constraintLeft_toRightOf="@id/margin_left1" | |
app:layout_constraintTop_toBottomOf="@id/margin_top" /> | |
<TextView | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:text="@string/mission" | |
app:layout_constraintLeft_toRightOf="@id/margin_left2" | |
app:layout_constraintRight_toLeftOf="@id/margin_right1" | |
app:layout_constraintTop_toBottomOf="@id/margin_top" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="1" | |
app:layout_constraintLeft_toRightOf="@id/main_body_left" | |
app:layout_constraintTop_toBottomOf="@id/main_body_top" /> | |
<TextView | |
android:id="@+id/emoji" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
app:layout_constraintLeft_toRightOf="parent" | |
app:layout_constraintRight_toLeftOf="parent" | |
android:text=""/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
app:layout_constraintTop_toBottomOf="@id/emoji" | |
android:layout_marginTop="10dp" /> | |
</android.support.constraint.ConstraintLayout> | |
</android.support.v4.widget.NestedScrollView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment