How exactly with the use of Spinner implement such a drop-down menu? (So that the items do not touch the Toolbar . I looked through many examples, everywhere the drop-down list touches the Toolbar .

Or is it better to implement differently?

Menu in expanded state: enter image description here

Menu hidden: enter image description here

    1 answer 1

    I will answer myself:

    1. You need to create an adapter for the Spinner , and inherit it from the BaseAdapter - so we can impose a drop-down and fixed layout ourselves.
    2. The indent of the drop-down list from the Toolbar can be set like this: android:dropDownVerticalOffset="12.0dip" (in Spinner ).