Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
07/03/12 08:36 PM (13 years ago)

Modify Android text size in 1.5

One of the items that doesn't seem to work for Android in 1.5 is the text size setting. The app project I am working on is for both Android and iOS, and the text size does work in iOS. As a workaround, is it possible to change the text size directly in Eclipse...maybe in the menu_list_row.xml or the screen.menulist.xml files? If so, how would I do that? Thank you!
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
07/04/12 12:04 AM (13 years ago)
text size where?
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
07/04/12 07:01 AM (13 years ago)
On the menu screens. In iOS, the size on the menu screens varies based on the Buzztouch setting. On Android, it is always exactly the same size....looks like a 14 or 16 point. If I could make it one size smaller, the text would fit on the screens better. It would be better yet if I could set each screen, but would be happy to just change the default setting. Thanks!
 
nishad
Lost but trying
Profile
Posts: 61
Reg: May 06, 2012
cochin
610
like
07/05/12 03:28 AM (13 years ago)
i think ypu can change it in bt_menu list..i have done that
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
07/05/12 04:42 AM (13 years ago)
@SusanMetoxen Yes its possible to change the size of text in android. The default text size used by buzztouch is 22 you can change the same as per your liking. I use 18 myself. Assuming you are using bt version 2.0, open the BT_screen_menuListSimple.java file and directly go to the line number 141 to 151 which looks like this: //large devices... listRowHeight = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listRowHeightLargeDevice", "50")); listTitleHeight = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listTitleHeightLargeDevice", "30")); listTitleFontSize = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listTitleFontSizeLargeDevice", "22")); }else{ //small devices... listRowHeight = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listRowHeightSmallDevice", "50")); listTitleHeight = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listTitleHeightSmallDevice", "50")); listTitleFontSize = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listTitleFontSizeSmallDevice", "22")); Now if you want to change the text size for the large device then make changes in line number 144 and for small device its line number 151. It should look like this after making changes with the text size of 18: Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listTitleFontSizeSmallDevice", "18")); Hope this sorts out your problem.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
07/05/12 05:36 AM (13 years ago)
Sorry i just realised you asked it for bt v 1.5. The same can be done modifying the text size number on line 192 for large screen and 209 for small screen.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
07/05/12 08:43 AM (13 years ago)
@Sandeep, I owe you a huge debt of gratitude. This change will make my Android version so much better! Thank you so much!
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
07/05/12 10:29 AM (13 years ago)
@SusanMetoxen- I am glad that i could be of some assistance to you. Yes i would like to see your app when its complete.
 

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.