title: Setting textSize programmatically
body: <pre><code>textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, getResources().getDimension(R.dimen.result_font));
  </code></pre>
  
  <p>The following code works, but the <code>R.dimen.result_font</code> is taken as a much bigger value than it really is. Its maybe about 18sp-22sp or 24sp according to the screen size ... But the size set here is at least about 50sp. Can someone please recommend something ?</p>