Skip to content

Commit

Permalink
* new design item
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaHasria committed Jul 6, 2021
1 parent 01c0ff1 commit 5b856de
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions app/src/main/res/layout/feed_list_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?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:id="@+id/feed_list_item_linear_layout_main_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="6dp"
android:background="@color/background"
android:padding="10dp">


<TextView
android:id="@+id/feed_list_item_text_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="2"
android:text="english Phrasal Verbs vocabulary Builder app"
android:textColor="@color/white"
android:textSize="13sp"
android:textStyle="normal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/feed_list_item_text_name" />

<TextView
android:id="@+id/feed_list_item_text_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="name"
android:textColor="@color/white"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/feed_list_item_card" />


<androidx.cardview.widget.CardView
android:id="@+id/feed_list_item_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="10dp"
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="wrap_content">


<ImageView
android:id="@+id/feed_list_item_image"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@android:color/transparent"
android:scaleType="centerCrop"
android:adjustViewBounds="true"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

</androidx.cardview.widget.CardView>


</androidx.constraintlayout.widget.ConstraintLayout>


0 comments on commit 5b856de

Please sign in to comment.