title: Height of screen without status bar, actionBar and tabs
body: <p>I have a ListView that I want each row to fill a third of the available screen. I have the status bar visible, and then an actionBar with slidingTabs beneath. I'm doing the current calculation like this:</p>
  
  <pre><code>height = context.getResources().getDisplayMetrics().heightPixels;
  if (context.getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true))
      {
          actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data,context.getResources().getDisplayMetrics());
          Log.d("actionBarHeigth", actionBarHeight.toString());
      }
  </code></pre>
  
  <p>And setting the views height like this:</p>
  
  <pre><code>holder.imageView.getLayoutParams().height = (height - actionBarHeight*2) / 3;
  </code></pre>
  
  <p>But the rows of the list are slightly too big, and i guess it's the status bar causing it. How can I add the height of it to my calculations?</p>