1. Download our Official Android App: Forums for Android!

Apps Menu with Infalted submenu

Discussion in 'Android Development' started by albasel, May 9, 2016.

  1. albasel

    albasel Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Apr 2, 2013

    Apr 2, 2013
    3
    0
    5
    Greeting everybody
    I am want to create a menu which include some items like below

    upload_2016-5-9_10-31-37.jpeg

    I want to develop it so when one of the menu items is clicked, a new submenu inflate down showing other items and the second click is to collapse the submenu.

    upload_2016-5-9_10-36-51.jpeg


    is there away to do it by android code????

    REGARDS
     

    Advertisement

  2. albasel

    albasel Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Apr 2, 2013

    Apr 2, 2013
    3
    0
    5
    Thanks LV426
    but how is the submenu inflate down when we click on the main menu items?
     
  3. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,870
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,870
    11,500
    1,988
    Male
    Software developer
    South West of England
    The appearance of the sub menu is handled for you by the framework. All you need to do is define the structure in the XML layout. Try the example.
     

Share This Page

Loading...