Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 15    Views: 107

usy
Lost but trying
Profile
Posts: 8
Reg: Oct 12, 2012
Los Angeles
980
11/02/13 01:28 PM (10 years ago)

Transparent Menu List Items

Hi All - First post, but couldn't find an answer elsewhere. I have a menu list with a background image. I want to make it so each of the rows is transparent and you can see the background image, but I can't get it to work. I've set the "List Background Color" and "Row Background Color" to "clear", but it still has a solid white background and won't show through to the background image. Any help is welcome!
 
Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
like
11/02/13 02:26 PM (10 years ago)
did you set screen background color to clear?
 
usy
Lost but trying
Profile
Posts: 8
Reg: Oct 12, 2012
Los Angeles
980
like
11/02/13 02:42 PM (10 years ago)
I did set the screen background to clear, but all it does is make the area behind the background image black. It doesn't really make sense to change the screen background color. I'm trying to make the menu items transparent not the entire screen.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/02/13 02:43 PM (10 years ago)
Be a bit more specific; Android, iOS? Which version of xcode if iOS? Cheers! -- Smug
 
usy
Lost but trying
Profile
Posts: 8
Reg: Oct 12, 2012
Los Angeles
980
like
11/02/13 02:52 PM (10 years ago)
Right now I'm doing everything through the online portal, but seeing the issue on iOS 7.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/02/13 03:06 PM (10 years ago)
iOS7 is causing some minor display issues with the BT projects designed for iOS6. These will be addressed in the BT iOS update. In the meantime, you may have to manually make some adjustments to get the desired appearance. http://stackoverflow.com/questions/17081067/uitableview-transparant-background-in-ios-7 Hope that helps! Cheers! -- Smug
 
usy
Lost but trying
Profile
Posts: 8
Reg: Oct 12, 2012
Los Angeles
980
like
11/02/13 03:09 PM (10 years ago)
Thanks Smug. Where in Xcode do I need to make the adjustment?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/02/13 03:21 PM (10 years ago)
In the menu plugin code, somewhere... It was addressed in a different, but similar plugin. Perhaps it could help... http://www.buzztouch.com/forum/thread.php?tid=EC62E7B4DD2DF4129C013DB Cheers! -- Smug
 
usy
Lost but trying
Profile
Posts: 8
Reg: Oct 12, 2012
Los Angeles
980
like
11/02/13 04:32 PM (10 years ago)
Thanks. I've played around with all the Background color settings in BT_Cell_menuList with no luck. Any other ideas?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/02/13 04:46 PM (10 years ago)
I don't think it would be there. I would look more in the 'main' menu 'm' file, in the 'cellForRowAtIndexPath' method, after it configures the cell, somewhere before the 'return cell' statement. Cheers! -- Smug
 
usy
Lost but trying
Profile
Posts: 8
Reg: Oct 12, 2012
Los Angeles
980
like
11/03/13 01:54 AM (10 years ago)
Well it took a ton of digging and debugging, but I finally figured out some code that worked. It's not all that clean, and there's probably a more efficient way to do it, but this is the only way that worked. I tried editing some of the functions lower down, but nothing would work. I edited the BT_screen_menuListSimple.m file after line 346 ([cell SetBackgrounView:...]) I added this code which does the trick: if([[BT_strings getStyleValueForScreen:[self screenData] nameOfProperty:@"listRowBackgroundColor" defaultValue:@""] isEqualToString:(@"clear")] ){ [cell setBackgroundColor:[UIColor clearColor]]; }
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/03/13 02:36 AM (10 years ago)
It's clean enough for me :) Nice going! :) Cheers! -- Smug
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
11/03/13 03:58 AM (10 years ago)
I like it - this works in the circleview menu as well! Big thanks @usy
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/03/13 11:34 PM (10 years ago)
Usy -- Notice there is a BuzzDay happening in nearby San Diego. Please consider attending. -- Niraj
 
sonny
I hate code!
Profile
Posts: 10
Reg: Apr 12, 2013
Melbourne
100
like
05/01/14 06:10 AM (10 years ago)
I am having the same problem. I have tried coping that bit of code from USY and copied it after line 346 but still nothing. Please help. Thanks
 
mxwoz
Aspiring developer
Profile
Posts: 22
Reg: Dec 21, 2013
Australia
220
like
08/20/14 06:44 AM (9 years ago)
I had a similar problem , sonny. it's because the most current code requires this fix around line 335 and not 346. so far it seems to work. thanks usy!
 

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.