title: Is it possible to dynamically set Android button text size in XML?
body: <p>I'm working on an app and I have a series of buttons on the main menu that I want to all have the same text size.  Is it possible for me to specify that in a properties file?</p>
  
  <p>Here is my current XML file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:orientation="horizontal"
               android:layout_width="fill_parent"
               android:layout_height="fill_parent"&gt;
      &lt;TableRow
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"&gt;
          &lt;Button
                  android:id="@+id/sensors_available"
                  android:text="@string/sensors_available"
                  android:textSize="12sp"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"/&gt;
      &lt;/TableRow&gt;
      &lt;TableRow
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"&gt;
          &lt;Button
                  android:id="@+id/b_start_hm"
                  android:text="@string/hm_start_service"
                  android:textSize="12sp"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"/&gt;
          &lt;Button
                  android:id="@+id/b_stop_hm_service"
                  android:text="@string/hm_stop_service"
                  android:textSize="12sp"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"/&gt;
      &lt;/TableRow&gt;
      &lt;TableRow
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"&gt;
          &lt;Button
                  android:id="@+id/b_start_hot_video"
                  android:text="@string/video_service_start"
                  android:onClick="startHotVideoService"
                  android:textSize="12sp"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"/&gt;
          &lt;Button
                  android:id="@+id/b_hv_stop_service"
                  android:text="@string/hv_stop_service"
                  android:textSize="12sp"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"/&gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  </code></pre>
  
  <p>Is it possible for me to replace all the <code>12sp</code> with something like <code>@string\custom_text_size</code> and then define that in the string.xml file?  When I tried this, I got a fatal exception when I started my app.</p>