Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 82

juansezoh
Code is Art
Profile
Posts: 25
Reg: Nov 01, 2012
Medellín
2,200
02/18/13 09:08 PM (12 years ago)

Menu button center

I would like to share this small change I made ​​to center the buttons in the menu. In my case is for two buttons when portrait and three when landscape (designer tastes). But you can also add the code after considering the number of buttons minimum adequate considering the padding. Take this opportunity to thank the community and to David for the great contribution this platform and say I had to study hard code in Android and IOS to modify the menus, and not for the order that code has not been possible. I hope you serve something. line 328 buttonPadding = (deviceHeight-(3*buttonSize))/4; if(UIInterfaceOrientationIsPortrait(self.interfaceOrientation)) buttonPadding = (deviceWidth-(2*buttonSize))/3;
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
02/18/13 10:35 PM (12 years ago)
Thank you! I can use this.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
02/19/13 02:01 AM (12 years ago)
great info. thanks
 
Alessandro
Aspiring developer
Profile
Posts: 68
Reg: Nov 13, 2012
São Paulo
12,180
like
02/19/13 08:09 AM (12 years ago)
Nice! I was trying to do that but didn't find how to. I will put in the next version of my app! Thanks for sharing!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.