2017-09-23 13:11:39 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout
|
|
|
|
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">
|
|
|
|
|
2020-04-19 20:52:22 +02:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/right_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-05-04 20:43:24 +02:00
|
|
|
android:background="@color/red_error"
|
2020-04-19 20:52:22 +02:00
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/close_right"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="end|center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_marginEnd="21dp"
|
|
|
|
android:contentDescription="@string/cancel"
|
|
|
|
android:src="@drawable/ic_close_white_24dp"
|
|
|
|
android:text="@string/hide"
|
|
|
|
android:textColor="@color/md_white_1000" />
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/left_view"
|
|
|
|
android:layout_width="match_parent"
|
2020-05-04 20:43:24 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@color/red_error">
|
2020-04-19 20:52:22 +02:00
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/close_left"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="start|center"
|
|
|
|
android:layout_marginStart="21dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:src="@drawable/ic_close_white_24dp"
|
|
|
|
android:text="@string/hide"
|
|
|
|
android:textColor="@color/md_white_1000" />
|
|
|
|
</FrameLayout>
|
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2017-09-23 13:11:39 +02:00
|
|
|
android:id="@+id/card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/material_component_lists_two_line_height"
|
2020-04-20 02:46:53 +02:00
|
|
|
android:background="@drawable/list_item_selector">
|
2017-09-23 13:11:39 +02:00
|
|
|
|
|
|
|
<ImageView
|
2020-02-17 02:02:07 +01:00
|
|
|
android:id="@+id/edit_button"
|
2018-03-02 18:10:10 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2020-04-19 10:17:47 +02:00
|
|
|
android:layout_marginStart="6dp"
|
2018-03-02 18:10:10 +01:00
|
|
|
android:padding="8dp"
|
2017-09-23 13:11:39 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2018-03-02 18:10:10 +01:00
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-03-02 18:10:10 +01:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:src="@mipmap/ic_launcher_round" />
|
2017-09-23 13:11:39 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="1"
|
2018-03-02 18:10:10 +01:00
|
|
|
android:paddingStart="0dp"
|
2017-09-23 13:11:39 +02:00
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:ellipsize="end"
|
2020-04-19 10:17:47 +02:00
|
|
|
android:textColor="?android:textColorPrimary"
|
2017-09-23 13:11:39 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-04-19 10:17:47 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/source_latest"
|
2020-02-17 02:02:07 +01:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/edit_button"
|
2017-09-23 13:11:39 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-04-19 10:17:47 +02:00
|
|
|
tools:text="Source title" />
|
2017-09-23 13:11:39 +02:00
|
|
|
|
2020-04-19 10:17:47 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2017-09-23 13:11:39 +02:00
|
|
|
android:id="@+id/source_latest"
|
2020-04-19 10:17:47 +02:00
|
|
|
style="@style/Theme.Widget.Button.TextButton"
|
|
|
|
android:textColor="?colorAccent"
|
2020-04-19 20:52:22 +02:00
|
|
|
android:layout_marginEnd="4dp"
|
2020-04-19 10:17:47 +02:00
|
|
|
android:textAllCaps="false"
|
2017-09-23 13:11:39 +02:00
|
|
|
android:layout_width="wrap_content"
|
2020-04-19 10:17:47 +02:00
|
|
|
android:letterSpacing="0.0"
|
|
|
|
android:text="@string/view_latest"
|
|
|
|
android:layout_height="match_parent"
|
2020-04-19 20:52:22 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/source_pin"/>
|
2017-09-23 13:11:39 +02:00
|
|
|
|
2020-04-19 20:52:22 +02:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/source_pin"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
style="@style/Theme.Widget.CustomImageButton"
|
|
|
|
android:src="@drawable/ic_pin_24dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
2017-09-23 13:11:39 +02:00
|
|
|
|
2020-04-19 20:52:22 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2018-03-02 18:10:10 +01:00
|
|
|
</FrameLayout>
|