Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Horizontal Menus

I want to create horizontal menu in android. Android supports expandable list view that expands vertically but i want to expand menus horizontally. Please refer image

enter image description here

Description:

In the images Menu1,menu2,menu3 are main menus and s1,s2,s3 are sub items of menu 1. If i clicked on main menu its sub items must be expand.

like image 877
Swapnil Deshmukh Avatar asked Oct 06 '22 09:10

Swapnil Deshmukh


1 Answers

You can put submenus in an LinearLayout and add play with View.VISIBLE/View.GONE in onClickListener

like image 116
Korniltsev Anatoly Avatar answered Oct 10 '22 02:10

Korniltsev Anatoly