How to leave a button as if it were a list

0

I do not know if it is possible but I would like to make a button that when clicking, there are three more options.

Clickingcommunicationshouldpresentthreemoreoptions.Thiswayitispresentedbelow.

<?xmlversion="1.0" encoding="utf-8"?>

        

    <item
        android:id="@+id/btnPerfil"
        android:icon="@drawable/ic_account_circle_black_24dp"
        android:title="Perfil" />

    <item
        android:id="@+id/btnHomologacao"
        android:icon="@drawable/ic_card_membership_black_24dp"
        android:title="Homologação" />

    <item
        android:id="@+id/btnSettings"
        android:icon="@drawable/ic_settings_black_24dp"
        android:title="Configurações" />

<item android:title="Comunicação">
    <menu>
        <item
            android:id="@+id/btnShare"
            android:icon="@drawable/ic_menu_share"
            android:title="Compartilhar" />
        <item
            android:id="@+id/btnFeedback"
            android:icon="@drawable/ic_feedback_black_24dp"
            android:title="Feedback" />
    </menu>
</item>

    
asked by anonymous 20.08.2018 / 19:36

0 answers