summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml
diff options
context:
space:
mode:
Diffstat (limited to 'org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml')
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/headlines_row_unread.xml52
1 files changed, 34 insertions, 18 deletions
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
index d44e016a..ba70bb89 100755
--- a/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml
+++ b/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml
@@ -4,8 +4,7 @@
android:id="@+id/headlines_row"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="?headlineUnreadBackground"
- tools:ignore="HardcodedText">
+ android:background="?headlineUnreadBackground">
<TableLayout
android:layout_width="fill_parent"
@@ -14,7 +13,6 @@
android:shrinkColumns="0,1"
android:stretchColumns="0,1">
-
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content">
@@ -84,19 +82,20 @@
<TextView
android:id="@+id/title"
- android:background="@drawable/ripple"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_span="2"
+ android:background="@drawable/ripple"
+ android:ellipsize="end"
android:gravity="center_vertical"
+ android:maxLines="3"
android:paddingBottom="8dp"
android:singleLine="false"
- android:text="Sample entry title"
+ android:textAlignment="viewStart"
android:textColor="?headlineUnreadTextColor"
android:textSize="18sp"
android:textStyle="bold"
- android:ellipsize="end"
- android:maxLines="3" />
+ tools:text="Sample entry title" />
<LinearLayout
android:layout_width="match_parent"
@@ -110,11 +109,12 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
- android:ellipsize="end"
+ android:ellipsize="middle"
android:fontFamily="sans-serif-light"
android:gravity="center_vertical"
+ android:textAlignment="viewStart"
android:singleLine="true"
- android:text="Example Feed AAA AAA AAAAAA AAAA AAAAA AA A A AA AA"
+ tools:text="Example Feed"
android:textColor="?headlineSecondaryTextColor"
android:textSize="12sp" />
@@ -125,9 +125,10 @@
android:layout_weight="0.5"
android:ellipsize="none"
android:fontFamily="sans-serif-light"
- android:gravity="right|center_vertical"
+ android:gravity="center_vertical"
+ android:textAlignment="viewEnd"
android:singleLine="true"
- android:text="Jan 01, 12:00, 1970"
+ tools:text="Jan 01, 12:00, 1970"
android:textColor="?headlineSecondaryTextColor"
android:textSize="12sp" />
@@ -141,7 +142,7 @@
android:id="@+id/flavor_video_kind"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="bottom|left"
+ android:layout_gravity="bottom|start"
android:scaleType="fitXY"
android:src="@drawable/ic_play_circle"
android:visibility="visible"
@@ -149,7 +150,7 @@
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:tint="?colorAccent"
- android:layout_marginLeft="8dp"
+ android:layout_marginStart="8dp"
android:layout_marginBottom="8dp" />
<ImageView
@@ -162,9 +163,11 @@
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:src="@drawable/ic_dots_vertical_circle"
- android:layout_gravity="bottom|right"
+ android:layout_gravity="bottom|end"
+ android:elevation="4dp"
android:tint="?colorAccent"
- android:layout_marginBottom="10dp" />
+ android:layout_marginBottom="10dp"
+ tools:targetApi="lollipop" />
</FrameLayout>
</TableRow>
@@ -179,10 +182,11 @@
android:layout_height="match_parent"
android:layout_span="2"
android:ellipsize="end"
+ android:textAlignment="viewStart"
android:lineSpacingExtra="2sp"
android:maxLines="5"
android:padding="16dp"
- android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
+ tools:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" />
</TableRow>
@@ -212,16 +216,28 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
- android:ellipsize="end"
+ android:ellipsize="middle"
android:fontFamily="sans-serif-light"
android:gravity="center_vertical"
android:singleLine="true"
- android:text="by Author"
+ tools:text="by Author"
+ android:textAlignment="viewStart"
android:textColor="?headlineSecondaryTextColor"
android:textSize="12sp"
android:textStyle="italic" />
<ImageView
+ android:id="@+id/score"
+ android:layout_width="wrap_content"
+ android:layout_height="24dp"
+ android:layout_weight="0"
+ android:background="@drawable/ripple"
+ android:clickable="true"
+ android:paddingLeft="4dp"
+ android:paddingRight="4dp"
+ android:src="?ic_action_trending_flat" />
+
+ <ImageView
android:id="@+id/attachments"
android:layout_width="wrap_content"
android:layout_height="24dp"