Last active
February 3, 2020 07:49
-
-
Save virendersran01/63c0f817a4255d4a9fb2e9cab786977e to your computer and use it in GitHub Desktop.
Career Advice category Layout
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"?> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_height="wrap_content" | |
android:layout_width="match_parent" | |
android:clipToPadding="false" | |
android:padding="16dp"> | |
<androidx.cardview.widget.CardView | |
android:id="@+id/cardview" | |
android:layout_width="0dp" | |
android:layout_height="250dp" | |
app:cardCornerRadius="20dp" | |
android:layout_marginEnd="40dp" | |
app:cardBackgroundColor="@color/colorAccent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintEnd_toEndOf="parent"/> | |
<androidx.cardview.widget.CardView | |
android:id="@+id/cardvieww" | |
android:layout_width="match_parent" | |
android:layout_height="250dp" | |
android:layout_marginStart="60dp" | |
android:layout_marginTop="56dp" | |
android:layout_marginBottom="10dp" | |
android:layout_marginEnd="6dp" | |
app:cardCornerRadius="20dp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent"> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<TextView | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="16dp" | |
android:layout_marginTop="56dp" | |
android:layout_marginEnd="16dp" | |
android:text="@string/app_name" | |
android:textColor="@color/solid_black" | |
android:textSize="20sp" | |
android:fontFamily="@font/rubik_regular" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_margin="16dp" | |
android:text="View" | |
android:textSize="16sp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
</androidx.cardview.widget.CardView> | |
<androidx.cardview.widget.CardView | |
android:id="@+id/cardviewww" | |
android:layout_width="80dp" | |
android:layout_height="80dp" | |
app:cardCornerRadius="40dp" | |
app:layout_constraintTop_toTopOf="@id/cardvieww" | |
app:layout_constraintBottom_toTopOf="@id/cardvieww" | |
app:layout_constraintStart_toStartOf="@id/cardvieww" | |
android:layout_marginStart="16dp" > | |
<ImageView | |
android:id="@+id/imageView" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/colorAccent" | |
android:layout_margin="16dp"/> | |
</androidx.cardview.widget.CardView> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
///////////////for view///////// | |
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_margin="8dp" | |
app:cardCornerRadius="20dp"> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:clipToPadding="false"> | |
<ImageView | |
android:id="@+id/image_view" | |
android:layout_width="match_parent" | |
android:layout_height="250dp" | |
android:scaleType="fitXY" | |
android:src="@drawable/ludhiana" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<TextView | |
android:id="@+id/text_title" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="16dp" | |
android:textColor="#808080" | |
android:textStyle="bold" | |
android:textSize="18sp" | |
android:text="5 Easy Steps to Writing a Cover Letter " | |
android:layout_marginStart="8dp" | |
android:layout_marginEnd="8dp" | |
app:layout_constraintTop_toBottomOf="@id/image_view" /> | |
<TextView | |
android:id="@+id/text_description" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:textColor="#808080" | |
android:textSize="16sp" | |
android:layout_marginTop="16dp" | |
android:layout_marginStart="8dp" | |
android:layout_marginEnd="8dp" | |
android:text="Writing a cover letter doesn't have to be so difficult. Here, we break down the cover letter into 5 sections to make sure you impress that recruiter." | |
app:layout_constraintTop_toBottomOf="@id/text_title"/> | |
<Button | |
android:id="@+id/button_read" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Read" | |
android:textSize="16sp" | |
android:textAllCaps="false" | |
android:textColor="@android:color/white" | |
android:layout_margin="16dp" | |
android:background="@drawable/custom_button" | |
app:layout_constraintTop_toBottomOf="@id/text_description" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintBottom_toBottomOf="parent"/> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
</androidx.cardview.widget.CardView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment