Plugin Discussions

Discussions are between the Plugin Developer and app owners. Only app owners that have installed the plugin can participate in this discussion. We enforce this to help Plugin Developers focus their time on helping app owners that support the development efforts.

pointerBack to discussions for "Menu with Image"
Replies: 2    Views: 237
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
10/26/12 03:03 PM (11 years ago)

Change Icon Image Size

Someone wanted to know if it was possible to change the icon image size. It is possible, but you need to be comfortable making changes in the code. This is how you do it:

Xcode:
Go to the Plugins->menu_with_image->WB_cell_menuList. The icon size is set in two places--around row 227 and 236. The row looks like this:
iconSize = [[BT_strings getStyleValueForScreen:theParentMenuScreenData:@"listIconSizeLargeDevice":@"50"] intValue];
Change the value to the size icon you would like.

Eclipse:
1. Go to res ->layout ->wb_menu_row.xml. This is where you will change the row image size. Find these rows, around line 39
android:id="@+id/iconView"
android:layout_height="50dip"
android:layout_width="50dip"
You can change the icons to a different height and width here.

2. Then you need to change the left margin size. Go to src ->WB_screen_menuImage.java. Around line 706 you will see "lp. leftMargin = 75; " Change 75 to a proportionately larger number to accommodate your larger image.

Let me know if you have any questions. Thanks!
 
Iaxia
I hate code!
Profile
Posts: 108
Reg: Feb 04, 2012
Toronto
7,080
11/16/12 10:41 PM (11 years ago)
Awesome, thanks.
 
Nelson
Aspiring developer
Profile
Posts: 57
Reg: Jun 06, 2013
Viseu
2,220
07/12/13 10:43 AM (10 years ago)
Hello Susan is it possible to change the icon sise in xcode for heigth and width like wee do on eclipse. I just see the int velue @50.

Nelson
 

You cannot participate in this discussion yet.

  1. You must be logged in to participate
  2. You must have a screen name setup in your profile
  3. You must have installed the plugin in your control panel.