title: Change Popup Menu Items font size dynamatically Android
body: <p>I am creating an android app which has a popup menu and it is opened when a button is clicked and I want to increase the text size of menu items in that popup menu dynamically(based on the users input).</p>
  
  <p>Can anyone help on how do that programatically?</p>
  
  <p><strong>In my class:</strong></p>
  
  <pre><code>menuButton.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              //Creating the instance of PopupMenu
              PopupMenu popup = new PopupMenu(getActivity(), menuButton);
  
              //Inflating the Popup using xml file
              popup.getMenuInflater().inflate(R.menu.popup_menu, popup.getMenu());
              //registering popup with OnMenuItemClickListener
              popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
                  @Override
                  public boolean onMenuItemClick(MenuItem item) {
                          switch (item.getItemId()) {
                              case R.id.one:
                                   // Some Stuffs
                              break;
                              case R.id.two:
                                  // Some Stuffs
                              break;
                              default:
                              break;
                      }
                      return true;
                  }
              });
  </code></pre>
  
  <p><strong>And my xml file is ::</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/fav_menu"&gt;
  &lt;group android:id="@+id/first_section" android:checkableBehavior="none" &gt;
  &lt;item
      android:id="@+id/one"
      android:title="@string/sort"
      android:visible="true"
  
      /&gt;
  &lt;/group&gt;
  &lt;group android:id="@+id/first_two" android:checkableBehavior="none"&gt;
  &lt;item
      android:id="@+id/two"
      android:title="@string/sort"
      android:visible="true"
      /&gt;
  &lt;/group&gt;
  &lt;/menu&gt;
  </code></pre>