title: Is a scollable TextSelectionMenu possible?
body: <p>It seems impossible to find any answer on my question/problem regarding af scollable TextSelectionMenu! I have searched the whole Stackoverflow and Google without any succes and I have tried various ideas out.</p>
  
  <p>I have 10 menu items in my custom TextSelectionMenu. Only 6 of them is visible, the rest is of course not, since you can't scroll to the others. Is it possible to implement a Scrollview/HorizontalListview of any sort to be able to scroll to the rest?</p>
  
  <p><a href="https://i.stack.imgur.com/Agx6j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Agx6j.png" alt="enter image description here"></a></p>
  
  <p><strong>My menu_main.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"&gt;
  
      &lt;item
          android:id="@+id/textcolor"
          android:icon="@drawable/textcolor"
          android:showAsAction="always"
          android:visible="true"
          android:title="ColorPicker"
          tools:ignore="AppCompatResource" /&gt;
  
      &lt;item
          android:id="@+id/bold"
          android:icon="@drawable/bold2"
          android:showAsAction="always"
          android:visible="true"
          android:title="Bold"
          tools:ignore="AppCompatResource" /&gt;
  
     &lt;item
          android:visible="true"
          android:id="@+id/italic"
          android:icon="@drawable/italic2"
          android:showAsAction="always"
          android:title="Italic"
          tools:ignore="AppCompatResource" /&gt;
  
     &lt;item
          android:visible="true"
          android:id="@+id/underline"
          android:icon="@drawable/underline2"
          android:showAsAction="always"
          android:title="Underline"
          tools:ignore="AppCompatResource" /&gt;
  
      &lt;item
          android:visible="true"
          android:id="@+id/stroke"
          android:icon="@drawable/strike"
          android:showAsAction="always"
          android:title="Strikethrough"
          tools:ignore="AppCompatResource" /&gt;
  
      &lt;item
          android:visible="true"
          android:id="@+id/increase"
          android:icon="@drawable/increase"
          android:showAsAction="always"
          android:title="Increase"
          tools:ignore="AppCompatResource" /&gt;
  
      &lt;item
          android:visible="true"
          android:id="@+id/decrease"
          android:icon="@drawable/decrease"
          android:showAsAction="always"
          android:title="Decrease"
          tools:ignore="AppCompatResource" /&gt;
  </code></pre>
  
  <p><strong>The CustomTextSelectionMenu class:</strong></p>
  
  <pre><code>public class CustomTextSelectionMenu extends FragmentActivity implements android.view.ActionMode.Callback {
  
      EditText editText = (EditText) findViewById(R.id.edittext);
  
      @Override 
      public boolean onCreateActionMode(android.view.ActionMode mode, Menu menu) {
          MenuInflater inflater = mode.getMenuInflater();
          inflater.inflate(R.menu.menu_main, menu);
          menu.removeItem(android.R.id.selectAll);
          menu.removeItem(android.R.id.paste);
          return true; 
      } 
  
      @Override 
      public boolean onPrepareActionMode(android.view.ActionMode mode, Menu menu) {
          return true; 
      } 
  
      @Override 
      public boolean onActionItemClicked(android.view.ActionMode mode, MenuItem item) {
          // Just a lot of switch cases inside here... 
          return true;
      }
  }
  </code></pre>