Co-authored-by: davidoskky <davidoskky@hidden.hidden> Co-committed-by: davidoskky <davidoskky@hidden.hidden>
134 lines
6.0 KiB
XML
134 lines
6.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/card"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
card_view:cardElevation="2dp"
|
|
card_view:cardUseCompatPadding="true"
|
|
card_view:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/itemImage"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:cropToPadding="true"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/background_splash"
|
|
card_view:layout_constraintBottom_toTopOf="@+id/constraintLayout" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/constraintLayout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/itemImage">
|
|
|
|
<ImageView
|
|
android:id="@+id/sourceImage"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginTop="8dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/background_splash" />
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:textAlignment="viewStart"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/sourceImage"
|
|
app:layout_constraintTop_toTopOf="@+id/sourceImage"
|
|
tools:text="Titre" />
|
|
|
|
<TextView
|
|
android:id="@+id/sourceTitleAndDate"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:textAlignment="viewStart"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textSize="14sp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="@+id/title"
|
|
app:layout_constraintTop_toBottomOf="@+id/title"
|
|
tools:text="Google Actualité Il y a 5h" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/sourceTitleAndDate">
|
|
|
|
<ImageButton
|
|
android:id="@+id/browserBtn"
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:adjustViewBounds="true"
|
|
android:background="@android:color/transparent"
|
|
android:contentDescription="@string/reader_action_open"
|
|
android:elevation="5dp"
|
|
android:padding="4dp"
|
|
android:scaleType="centerCrop"
|
|
app:srcCompat="@drawable/ic_open_in_browser_black_24dp"
|
|
app:tint="?android:attr/textColorPrimary" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/shareBtn"
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:layout_marginStart="16dp"
|
|
android:adjustViewBounds="true"
|
|
android:background="@android:color/transparent"
|
|
android:contentDescription="@string/share"
|
|
android:elevation="5dp"
|
|
android:padding="4dp"
|
|
android:scaleType="centerCrop"
|
|
app:srcCompat="@drawable/ic_share_black_24dp"
|
|
app:tint="?android:attr/textColorPrimary" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/favButton"
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:layout_marginStart="16dp"
|
|
android:adjustViewBounds="true"
|
|
android:background="@android:color/transparent"
|
|
android:contentDescription="@string/add_to_favs_reader"
|
|
android:elevation="5dp"
|
|
android:padding="4dp"
|
|
android:scaleType="centerCrop"
|
|
app:srcCompat="@drawable/ic_menu_heart_60dp"
|
|
app:tint="@color/ic_menu_heart_color" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView> |