title: change the font size for fragment in xml
body: <p>I have an Android code that uses a fragment to create a setting page. The fragment has a minimal xml for the fragment like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;fragment
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/setting_fragment_items"
      android:name="com.aa.bb.Fragments.SettingsFragment"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  &lt;/fragment&gt;
  </code></pre>
  
  <p>This is my question:
  Is it possible to change the font size of text for this fragment in the above xml file? I tried adding for example:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;fragment
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/setting_fragment_items"
      android:name="com.aa.bb.Fragments.SettingsFragment"
      android:textSize="12sp"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  &lt;/fragment&gt;
  </code></pre>
  
  <p>But it didn't have any effect.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Based on the comments I looked and saw two files  under <code>xml</code> folder under <code>res</code> folder"</p>
  
  <p><a href="https://i.stack.imgur.com/QE0PU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QE0PU.png" alt="enter image description here"></a></p>
  
  <p>here is the content of each:</p>
  
  <p><code>provider_paths.xml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;paths xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;external-path name="external_files" path="."/&gt;
  &lt;/paths&gt;
  </code></pre>
  
  <p><code>setting_fragment_layout.xml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;ListPreference
          android:defaultValue="1x"
          android:dialogTitle="Sizes"
          android:entries="@array/save_size"
          android:entryValues="@array/save_size"
          android:key="@string/size_id"
          android:summary="1x"
          android:title="Default Save Size" /&gt;
      &lt;EditTextPreference
          android:defaultValue="TheOne"
          android:dialogTitle="Folder Name"
          android:focusableInTouchMode="true"
          android:key="@string/folder_name"
          android:selectAllOnFocus="true"
          android:singleLine="true"
          android:summary="/Sub/TheOne"
          android:title="Folder" /&gt;
  &lt;/PreferenceScreen&gt;
  </code></pre>