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: 5    Views: 228
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
11/30/12 01:03 PM (11 years ago)

Header Image: Instructions to Change Size or Eliminate

If you are comfortable with the code, you can modify the height of the image, which allows you to change the aspect ratio of the images you use with the plugin. You can also eliminate the image is you are interested in using only the row icons. Here is how to do it.

In Xcode go to the WB_screen_menuImage, then go to line 86 you will see the iPad image height and line 93 the iPhone. If you change the image height to zero, there will be no image. In Xcode, one point = 2 pixels.

In Eclipse, go to res -> layout ->screen_wb_menuImage.xml. In line 13 you will see the android:layout_height. You can change the number to 0dip if you want no header image, or a different number if you want something other than the default.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
12/12/12 07:19 AM (11 years ago)
Awesome!

I needed that for Android :)

thanks
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
01/01/13 10:42 PM (11 years ago)
Hello Susan,

Rather than modifying the code, I prefer to have an Option field within the Plugin's Control Panel.

Two new fields in the PHP code should suffice, HeaderWidth and HeaderHeight.

If both fields are zero, then the image should not be displayed.

The fields would have the default of 1536 x 720 pixels as a pre-filled value.

Your thoughts?
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
01/02/13 03:28 PM (11 years ago)
Hi, @ MacBoy. It is on my list to give some options. It isn't quite that easy, because of the pixels vs. points, and with Android we use dp.

My thought is to have an option for no image, and then a couple of preset sizes people could choose from.

In addition, I have a release almost ready, but it will not have that in it yet. The next release just improves the Android performance.

 
i4all
Apple Fan
Profile
Posts: 6
Reg: Dec 09, 2012
Kuala Lumpur
5,410
01/04/13 01:14 AM (11 years ago)
Hi Susan, first of all, the plugin is awesome. As suggested by MacBoy, maybe a simple checkbox for image header visibly might make it more flexible. With the checkbox unchecked (header image not visible), automatically it can replace the simple menu item but with the row icon.

Anyway, it is already a great plugin

 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
04/12/13 01:18 PM (11 years ago)
I have done this and worked a treat. I need the row icons which simple menu doesnt provide. Vry simple to do and I see no need to add this to the control panel.
 

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.