Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 72

HelperDev
Lost but trying
Profile
Posts: 49
Reg: Nov 16, 2012
New York
3,090
01/13/14 11:43 AM (11 years ago)

Menu with Image: How to make icon images bigger?

I would like the images to be greater than 50x50px. How can I increase the size of the icon images in each row?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/13/14 04:17 PM (11 years ago)
Whether for iOS or Android, you'll have to edit the code. In both, you'll probably also want to increase the size of the 'cell' to accomodate a larger icon. in iOS check out the class "WB_cell_menuList.m" and check out the 'configureCell' method. in Android, you'll have to work with both the wb_menu_row.xml file It'll take some playing around with to make it look nice. Good Luck! Cheers! -- Smug
 
shenry
Aspiring developer
Profile
Posts: 469
Reg: Jan 10, 2012
Orange County, ...
13,390
like
01/13/14 06:46 PM (11 years ago)
Hi Smug, Do you think that's what I need to do to fix the description height and delete the rounded corners when I'm loading the menu items from an external script? https://www.dropbox.com/s/488l2khzi19e65j/screens2.jpg
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/13/14 07:16 PM (11 years ago)
@Shenry: Your 'description' text looks like it wants up to three lines to display the complete text. That's a lot of lines for the font size you're using; I would suggest reducing the font size of your description, and take a look to see if the result will be satisfactory for you. That would be the 'easiest' solution. If it's not satisfactory, then yes, you'll need to adjust the size of the menu cell, as well as resize the text fields so they don't 'run into' each other… That would also be done in the WB_cell_menuList.m file for iOS, wb_menu_row.xml for Android. Cheers! -- Smug Do you work with Android? I'm putting the finishing touches on my 'Smug Location Menu' plugin for iOS and Android. It may not 'fix' your issue, but I'm adding a few sorting and searching capabilities into a distance display style menu… It takes the device location, and calculates the distance to the destination (with coordinates in your childItem json) Sample Screenshot: https://dl.dropboxusercontent.com/u/115208762/slm_android.png
 

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.