Created
June 3, 2021 11:05
-
-
Save ajailani4/ad946b883269d40ad7c94c79d737d1a2 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
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="150dp" | |
android:layout_height="230dp" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_marginTop="10dp" | |
android:layout_marginBottom="10dp" | |
android:layout_marginStart="10dp" | |
android:layout_marginEnd="10dp" | |
android:clickable="true" | |
android:focusable="true" | |
android:foreground="?android:attr/selectableItemBackground" | |
app:cardElevation="5dp" | |
app:cardCornerRadius="20dp"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<androidx.appcompat.widget.AppCompatImageView | |
android:id="@+id/image" | |
android:layout_width="match_parent" | |
android:layout_height="140dp" | |
android:layout_marginTop="16dp" | |
android:layout_marginStart="16dp" | |
android:layout_marginEnd="16dp" | |
android:layout_gravity="top|center" | |
android:scaleType="fitXY" | |
tools:src="@mipmap/ic_launcher" /> | |
<androidx.appcompat.widget.AppCompatTextView | |
android:id="@+id/name" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="12dp" | |
android:layout_marginBottom="20dp" | |
android:layout_marginStart="20dp" | |
android:layout_marginEnd="20dp" | |
android:layout_gravity="bottom|center" | |
android:gravity="center" | |
android:maxLines="2" | |
android:fontFamily="@font/open_sans_semibold" | |
android:textColor="@color/black" | |
android:textSize="15sp" | |
tools:text="Galaxy A72" /> | |
</LinearLayout> | |
</androidx.cardview.widget.CardView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment