Created
May 13, 2018 15:26
-
-
Save xsahil03x/57f037adfeaf21fc38b9df75adabfd65 to your computer and use it in GitHub Desktop.
Constraint Error
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
<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"> | |
<android.support.design.widget.AppBarLayout | |
android:id="@+id/appBarLayout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@drawable/gradient_background" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent"> | |
<android.support.v7.widget.Toolbar | |
android:id="@+id/toolbar2" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent"> | |
<ImageButton | |
android:id="@+id/btnClose" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="start" | |
android:background="@drawable/ic_arrow_back_black_24dp" /> | |
<TextView | |
style="@style/TextAppearance.AppCompat.Widget.ActionBar.Title" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="40dp" | |
android:layout_marginStart="40dp" | |
android:gravity="center" | |
android:text="User Detail" | |
android:textColor="#FFFFFF" | |
android:textSize="25sp" /> | |
<ImageButton | |
android:id="@+id/btnEdit" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="end" | |
android:layout_marginEnd="10dp" | |
android:layout_marginRight="10dp" | |
android:background="@drawable/ic_mode_edit_white_24dp" /> | |
</android.support.v7.widget.Toolbar> | |
<android.support.constraint.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<de.hdodenhof.circleimageview.CircleImageView | |
android:id="@+id/my_pic" | |
android:layout_width="@dimen/dp_150dp" | |
android:layout_height="@dimen/dp_150dp" | |
android:layout_marginBottom="50dp" | |
android:layout_marginTop="5dp" | |
android:src="@drawable/sahil" | |
app:civ_border_color="#707070" | |
app:civ_border_width="1dp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<TextView | |
android:id="@+id/my_blood_group" | |
style="@style/TextAppearance.AppCompat.Widget.ActionBar.Title" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="8dp" | |
android:layout_marginLeft="8dp" | |
android:layout_marginRight="8dp" | |
android:layout_marginStart="8dp" | |
android:layout_marginTop="8dp" | |
android:background="@drawable/bloodgroup_border" | |
android:paddingBottom="2dp" | |
android:paddingEnd="@dimen/dp_8" | |
android:paddingStart="@dimen/dp_8" | |
android:paddingTop="2dp" | |
android:textColor="#EA2D4F" | |
android:textSize="20sp" | |
android:textStyle="bold" | |
app:layout_constraintBottom_toBottomOf="@+id/my_pic" | |
app:layout_constraintEnd_toEndOf="@+id/my_pic" | |
app:layout_constraintStart_toStartOf="@+id/my_pic" | |
app:layout_constraintTop_toBottomOf="@+id/my_pic" | |
app:layout_constraintVertical_bias="0.542" | |
tools:text="B +" /> | |
</android.support.constraint.ConstraintLayout> | |
</android.support.design.widget.AppBarLayout> | |
<ImageView | |
android:id="@+id/imageView4" | |
android:layout_width="@dimen/dp_100" | |
android:layout_height="@dimen/dp_150dp" | |
android:adjustViewBounds="true" | |
android:src="@drawable/donatecounter" | |
app:layout_constraintBottom_toBottomOf="@+id/appBarLayout" | |
app:layout_constraintEnd_toEndOf="@+id/appBarLayout" | |
app:layout_constraintHorizontal_bias="0.1" | |
app:layout_constraintStart_toStartOf="@+id/appBarLayout" | |
app:layout_constraintTop_toBottomOf="@+id/appBarLayout" /> | |
<ImageView | |
android:id="@+id/imageView3" | |
android:layout_width="@dimen/dp_100" | |
android:layout_height="@dimen/dp_150dp" | |
android:layout_marginLeft="8dp" | |
android:layout_marginStart="8dp" | |
app:layout_constraintBottom_toBottomOf="@+id/appBarLayout" | |
app:layout_constraintEnd_toEndOf="@+id/appBarLayout" | |
app:layout_constraintHorizontal_bias="0.91" | |
app:layout_constraintStart_toStartOf="@+id/appBarLayout" | |
app:layout_constraintTop_toBottomOf="@+id/appBarLayout" | |
app:srcCompat="@drawable/requestcounter" /> | |
<ImageView | |
android:id="@+id/imageView5" | |
android:layout_width="@dimen/dp_150dp" | |
android:layout_height="40dp" | |
android:layout_marginTop="8dp" | |
app:layout_constraintEnd_toStartOf="@id/imageView3" | |
app:layout_constraintStart_toEndOf="@id/imageView4" | |
app:layout_constraintTop_toBottomOf="@+id/appBarLayout" | |
app:srcCompat="@drawable/heartbeat" /> | |
<TextView | |
android:id="@+id/my_donation" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="8dp" | |
android:layout_marginEnd="8dp" | |
android:layout_marginRight="8dp" | |
android:textColor="#EA2D4F" | |
app:layout_constraintBottom_toBottomOf="@id/imageView4" | |
app:layout_constraintEnd_toEndOf="@+id/imageView4" | |
app:layout_constraintHorizontal_bias="0.571" | |
app:layout_constraintStart_toStartOf="@id/imageView4" | |
app:layout_constraintTop_toTopOf="@id/imageView4" | |
app:layout_constraintVertical_bias="0.786" | |
tools:text="6 Times" /> | |
<TextView | |
android:id="@+id/my_request" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="8dp" | |
android:layout_marginEnd="8dp" | |
android:layout_marginRight="8dp" | |
android:textColor="#EA2D4F" | |
app:layout_constraintBottom_toBottomOf="@id/imageView3" | |
app:layout_constraintEnd_toEndOf="@+id/imageView3" | |
app:layout_constraintHorizontal_bias="0.571" | |
app:layout_constraintStart_toStartOf="@id/imageView3" | |
app:layout_constraintTop_toTopOf="@id/imageView3" | |
app:layout_constraintVertical_bias="0.786" | |
tools:text="3 Times" /> | |
</android.support.constraint.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment