2017-05-28 02:29:42 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<android.support.constraint.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.support.v7.widget.CardView
|
2017-07-02 17:12:02 +02:00
|
|
|
android:id="@+id/card"
|
|
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
2017-05-28 02:29:42 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.62"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2017-07-02 17:12:02 +02:00
|
|
|
card_view:cardElevation="2dp"
|
|
|
|
card_view:cardUseCompatPadding="true"
|
2017-05-28 02:29:42 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginRight="8dp">
|
|
|
|
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:srcCompat="@drawable/background_splash"
|
|
|
|
android:id="@+id/itemImage"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
android:cropToPadding="true"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
android:layout_marginTop="0dp"
|
|
|
|
android:layout_marginRight="0dp"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
android:layout_marginLeft="0dp"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent" />
|
|
|
|
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/itemImage"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_height="40dp"
|
|
|
|
app:srcCompat="@drawable/background_splash"
|
|
|
|
android:id="@+id/sourceImage"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_width="40dp" />
|
|
|
|
|
|
|
|
<TextView
|
2017-07-02 17:12:02 +02:00
|
|
|
android:id="@+id/title"
|
2017-05-28 02:29:42 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
2017-07-02 17:12:02 +02:00
|
|
|
android:layout_marginLeft="8dp"
|
2017-05-28 02:29:42 +02:00
|
|
|
android:layout_marginRight="8dp"
|
2017-07-02 17:12:02 +02:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:gravity="start"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textStyle="bold"
|
2017-05-28 02:29:42 +02:00
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
|
|
app:layout_constraintLeft_toRightOf="@+id/sourceImage"
|
2017-07-02 17:12:02 +02:00
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
2017-05-28 02:29:42 +02:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/sourceImage"
|
2017-07-02 17:12:02 +02:00
|
|
|
tools:text="Titre" />
|
2017-05-28 02:29:42 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/sourceTitleAndDate"
|
|
|
|
android:textSize="14sp"
|
|
|
|
tools:text="Google Actualité Il y a 5h"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/title"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/title"
|
|
|
|
android:gravity="start" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/sourceTitleAndDate"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
|
|
|
|
<com.like.LikeButton
|
|
|
|
app:icon_type="heart"
|
|
|
|
app:icon_size="22dp"
|
|
|
|
android:id="@+id/favButton"
|
|
|
|
android:layout_width="35dp"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:elevation="5dp"
|
|
|
|
android:padding="4dp"
|
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:layout_marginEnd="8dp"/>
|
|
|
|
|
|
|
|
<ImageButton
|
2017-07-02 17:12:02 +02:00
|
|
|
android:id="@+id/shareBtn"
|
2017-05-28 02:29:42 +02:00
|
|
|
android:layout_width="35dp"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_centerVertical="true"
|
2017-07-02 17:12:02 +02:00
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
2017-05-28 02:29:42 +02:00
|
|
|
android:layout_toLeftOf="@+id/favButton"
|
|
|
|
android:layout_toStartOf="@+id/favButton"
|
2017-07-02 17:12:02 +02:00
|
|
|
android:adjustViewBounds="true"
|
2017-05-28 02:29:42 +02:00
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:elevation="5dp"
|
2017-07-02 17:12:02 +02:00
|
|
|
android:padding="4dp"
|
2017-05-28 02:29:42 +02:00
|
|
|
android:scaleType="centerCrop"
|
2017-07-02 17:12:02 +02:00
|
|
|
android:src="@drawable/ic_share_black_24dp"
|
|
|
|
android:tint="?android:attr/textColorPrimary" />
|
2017-05-28 02:29:42 +02:00
|
|
|
|
|
|
|
<ImageButton
|
2017-07-02 17:12:02 +02:00
|
|
|
android:id="@+id/browserBtn"
|
2017-05-28 02:29:42 +02:00
|
|
|
android:layout_width="35dp"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
2017-07-02 17:12:02 +02:00
|
|
|
android:layout_toLeftOf="@+id/shareBtn"
|
|
|
|
android:layout_toStartOf="@+id/shareBtn"
|
2017-05-28 02:29:42 +02:00
|
|
|
android:adjustViewBounds="true"
|
2017-07-02 17:12:02 +02:00
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:elevation="5dp"
|
|
|
|
android:padding="4dp"
|
2017-05-28 02:29:42 +02:00
|
|
|
android:scaleType="centerCrop"
|
2017-07-02 17:12:02 +02:00
|
|
|
android:src="@drawable/ic_open_in_browser_black_24dp"
|
|
|
|
android:tint="?android:attr/textColorPrimary" />
|
2017-05-28 02:29:42 +02:00
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</android.support.constraint.ConstraintLayout>
|
|
|
|
</android.support.constraint.ConstraintLayout>
|
|
|
|
|
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
</android.support.constraint.ConstraintLayout>
|