Discussion Forums  >  Uncategorized

Replies: 4    Views: 319

willjj85
Aspiring developer
Profile
Posts: 93
Reg: Feb 14, 2011
ireland
3,480
05/27/11 06:50 PM (14 years ago)

Menu list

is it possible to center the text in a menu list instead of it being on the left side of the Menu list Thanks in advance
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/27/11 11:27 PM (14 years ago)
Ah...good question. Not using the control panel. You could try hacking around a bit in the BT_Objects > BT_cell_menuList.m file. The text is held in two fields. One is called titleLabel and the other is called descriptionLabel. You could try changing or adding [descriptionLabel setTextAlignment:UITextAlignmentLeft]; to UITextAlignmentCenter (I don't think the titleLabel has an alignment property set so you'll need to add it. This may or may not work. The layout of each cell is a sophisticated process and I'm worried that changing this one property won't necessarily center anything. However, this is for sure the place to tinker about.
 
willjj85
Aspiring developer
Profile
Posts: 93
Reg: Feb 14, 2011
ireland
3,480
like
05/28/11 03:50 PM (14 years ago)
David my friend you are a legend this works perfect added [titleLabel setTextAlignment:UITextAlignmentCenter]; to (set title) and changed [descriptionLabel setTextAlignment:UITextAlignmentLeft]; to UITextAlignmentCenter thanks and it looks great its off to apple now so wish me luck
 
hacerapps
buzztouch Evangelist
Profile
Posts: 542
Reg: Jan 30, 2011
usa
11,170
like
05/29/11 06:23 PM (14 years ago)
good luck
 
willjj85
Aspiring developer
Profile
Posts: 93
Reg: Feb 14, 2011
ireland
3,480
like
10/07/11 03:40 PM (14 years ago)
Is it possible to center the text in android like i did in IOS had a look in menu_list_row.xml and BT_screen_menuList but can't work it out Thanks in advance
 

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.