summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-07-10 19:34:21 +0300
committerAndrew Dolgov <[email protected]>2015-07-10 19:34:21 +0300
commita0118d68327005762268ae30465571db6b51060b (patch)
tree1a6f403760e21e68594a0041a8431c18b599a0f8 /org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml
parent7c7ce0f544d4c0e7aac3a2000524fbca36eda1a0 (diff)
some initial stuff
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.xml157
1 files changed, 82 insertions, 75 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 c3446d0b..3accc8e8 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
@@ -1,17 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
- xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/headlines_row"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="?headlineUnreadBackground"
- tools:ignore="HardcodedText" >
+ tools:ignore="HardcodedText">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:padding="@dimen/activity_horizontal_margin"
android:baselineAligned="false"
android:shrinkColumns="0,1"
android:stretchColumns="0,1">
@@ -21,67 +19,17 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content">
- <TextView
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:singleLine="false"
- android:text="Sample entry title"
- android:textColor="?headlineUnreadTextColor"
- android:textSize="18sp"
- android:textStyle="bold"
- android:paddingBottom="8dp"
- android:layout_span="2" />
- </TableRow>
-
- <TableRow
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
-
- <TextView
- android:id="@+id/feed_title"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:fontFamily="sans-serif-light"
- android:gravity="center_vertical"
- android:singleLine="true"
- android:text="Example Feed AAA AAA AAAAAA AAAA AAAAA AA A A AA AA"
- android:textColor="?headlineSecondaryTextColor"
- android:textSize="12sp"
- android:layout_weight="0.5" />
-
- <TextView
- android:id="@+id/date"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:fontFamily="sans-serif-light"
- android:gravity="right|center_vertical"
- android:singleLine="true"
- android:ellipsize="none"
- android:text="Jan 01, 12:00, 1970"
- android:textColor="?headlineSecondaryTextColor"
- android:textSize="12sp"
- android:layout_weight="0.5" />
- </TableRow>
-
- <TableRow
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
-
<FrameLayout
android:id="@+id/flavorImageHolder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingTop="8dp"
android:layout_span="2">
<ProgressBar
+ android:id="@+id/flavorImageLoadingBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:id="@+id/flavorImageLoadingBar" />
+ android:layout_gravity="center" />
<org.fox.ttrss.util.EnlargingImageView
android:id="@+id/flavor_image"
@@ -89,8 +37,9 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:adjustViewBounds="true"
- android:scaleType="fitCenter"
android:cropToPadding="true"
+ android:scaleType="fitCenter"
+ android:src="@drawable/drawer_header"
android:visibility="visible" />
<ImageView
@@ -103,16 +52,71 @@
android:visibility="gone" />
<TextView
+ android:id="@+id/flavor_image_prompt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_gravity="bottom"
+ android:background="#90000000"
android:gravity="center"
- android:textColor="@android:color/primary_text_dark"
android:text="@string/flavor_image_prompt"
- android:background="#90000000"
- android:visibility="gone"
- android:id="@+id/flavor_image_prompt" />
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="@android:color/primary_text_dark"
+ android:visibility="gone" />
+
+ <RelativeLayout
+ android:id="@+id/headline_header"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="#ccffffff"
+ android:padding="16dp">
+
+ <TextView
+ android:id="@+id/title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_span="2"
+ android:gravity="center_vertical"
+ android:paddingBottom="8dp"
+ android:singleLine="false"
+ android:text="Sample entry title"
+ android:textColor="?headlineUnreadTextColor"
+ android:textSize="18sp"
+ android:textStyle="bold" />
+
+ <LinearLayout
+ 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="end"
+ android:fontFamily="sans-serif-light"
+ android:gravity="center_vertical"
+ android:singleLine="true"
+ android:text="Example Feed AAA AAA AAAAAA AAAA AAAAA AA A A AA AA"
+ android:textColor="?headlineSecondaryTextColor"
+ android:textSize="12sp" />
+
+ <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:gravity="right|center_vertical"
+ android:singleLine="true"
+ android:text="Jan 01, 12:00, 1970"
+ android:textColor="?headlineSecondaryTextColor"
+ android:textSize="12sp" />
+
+ </LinearLayout>
+ </RelativeLayout>
</FrameLayout>
</TableRow>
@@ -124,15 +128,16 @@
android:id="@+id/excerpt"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:layout_span="2"
+ android:ellipsize="end"
android:lineSpacingExtra="2sp"
android:maxLines="5"
- android:ellipsize="end"
+ android:padding="16dp"
+ android:paddingBottom="8dp"
+ android:paddingTop="8dp"
android: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"
- android:layout_span="2"
- android:paddingBottom="8dp"
- android:paddingTop="8dp" />
+ android:textSize="13sp" />
</TableRow>
<TableRow
@@ -143,8 +148,10 @@
android:id="@+id/headline_footer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_span="2"
android:gravity="center_vertical"
- android:layout_span="2">
+ android:paddingBottom="8dp"
+ android:paddingLeft="8dp">
<CheckBox
android:id="@+id/selected"
@@ -169,32 +176,32 @@
<ImageView
android:id="@+id/marked"
- android:background="@drawable/ripple"
android:layout_width="wrap_content"
android:layout_height="24dp"
- android:paddingLeft="4dp"
- android:paddingRight="4dp"
android:layout_weight="0"
+ android:background="@drawable/ripple"
android:clickable="true"
+ android:paddingLeft="4dp"
+ android:paddingRight="4dp"
android:src="?ic_star_outline" />
<ImageView
android:id="@+id/published"
- android:background="@drawable/ripple"
android:layout_width="wrap_content"
android:layout_height="24dp"
- android:paddingLeft="4dp"
- android:paddingRight="4dp"
android:layout_weight="0"
+ android:background="@drawable/ripple"
android:clickable="true"
+ android:paddingLeft="4dp"
+ android:paddingRight="4dp"
android:src="?ic_checkbox_marked" />
<ImageView
android:id="@+id/article_menu_button"
- android:background="@drawable/ripple"
android:layout_width="wrap_content"
android:layout_height="24dp"
android:layout_weight="0"
+ android:background="@drawable/ripple"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:src="?ic_dots_vertical" />