diff options
author | Andrew Dolgov <[email protected]> | 2015-07-10 23:37:18 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-07-10 23:37:18 +0300 |
commit | 7c8919cb79a2e4fd9f03ca8058ae000a60dc5537 (patch) | |
tree | 0641028c1f4b55856b0975c3f695d8a7eaa66c86 /org.fox.ttrss/src/main/java | |
parent | d9e3c77419989897c26f0156720058a54a61c2f5 (diff) |
new album icon, various headline tweaks
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java | 16 |
1 files changed, 7 insertions, 9 deletions
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 8994b46d..0d4510e4 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 @@ -658,7 +658,6 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, public TextView excerptView; public ImageView flavorImageView; public ImageView flavorVideoPlayView; - public TextView flavorImagePrompt; public TextView authorView; public TextView dateView; public CheckBox selectionBoxView; @@ -850,7 +849,6 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, holder.publishedView = (ImageView)v.findViewById(R.id.published); holder.excerptView = (TextView)v.findViewById(R.id.excerpt); holder.flavorImageView = (ImageView) v.findViewById(R.id.flavor_image); - holder.flavorImagePrompt = (TextView) v.findViewById(R.id.flavor_image_prompt); holder.flavorVideoPlayView = (ImageView) v.findViewById(R.id.flavor_video_play); holder.authorView = (TextView)v.findViewById(R.id.author); holder.dateView = (TextView) v.findViewById(R.id.date); @@ -1058,7 +1056,6 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, holder.flavorImageView.setVisibility(View.VISIBLE); holder.flavorImageView.setVisibility(View.GONE); holder.flavorVideoPlayView.setVisibility(View.GONE); - holder.flavorImagePrompt.setVisibility(View.GONE); boolean videoFound = false; @@ -1113,7 +1110,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, videoFound = true; - holder.flavorVideoPlayView.setImageResource(R.drawable.flavor_video_play); + holder.flavorVideoPlayView.setImageResource(R.drawable.ic_play_circle); ViewCompat.setTransitionName(holder.flavorImageView, "TRANSITION:ARTICLE_VIDEO_PLAYER"); @@ -1156,7 +1153,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, videoFound = true; - holder.flavorVideoPlayView.setImageResource(R.drawable.flavor_video_play_youtube); + holder.flavorVideoPlayView.setImageResource(R.drawable.ic_youtube_play); if (!thumbUri.equals(holder.flavorImageView.getTag())) { ImageAware imageAware = new ImageViewAware(holder.flavorImageView, false); @@ -1267,7 +1264,8 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, holder.flavorImageView.setVisibility(View.VISIBLE); if (article.flavorImageCount > 1) { - holder.flavorImagePrompt.setVisibility(View.VISIBLE); + holder.flavorVideoPlayView.setVisibility(View.VISIBLE); + holder.flavorVideoPlayView.setImageResource(R.drawable.ic_image_album); } maybeRepositionFlavorImage(view, bitmap); @@ -1294,7 +1292,8 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, holder.flavorImageView.setVisibility(View.VISIBLE); if (article.flavorImageCount > 1) { - holder.flavorImagePrompt.setVisibility(View.VISIBLE); + holder.flavorVideoPlayView.setVisibility(View.VISIBLE); + holder.flavorVideoPlayView.setImageResource(R.drawable.ic_image_album); } } @@ -1395,10 +1394,9 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, lp.addRule(RelativeLayout.BELOW, R.id.headline_header); + } else { lp.addRule(RelativeLayout.BELOW, 0); - lp.topMargin = 0; - //lp.removeRule(RelativeLayout.BELOW); } view.setLayoutParams(lp); |