Skip to content
Snippets Groups Projects
Commit c8db3238 authored by Taras's avatar Taras
Browse files

Create layout for item

parent b3a02ccf
No related branches found
No related tags found
No related merge requests found
<?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="match_parent"
android:layout_height="wrap_content"
android:background="?selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:padding="4dp">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/ivIcon"
android:layout_width="@dimen/group_icon_size"
android:layout_height="@dimen/group_icon_size"
android:scaleType="centerCrop"
android:src="@mipmap/ic_launcher"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.App.GroupIconRadius" />
<TextView
android:id="@+id/tvName"
style="@style/title2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:ellipsize="end"
android:lines="1"
app:layout_constraintBottom_toTopOf="@id/tvPrice"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/ivIcon"
app:layout_constraintTop_toTopOf="@id/ivIcon"
tools:text="texsdt" />
<TextView
android:id="@+id/tvPrice"
style="@style/subheadline"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:ellipsize="end"
android:lines="1"
app:layout_constraintBottom_toTopOf="@id/tvDuration"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/tvName"
app:layout_constraintTop_toBottomOf="@id/tvName"
tools:text="texsdt" />
<TextView
android:id="@+id/tvDuration"
style="@style/subheadline"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:ellipsize="end"
android:lines="1"
app:layout_constraintBottom_toTopOf="@id/tvDetails"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/tvName"
app:layout_constraintTop_toBottomOf="@id/tvPrice"
tools:text="texsdt" />
<TextView
android:id="@+id/tvDetails"
style="@style/subheadline"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:ellipsize="end"
android:lines="1"
app:layout_constraintBottom_toBottomOf="@id/ivIcon"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/tvName"
app:layout_constraintTop_toBottomOf="@id/tvDuration"
tools:text="texsdt" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...@@ -269,4 +269,30 @@ ...@@ -269,4 +269,30 @@
<item quantity="one">Show %d reply</item> <item quantity="one">Show %d reply</item>
<item quantity="other">Show %d replies</item> <item quantity="other">Show %d replies</item>
</plurals> </plurals>
<plurals name="days">
<item quantity="one">%1$d day</item>
<item quantity="many">%1$d days</item>
<item quantity="other">%1$d days</item>
</plurals>
<plurals name="weeks">
<item quantity="one">%1$d week</item>
<item quantity="many">%1$d weeks</item>
<item quantity="other">%1$d weeks</item>
</plurals>
<plurals name="months">
<item quantity="one">%1$d month</item>
<item quantity="many">%1$d months</item>
<item quantity="other">%1$d months</item>
</plurals>
<plurals name="years">
<item quantity="one">%1$d year</item>
<item quantity="many">%1$d years</item>
<item quantity="other">%1$d years</item>
</plurals>
</resources> </resources>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment