diff --git a/app/src/main/res/layout/subscription_list_item.xml b/app/src/main/res/layout/subscription_list_item.xml new file mode 100644 index 0000000000000000000000000000000000000000..acb06f4a3a7407e352859aaf3bf0f1c886c9237c --- /dev/null +++ b/app/src/main/res/layout/subscription_list_item.xml @@ -0,0 +1,82 @@ +<?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 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3e098c36a334b35284f4fa6d82cd7d98579003c7..07c92ff2861a2a54fdb870e235aa7e234a8fc9e3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -269,4 +269,30 @@ <item quantity="one">Show %d reply</item> <item quantity="other">Show %d replies</item> </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> \ No newline at end of file