summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-18 15:38:26 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-18 15:38:26 +0300
commit4117ba3e72cc0c529ebe266e17dc06a4bdccd98a (patch)
tree551b8e04009b97c661f8bc7b8b80217d04ef8750 /org.fox.ttrss/src/main/res
parentf6264c066c8ec3646f38593e948b09abf344d06f (diff)
drop all views specific to article states in favor of updating necessary colors on viewholder bind
Diffstat (limited to 'org.fox.ttrss/src/main/res')
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/headlines_row_compact_active.xml109
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/headlines_row_compact_active_unread.xml110
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/headlines_row_compact_unread.xml110
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/headlines_row_unread.xml273
4 files changed, 0 insertions, 602 deletions
diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_compact_active.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_compact_active.xml
deleted file mode 100755
index 72ae99b8..00000000
--- a/org.fox.ttrss/src/main/res/layout/headlines_row_compact_active.xml
+++ /dev/null
@@ -1,109 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/headlines_row"
- android:paddingTop="16dp"
- android:paddingBottom="16dp"
- android:paddingStart="16dp"
- android:paddingEnd="8dp"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="?colorTertiaryContainer"
- android:orientation="horizontal">
-
- <FrameLayout
- android:layout_gravity="center_vertical|start"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="16dp">
-
- <ImageView
- android:clickable="true"
- android:focusable="true"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_gravity="center"
- android:id="@+id/text_image"/>
-
- <ImageView
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:src="@drawable/check_sm"
- android:id="@+id/text_checked"
- android:layout_gravity="center" />
-
- </FrameLayout>
-
- <LinearLayout
- android:layout_weight="1"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <TextView
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:maxLines="2"
- android:ellipsize="end"
- tools:text="Sample entry title"
- android:textColor="?colorOnTertiaryContainer"
- android:textSize="18sp" />
-
- <TextView
- android:id="@+id/feed_title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:ellipsize="middle"
- android:fontFamily="sans-serif-light"
- android:singleLine="true"
- tools:text="Example Feed AAA AAA AAAAAA AAAA AAAAA AA A A AA AA"
- android:textColor="?colorOnTertiaryContainer"
- android:textSize="12sp"
- android:layout_marginTop="4dp" />
-
- <TextView
- android:id="@+id/excerpt"
- android:maxLines="2"
- android:ellipsize="end"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- android:textColor="?colorOnTertiaryContainer"
- android:textSize="13sp"
- android:layout_marginTop="4dp" />
- </LinearLayout>
-
- <LinearLayout
- android:orientation="vertical"
- android:layout_weight="0"
- android:layout_width="48dp"
- android:layout_height="match_parent">
-
- <TextView
- android:id="@+id/date"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fontFamily="sans-serif-light"
- android:singleLine="true"
- android:ellipsize="none"
- android:textAlignment="viewEnd"
- android:layout_weight="0.5"
- tools:text="Jan 01"
- android:textColor="?colorSecondary"
- android:textSize="12sp"
- />
-
- <com.google.android.material.button.MaterialButton
- android:id="@+id/marked"
- style="?attr/materialIconButtonStyle"
- android:layout_width="wrap_content"
- android:paddingEnd="0dp"
- android:layout_gravity="end"
- android:layout_height="24dp"
- android:layout_weight="0.5"
- app:icon="@drawable/baseline_star_outline_24" />
- </LinearLayout>
-</LinearLayout> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_compact_active_unread.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_compact_active_unread.xml
deleted file mode 100755
index b2b3a21e..00000000
--- a/org.fox.ttrss/src/main/res/layout/headlines_row_compact_active_unread.xml
+++ /dev/null
@@ -1,110 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/headlines_row"
- android:paddingTop="16dp"
- android:paddingBottom="16dp"
- android:paddingStart="16dp"
- android:paddingEnd="8dp"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="?colorTertiaryContainer"
- android:orientation="horizontal">
-
- <FrameLayout
- android:layout_gravity="center_vertical|start"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="16dp">
-
- <ImageView
- android:clickable="true"
- android:focusable="true"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_gravity="center"
- android:id="@+id/text_image"/>
-
- <ImageView
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:src="@drawable/check_sm"
- android:id="@+id/text_checked"
- android:layout_gravity="center" />
-
- </FrameLayout>
-
- <LinearLayout
- android:layout_weight="1"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <TextView
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:maxLines="2"
- android:ellipsize="end"
- tools:text="Sample entry title"
- android:textColor="?colorOnTertiaryContainer"
- android:textStyle="bold"
- android:textSize="18sp" />
-
- <TextView
- android:id="@+id/feed_title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:ellipsize="middle"
- android:fontFamily="sans-serif-light"
- android:singleLine="true"
- tools:text="Example Feed AAA AAA AAAAAA AAAA AAAAA AA A A AA AA"
- android:textColor="?colorOnTertiaryContainer"
- android:textSize="12sp"
- android:layout_marginTop="4dp" />
-
- <TextView
- android:id="@+id/excerpt"
- android:maxLines="2"
- android:ellipsize="end"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- android:textColor="?colorOnTertiaryContainer"
- android:textSize="13sp"
- android:layout_marginTop="4dp" />
- </LinearLayout>
-
- <LinearLayout
- android:orientation="vertical"
- android:layout_weight="0"
- android:layout_width="48dp"
- android:layout_height="match_parent">
-
- <TextView
- android:id="@+id/date"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fontFamily="sans-serif-light"
- android:singleLine="true"
- android:ellipsize="none"
- android:textAlignment="viewEnd"
- android:layout_weight="0.5"
- tools:text="Jan 01"
- android:textColor="?colorSecondary"
- android:textSize="12sp"
- />
-
- <com.google.android.material.button.MaterialButton
- android:id="@+id/marked"
- style="?attr/materialIconButtonStyle"
- android:layout_width="wrap_content"
- android:paddingEnd="0dp"
- android:layout_gravity="end"
- android:layout_height="24dp"
- android:layout_weight="0.5"
- app:icon="@drawable/baseline_star_outline_24" />
- </LinearLayout>
-</LinearLayout> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_compact_unread.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_compact_unread.xml
deleted file mode 100755
index 2fbbe062..00000000
--- a/org.fox.ttrss/src/main/res/layout/headlines_row_compact_unread.xml
+++ /dev/null
@@ -1,110 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/headlines_row"
- android:paddingTop="16dp"
- android:paddingBottom="16dp"
- android:paddingStart="16dp"
- android:paddingEnd="8dp"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="?colorSurfaceContainerLowest"
- android:orientation="horizontal">
-
- <FrameLayout
- android:layout_gravity="center_vertical|start"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="16dp">
-
- <ImageView
- android:clickable="true"
- android:focusable="true"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_gravity="center"
- android:id="@+id/text_image"/>
-
- <ImageView
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:src="@drawable/check_sm"
- android:id="@+id/text_checked"
- android:layout_gravity="center" />
-
- </FrameLayout>
-
- <LinearLayout
- android:layout_weight="1"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <TextView
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:maxLines="2"
- android:ellipsize="end"
- tools:text="Sample entry title"
- android:textStyle="bold"
- android:textSize="18sp" />
-
- <TextView
- android:id="@+id/feed_title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:ellipsize="middle"
- android:fontFamily="sans-serif-light"
- android:singleLine="true"
- tools:text="Example Feed AAA AAA AAAAAA AAAA AAAAA AA A A AA AA"
- android:textColor="?colorSecondary"
- android:textSize="12sp"
- android:layout_marginTop="4dp" />
-
- <TextView
- android:id="@+id/excerpt"
- android:maxLines="2"
- android:ellipsize="end"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- android:textColor="?colorSecondary"
- android:textSize="13sp"
- android:layout_marginTop="4dp" />
-
- </LinearLayout>
-
- <LinearLayout
- android:orientation="vertical"
- android:layout_weight="0"
- android:layout_width="48dp"
- android:layout_height="match_parent">
-
- <TextView
- android:id="@+id/date"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fontFamily="sans-serif-light"
- android:singleLine="true"
- android:ellipsize="none"
- android:textAlignment="viewEnd"
- android:layout_weight="0.5"
- tools:text="Jan 01"
- android:textColor="?colorSecondary"
- android:textSize="12sp"
- />
-
- <com.google.android.material.button.MaterialButton
- android:id="@+id/marked"
- style="?attr/materialIconButtonStyle"
- android:layout_width="wrap_content"
- android:paddingEnd="0dp"
- android:layout_gravity="end"
- android:layout_height="24dp"
- android:layout_weight="0.5"
- app:icon="@drawable/baseline_star_outline_24" />
- </LinearLayout>
-</LinearLayout> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml
deleted file mode 100755
index cff1502d..00000000
--- a/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml
+++ /dev/null
@@ -1,273 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/headlines_row"
- app:cardBackgroundColor="?colorSurfaceContainerLowest"
- android:layout_marginStart="8dp"
- android:layout_marginEnd="8dp"
- android:layout_marginTop="8dp"
- app:strokeWidth="0dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content">
-
- <TableLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:baselineAligned="false"
- android:shrinkColumns="0,1"
- android:stretchColumns="0,1">
-
- <TableRow
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
-
- <RelativeLayout
- android:id="@+id/headline_header"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:clickable="true"
- android:layout_span="2"
- android:padding="16dp">
-
- <TextView
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:maxLines="3"
- android:paddingBottom="8dp"
- android:singleLine="false"
- android:textColor="?colorOnSurface"
- android:textSize="18sp"
- android:textStyle="bold"
- tools:text="Sample entry title which is overwhelmingly long blah blah blah" />
-
- <LinearLayout
- android:id="@+id/linearLayout2"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/title"
- android:orientation="horizontal">
-
- <TextView
- android:id="@+id/feed_title"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="0.5"
- android:ellipsize="middle"
- android:fontFamily="sans-serif-light"
- android:singleLine="true"
- android:textAlignment="viewStart"
- android:textColor="?colorSecondary"
- android:textSize="12sp"
- tools:text="Example Feed AAA AAA AAAAAA AAAA AAAAA AA A A AA AA" />
-
- <TextView
- android:id="@+id/date"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="0.5"
- android:ellipsize="none"
- android:fontFamily="sans-serif-light"
- android:singleLine="true"
- android:textAlignment="viewEnd"
- android:textColor="?colorSecondary"
- android:textSize="12sp"
- tools:text="Jan 01, 12:00, 1970" />
-
- </LinearLayout>
-
- <TextView
- android:id="@+id/link_host"
- android:layout_width="match_parent"
- android:layout_marginTop="8dp"
- android:layout_below="@+id/linearLayout2"
- android:layout_height="wrap_content"
- android:ellipsize="middle"
- android:fontFamily="sans-serif-light"
- android:singleLine="true"
- android:textAlignment="viewStart"
- android:textColor="?colorSecondary"
- android:textSize="12sp"
- tools:text="example.com" />
-
- </RelativeLayout>
-
- </TableRow>
-
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
-
- <FrameLayout
- android:id="@+id/flavorImageHolder"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
- android:layout_span="2">
-
- <ProgressBar
- android:id="@+id/flavorImageLoadingBar"
- style="?android:attr/progressBarStyleHorizontal"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:indeterminate="false"
- android:max="100"
- android:visibility="visible" />
-
- <ImageView
- android:id="@+id/flavor_image"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:adjustViewBounds="true"
- android:background="@null"
- android:scaleType="centerCrop"
- tools:src="@drawable/ic_launcher_background"
- android:visibility="visible" />
-
- <TextureView
- android:id="@+id/flavor_video"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:adjustViewBounds="true"
- android:background="@null"
- android:cropToPadding="true"
- android:foreground="@null"
- android:scaleType="fitCenter"
- android:visibility="gone" />
-
- <ImageView
- android:id="@+id/flavor_video_kind"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="start|bottom"
- android:layout_marginStart="8dp"
- android:layout_marginBottom="10dp"
- android:scaleType="fitXY"
- android:src="@drawable/baseline_play_circle_24"
- android:visibility="visible"
- app:tint="?colorTertiary" />
-
- <com.google.android.material.button.MaterialButton
- android:id="@+id/gallery_overflow"
- style="?attr/materialIconButtonStyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom|end"
- android:layout_marginEnd="-8dp"
- app:icon="@drawable/baseline_more_vert_24"
- app:iconTint="?colorTertiary"/>
-
- </FrameLayout>
- </TableRow>
-
- <TableRow
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
-
- <TextView
- android:id="@+id/excerpt"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_span="2"
- android:ellipsize="end"
- android:textAlignment="viewStart"
- android:lineSpacingExtra="2sp"
- android:maxLines="5"
- android:paddingStart="16dp"
- android:paddingEnd="16dp"
- tools:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- android:textSize="13sp" />
- </TableRow>
-
- <TableRow
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
-
- <LinearLayout
- android:id="@+id/headline_footer"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_span="2"
- android:gravity="center_vertical"
- android:paddingBottom="8dp">
-
- <com.google.android.material.checkbox.MaterialCheckBox
- android:id="@+id/selected"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="0"
- android:focusable="false" />
-
- <TextView
- android:id="@+id/author"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:ellipsize="middle"
- android:fontFamily="sans-serif-light"
- android:gravity="center_vertical"
- android:singleLine="true"
- tools:text="by Author"
- android:textAlignment="viewStart"
- android:textColor="?colorSecondary"
- android:textSize="12sp"
- android:textStyle="italic" />
-
- <com.google.android.material.button.MaterialButton
- style="?attr/materialIconButtonStyle"
- android:id="@+id/score"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="0"
- android:paddingLeft="4dp"
- android:paddingRight="4dp"
- app:icon="@drawable/baseline_trending_flat_24" />
-
- <com.google.android.material.button.MaterialButton
- style="?attr/materialIconButtonStyle"
- android:id="@+id/attachments"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="0"
- android:paddingLeft="4dp"
- android:paddingRight="4dp"
- app:icon="@drawable/baseline_attachment_24" />
-
- <com.google.android.material.button.MaterialButton
- style="?attr/materialIconButtonStyle"
- android:id="@+id/marked"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="0"
- android:paddingLeft="4dp"
- android:paddingRight="4dp"
- app:icon="@drawable/baseline_star_outline_24" />
-
- <com.google.android.material.button.MaterialButton
- style="?attr/materialIconButtonStyle"
- android:id="@+id/published"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="0"
- android:paddingLeft="4dp"
- android:paddingRight="4dp"
- app:icon="@drawable/rss" />
-
- <com.google.android.material.button.MaterialButton
- style="?attr/materialIconButtonStyle"
- android:id="@+id/article_menu_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="0"
- android:paddingLeft="4dp"
- android:paddingRight="4dp"
- app:icon="@drawable/baseline_more_vert_24" />
- </LinearLayout>
- </TableRow>
- </TableLayout>
-</com.google.android.material.card.MaterialCardView> \ No newline at end of file