diff --git a/src/ch/blinkenlights/android/vanilla/CoverView.java b/src/ch/blinkenlights/android/vanilla/CoverView.java index 21fe53fa..3da98750 100644 --- a/src/ch/blinkenlights/android/vanilla/CoverView.java +++ b/src/ch/blinkenlights/android/vanilla/CoverView.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2012 Christopher Eby + * Copyright (C) 2015 Adrian Ulrich * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -210,11 +211,12 @@ public final class CoverView extends View implements Handler.Callback { int height = getHeight(); int x = 0; int scrollX = mScrollX; + double padding = 14 * sDensity; for (Bitmap bitmap : mActiveBitmaps) { if (bitmap != null && scrollX + width > x && scrollX < x + width) { int xOffset = (width - bitmap.getWidth()) / 2; - int yOffset = (int)((height - bitmap.getHeight()) / 1.66); + int yOffset = (int)(padding + (height - bitmap.getHeight()) / 2); canvas.drawBitmap(bitmap, x + xOffset - scrollX, yOffset, null); } x += width;