Android imageview height 0 solution
Here is solution to get height of Imageview in Android: 12345678910111213final ImageView mapImageView = (ImageView) findViewById(R.id.singaporeMap); ViewTreeObserver vto = mapImageView.getViewTreeObserver(); vto.addOnGlobalLayoutListener(new OnGlobalLayoutListener() { @Override public void onGlobalLayout() { …