diff --git a/res/drawable-hdpi/ic_menu_rss.png b/res/drawable-hdpi/ic_menu_rss.png new file mode 100644 index 00000000..431921ab Binary files /dev/null and b/res/drawable-hdpi/ic_menu_rss.png differ diff --git a/res/drawable-hdpi/ic_rss.png b/res/drawable-hdpi/ic_rss.png new file mode 100644 index 00000000..bd03379a Binary files /dev/null and b/res/drawable-hdpi/ic_rss.png differ diff --git a/res/drawable-hdpi/ic_rss_bw.png b/res/drawable-hdpi/ic_rss_bw.png new file mode 100644 index 00000000..56d79bc7 Binary files /dev/null and b/res/drawable-hdpi/ic_rss_bw.png differ diff --git a/res/drawable-hdpi/rss.png b/res/drawable-hdpi/rss.png deleted file mode 100644 index 240e45e3..00000000 Binary files a/res/drawable-hdpi/rss.png and /dev/null differ diff --git a/res/drawable-hdpi/rss_bw.png b/res/drawable-hdpi/rss_bw.png deleted file mode 100644 index 1e698ec0..00000000 Binary files a/res/drawable-hdpi/rss_bw.png and /dev/null differ diff --git a/res/layout/headlines_row.xml b/res/layout/headlines_row.xml index 0b8e11f1..4b66b747 100644 --- a/res/layout/headlines_row.xml +++ b/res/layout/headlines_row.xml @@ -16,7 +16,30 @@ android:layout_width="wrap_content" android:gravity="center" android:padding="3dip" android:layout_height="wrap_content" android:orientation="vertical"> - + + + + + + + + + \ No newline at end of file diff --git a/res/layout/headlines_row_selected.xml b/res/layout/headlines_row_selected.xml index 92740519..fa7e7ad0 100644 --- a/res/layout/headlines_row_selected.xml +++ b/res/layout/headlines_row_selected.xml @@ -1,24 +1,95 @@ - - - - - - - - - - - + android:gravity="center_vertical" + android:orientation="horizontal" > + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/headlines_row_unread.xml b/res/layout/headlines_row_unread.xml index 12d089eb..e0aa00cf 100644 --- a/res/layout/headlines_row_unread.xml +++ b/res/layout/headlines_row_unread.xml @@ -18,7 +18,30 @@ android:layout_width="wrap_content" android:gravity="center" android:padding="3dip" android:layout_height="wrap_content" android:orientation="vertical"> - + + + + + + + + + \ No newline at end of file diff --git a/res/menu/main_menu.xml b/res/menu/main_menu.xml index 6fc1ce6c..216b24c5 100644 --- a/res/menu/main_menu.xml +++ b/res/menu/main_menu.xml @@ -1,6 +1,11 @@ + + - - - diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java index 1e7e9ef4..b31b7753 100644 --- a/src/org/fox/ttrss/HeadlinesFragment.java +++ b/src/org/fox/ttrss/HeadlinesFragment.java @@ -332,6 +332,23 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener { }); } + ImageView published = (ImageView)v.findViewById(R.id.published); + + if (published != null) { + published.setImageResource(article.published ? R.drawable.ic_rss : R.drawable.ic_rss_bw); + + published.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + article.published = !article.published; + m_adapter.notifyDataSetChanged(); + + m_articleOps.saveArticlePublished(article); + } + }); + } + TextView te = (TextView)v.findViewById(R.id.excerpt); if (te != null) {