By default, View will take up the entire available space when laid out with WRAP_CONTENT. You need to either explicitly specify the view size in your WindowManager.LayoutParams, override View.onMeasure, or (ideally) extend ImageView rather than View.