* Fix sources colors * Fix issues with sources * Simplify card view theme * Simplify list item theming * Simplify article viewer theming * Fix issues with the color selection. * Correct the color of sources text in article reader
154 lines
7.0 KiB
XML
154 lines
7.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_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_marginTop="8dp"
|
|
app:layout_constraintHorizontal_bias="0.62"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
card_view:cardElevation="2dp"
|
|
card_view:cardUseCompatPadding="true"
|
|
card_view:layout_constraintBottom_toBottomOf="parent"
|
|
app:cardBackgroundColor="?cardBackgroundColor">
|
|
|
|
<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_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="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_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/itemImage">
|
|
|
|
<ImageView
|
|
android:id="@+id/sourceImage"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginTop="8dp"
|
|
app:layout_constraintLeft_toLeftOf="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_marginEnd="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:gravity="start"
|
|
android:textAlignment="viewStart"
|
|
android:textStyle="bold"
|
|
android:textColor="?android:textColorPrimary"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintLeft_toRightOf="@+id/sourceImage"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/sourceImage"
|
|
tools:text="Titre" />
|
|
|
|
<TextView
|
|
android:id="@+id/sourceTitleAndDate"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="start"
|
|
android:textAlignment="viewStart"
|
|
android:textSize="14sp"
|
|
android:textColor="?android:textColorPrimary"
|
|
app:layout_constraintLeft_toLeftOf="@+id/title"
|
|
app:layout_constraintTop_toBottomOf="@+id/title"
|
|
tools:text="Google Actualité Il y a 5h" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/sourceTitleAndDate">
|
|
|
|
<ImageButton
|
|
android:id="@+id/favButton"
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:adjustViewBounds="true"
|
|
android:background="@android:color/transparent"
|
|
android:elevation="5dp"
|
|
android:padding="4dp"
|
|
android:scaleType="centerCrop"
|
|
app:srcCompat="@drawable/ic_menu_heart_60dp"
|
|
app:tint="@color/ic_menu_heart_color" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/shareBtn"
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_toLeftOf="@+id/favButton"
|
|
android:layout_toStartOf="@+id/favButton"
|
|
android:adjustViewBounds="true"
|
|
android:background="@android:color/transparent"
|
|
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/browserBtn"
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_toLeftOf="@+id/shareBtn"
|
|
android:layout_toStartOf="@+id/shareBtn"
|
|
android:adjustViewBounds="true"
|
|
android:background="@android:color/transparent"
|
|
android:elevation="5dp"
|
|
android:padding="4dp"
|
|
android:scaleType="centerCrop"
|
|
app:srcCompat="@drawable/ic_open_in_browser_black_24dp"
|
|
app:tint="?android:attr/textColorPrimary" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView> |