Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a sidebar in android

I developing a android application which required a sidebar as like as samsung sidebar. The sidebar contains multiple controls respectively.

For reference: http://www.thinkdigit.com/FCKeditor/uploads/samsung-corby-s3650-2.jpg

like image 237
Ashraf Avatar asked Feb 22 '23 03:02

Ashraf


2 Answers

Please take a look at the Sliding Drawer concept in android. You can make use of it to develop the sidebar.

Sliding Drawer.

How to make an Android SlidingDrawer slide out from the left?

http://androidblogger.blogspot.com/2009/01/sliding-drawer-again.html

like image 175
Hussain Avatar answered Mar 04 '23 08:03

Hussain


Seems that the Sliding Drawer is now deprecated since API Level 17.

The current way to do this seems to be using Drawer Layout to create a Navigation Drawer, which can be used by interacting with the Top Navigation button (the hamburger) or well by swiping from the left of the screen.

If you want you can also check this and this questions for more details and information.

like image 44
DarkCygnus Avatar answered Mar 04 '23 08:03

DarkCygnus