Skip to content

Instantly share code, notes, and snippets.

@SiddyDevelops
Created February 19, 2022 12:46
Show Gist options
  • Save SiddyDevelops/68d47a7b5e31deca3cdb54d55d48a9b0 to your computer and use it in GitHub Desktop.
Save SiddyDevelops/68d47a7b5e31deca3cdb54d55d48a9b0 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.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="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp">
<FrameLayout
android:id="@+id/frameLayout"
android:clickable="true"
android:focusable="true"
android:foreground="@drawable/ripple"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="5dp"
tools:layout_editor_absoluteY="5dp">
<androidx.cardview.widget.CardView
android:id="@+id/cardViewStationary"
android:layout_width="90dp"
android:layout_height="90dp"
android:elevation="8dp"
app:cardBackgroundColor="#49B0E2"
app:cardCornerRadius="22dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="2dp"
android:elevation="8dp"
app:cardCornerRadius="22dp"
app:contentPadding="5dp">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:elevation="8dp"
app:cardCornerRadius="22dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:elevation="10dp"
android:scaleType="centerCrop"
android:src="@drawable/me_photo" />
</androidx.cardview.widget.CardView>
</androidx.cardview.widget.CardView>
</androidx.cardview.widget.CardView>
</FrameLayout>
<ImageView
android:id="@+id/imageView"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_marginStart="70dp"
android:layout_marginBottom="25dp"
android:background="@drawable/heart"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/frameLayout" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/username"
android:text="Siddy"
android:textColor="#303030"
android:fontFamily="@font/poppins_semibold"
android:includeFontPadding="false"
android:layout_marginTop="5dp"
android:textSize="15sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/frameLayout" />
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment