From a0118d68327005762268ae30465571db6b51060b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 10 Jul 2015 19:34:21 +0300 Subject: some initial stuff --- .../main/java/org/fox/ttrss/HeadlinesFragment.java | 3 + .../src/main/res/layout/headlines_row.xml | 157 +++++++++++---------- .../src/main/res/layout/headlines_row_unread.xml | 157 +++++++++++---------- 3 files changed, 167 insertions(+), 150 deletions(-) (limited to 'org.fox.ttrss') diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java index d4a32191..cbb95fa0 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java @@ -667,6 +667,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, public View headlineFooter; public ImageView textImage; public ImageView textChecked; + public View headlineHeader; } private class ArticleListAdapter extends ArrayAdapter
{ @@ -859,6 +860,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, holder.headlineFooter = v.findViewById(R.id.headline_footer); holder.textImage = (ImageView) v.findViewById(R.id.text_image); holder.textChecked = (ImageView) v.findViewById(R.id.text_checked); + holder.headlineHeader = v.findViewById(R.id.headline_header); v.setTag(holder); @@ -1283,6 +1285,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, } else { holder.flavorImageView.setVisibility(View.VISIBLE); + } } diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row.xml b/org.fox.ttrss/src/main/res/layout/headlines_row.xml index bfb4df15..58d2051c 100755 --- a/org.fox.ttrss/src/main/res/layout/headlines_row.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row.xml @@ -1,69 +1,19 @@ - + tools:ignore="HardcodedText"> - - - - - - - - - - - - @@ -72,23 +22,24 @@ android:id="@+id/flavorImageHolder" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_span="2" - android:paddingTop="8dp"> + android:layout_span="2"> + android:layout_gravity="center" /> + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@android:color/primary_text_dark" + android:visibility="gone" /> + + + + + + + + + + + + + @@ -123,15 +129,14 @@ 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: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" /> + android:paddingBottom="8dp" + android:paddingLeft="8dp"> 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,71 +1,20 @@ - + tools:ignore="HardcodedText"> - - - - - - - - - - - - @@ -74,14 +23,13 @@ android:id="@+id/flavorImageHolder" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingTop="8dp" android:layout_span="2"> + android:layout_gravity="center" /> + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@android:color/primary_text_dark" + android:visibility="gone" /> + + + + + + + + + + + + + @@ -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" /> + android:paddingBottom="8dp" + android:paddingLeft="8dp"> -- cgit v1.2.3