TangKe / SlideMenu

A simple SlideMenu library with two menu behind content for Android developer, just feel free to fork, this project need your contribution.
238 stars 152 forks source link

Change Secondary menu layout #4

Closed LubnaEssa closed 10 years ago

LubnaEssa commented 10 years ago

How do I change layout of secondary menu at runtime?

TangKe commented 10 years ago

you can call addView with layoutParams LayoutParams params = new LayoutParams(width, height, LayoutParams.ROLE_SECONDARY_MENU); SlideMenu.addView(view, params);

LubnaEssa commented 10 years ago

Yes. Figured it out. Thanks!

Lubna EssaWeb: EssaTechPoint.com

Date: Tue, 29 Apr 2014 23:27:50 -0700 From: notifications@github.com To: SlideMenu@noreply.github.com CC: lubna.essa@live.com Subject: Re: [SlideMenu] Change Secondary menu layout (#4)

you can call addView with layoutParams

LayoutParams params = new LayoutParams(width, height, LayoutParams.ROLE_SECONDARY_MENU);

SlideMenu.addView(view, params);

— Reply to this email directly or view it on GitHub.