summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/AlbumLabelMaker.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/ui/AlbumLabelMaker.java')
-rw-r--r--src/com/android/gallery3d/ui/AlbumLabelMaker.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/com/android/gallery3d/ui/AlbumLabelMaker.java b/src/com/android/gallery3d/ui/AlbumLabelMaker.java
index a689e6990..4a1d545b7 100644
--- a/src/com/android/gallery3d/ui/AlbumLabelMaker.java
+++ b/src/com/android/gallery3d/ui/AlbumLabelMaker.java
@@ -181,17 +181,18 @@ public class AlbumLabelMaker {
// draw title
if (jc.isCancelled()) return null;
int x = s.leftMargin + s.iconSize;
- int y = s.titleOffset;
- drawText(canvas, x, y, title, labelWidth - s.leftMargin, mTitlePaint);
+ // TODO: is the offset relevant in new reskin?
+ // int y = s.titleOffset;
+ int y = (s.labelBackgroundHeight - s.titleFontSize) / 2;
+ drawText(canvas, x, y, title, labelWidth - s.leftMargin - x -
+ s.titleRightMargin, mTitlePaint);
- // TODO: draw the count once visual designers finalize where
- /*
+ // draw count
if (jc.isCancelled()) return null;
- if (icon != null) x = s.iconSize;
- y += s.titleFontSize + s.countOffset;
+ x = labelWidth - s.titleRightMargin;
+ y = (s.labelBackgroundHeight - s.countFontSize) / 2;
drawText(canvas, x, y, count,
- labelWidth - s.leftMargin - s.iconSize, mCountPaint);
- */
+ labelWidth - x , mCountPaint);
// draw the icon
if (icon != null) {