Created
January 5, 2018 18:25
-
-
Save ezamelczyk/34697ca46dd8623f8f476bfd92196331 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:id="@+id/card" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="16dp" | |
android:layout_marginStart="16dp" | |
android:layout_marginTop="16dp" | |
android:background="?attr/cardBackground" | |
android:elevation="2dp" | |
android:padding="16dp"> | |
<ImageView | |
android:id="@+id/avatar" | |
android:layout_width="80dp" | |
android:layout_height="80dp" | |
android:contentDescription="@string/user_avatar" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
tools:src="@drawable/github_avatar" /> | |
<TextView | |
android:id="@+id/userLogin" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="8dp" | |
android:textSize="25sp" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toEndOf="@id/avatar" | |
app:layout_constraintTop_toTopOf="@id/avatar" | |
tools:text="google-code-export" /> | |
<TextView | |
android:id="@+id/userName" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="8dp" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toEndOf="@id/avatar" | |
app:layout_constraintTop_toBottomOf="@id/userLogin" | |
tools:text="account just for exporting some project of google code" /> | |
<View | |
android:id="@+id/divider" | |
style="?attr/dividerStyle" | |
android:layout_width="0dp" | |
android:layout_height="1dp" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/userName" /> | |
<TextView | |
android:id="@+id/followers" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="16dp" | |
android:textStyle="bold" | |
app:layout_constraintEnd_toEndOf="@id/followersLabel" | |
app:layout_constraintStart_toStartOf="@id/followersLabel" | |
app:layout_constraintTop_toBottomOf="@id/divider" | |
tools:text="1018" /> | |
<TextView | |
android:id="@+id/followersLabel" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@string/followers" | |
android:textSize="12sp" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/followers" /> | |
<TextView | |
android:id="@+id/repositories" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="16dp" | |
android:textStyle="bold" | |
app:layout_constraintEnd_toEndOf="@id/repositoriesLabel" | |
app:layout_constraintStart_toStartOf="@id/repositoriesLabel" | |
app:layout_constraintTop_toBottomOf="@id/divider" | |
tools:text="282" /> | |
<TextView | |
android:id="@+id/repositoriesLabel" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="16dp" | |
android:text="@string/repositories" | |
android:textSize="12sp" | |
app:layout_constraintStart_toEndOf="@id/followersLabel" | |
app:layout_constraintTop_toBottomOf="@id/repositories" /> | |
<android.support.constraint.Barrier | |
android:id="@+id/barrier2" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
app:barrierDirection="bottom" | |
app:constraint_referenced_ids="followersLabel, repositoriesLabel" /> | |
<View | |
android:id="@+id/locationIcon" | |
android:layout_width="0dp" | |
android:layout_height="@dimen/repository_card_icon_size" | |
android:background="@drawable/ic_location" | |
android:backgroundTint="@color/github_grey" | |
app:layout_constraintBottom_toBottomOf="@id/location" | |
app:layout_constraintDimensionRatio="1:1" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="@id/location" /> | |
<TextView | |
android:id="@+id/location" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:paddingEnd="8dp" | |
android:paddingStart="4dp" | |
android:layout_marginTop="16dp" | |
app:layout_constraintStart_toEndOf="@id/locationIcon" | |
app:layout_constraintTop_toTopOf="@+id/barrier2" | |
tools:text="Cali" /> | |
<View | |
android:id="@+id/emailIcon" | |
android:layout_width="0dp" | |
android:layout_height="@dimen/repository_card_icon_size" | |
android:background="@drawable/ic_email" | |
android:backgroundTint="@color/github_grey" | |
app:layout_constraintBottom_toBottomOf="@id/email" | |
app:layout_constraintDimensionRatio="1:1" | |
app:layout_constraintStart_toEndOf="@id/location" | |
app:layout_constraintTop_toTopOf="@id/email" /> | |
<TextView | |
android:id="@+id/email" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:paddingEnd="8dp" | |
android:paddingStart="4dp" | |
android:layout_marginTop="16dp" | |
app:layout_constraintStart_toEndOf="@id/emailIcon" | |
app:layout_constraintTop_toTopOf="@id/barrier2" | |
tools:text="[email protected]" /> | |
</android.support.constraint.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment