title: Android: How do I set the textsize for a layout?
body: <p>I am trying to set the textsize at a global level and cannot figure or find a way to do it.</p>
  
  <p>For example I have something like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
  &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
           android:id = "@+id/Table"
           android:layout_width="fill_parent"
           android:layout_height="fill_parent"
           android:shrinkColumns="*"  
           android:stretchColumns="*"&gt;
  &lt;/TableLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>The TableRows and TextViews themselves are generated dynamically depending on user input.</p>
  
  <p>The problem is I would like to set the base textSize globally based on a resource file without having to go and touch a bunch of code. Is there a way to tell the app, "hey app, use this as your base textSize for all the textViews?"</p>
  
  <p>Or phrased another way, in HTML I can set the font size at the body, div, and table levels. Is there something analogous I can do at one the layout (LinearLayout, TableLayout, ScrollView, etc.) levels?</p>