mOffset is now retrieved with resources.getDimensionPixelOffset() instead of resources.getDimensionPixelSize()