I have an ImageView with height and width as 360dp and 360dp.
But in my Java class if I try to get the height and width, it gives different values -
ImageView graph = (ImageView)findViewById(R.id.graph);
float he = graph.getMeasuredHeight();
float wi = graph.getMeasuredWidth();
Log.d("height of view", ""+he);
Log.d("width of view", ""+wi);
the output is
height of view: 540
width of view: 480
What is the reason ? How should i get equal correct values ?
I'm using a Relative Layout.