Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 10    Views: 91

Theien
Aspiring developer
Profile
Posts: 33
Reg: Dec 31, 2012
Colorado Spring...
9,780
01/04/14 05:12 PM (11 years ago)

Menu with Image Icons

I'm working on an android app, and I'm having a weird issue with icons. On the screen I'm working on right now, I have 5 rows, each with a icon, 100x100 png-8 ~8k each. When I first load the screen, and I've tested this both the icons in res/drawable and on dropbox, the first icon always becomes a duplicate of one of the other 4 icons. If I back out and go back it loads just fine, so it seems to be caching correctly. This happens both on my phone and in the simulator. I've been able to duplicate it by replacing one of the other 4 icons, the first icon always becomes the one I replaced after refreshing data and loading the screen. I thought it might of had to do with my main screen being menu buttons that loaded 15 images, but then I replaced it with a simple menu that linked to menu with image and I'm getting the same problem when first loading the icons. As a workaround for right now, I've put the other 4 images into res/drawable, and I'm loading the first image from dropbox. It flashes the other 4 images then finally loads the right one.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/04/14 06:51 PM (11 years ago)
I never faced such a behaviour of icons with this plugin but i have not tested the new version of this plugin. Which core are you using for your project?
 
Theien
Aspiring developer
Profile
Posts: 33
Reg: Dec 31, 2012
Colorado Spring...
9,780
like
01/04/14 07:01 PM (11 years ago)
I'm using core 3.0
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/04/14 07:04 PM (11 years ago)
Try deleting the app from your device/emulator and after refreshing and cleaning the project install the app and see if it starts working normally.
 
Theien
Aspiring developer
Profile
Posts: 33
Reg: Dec 31, 2012
Colorado Spring...
9,780
like
01/04/14 07:38 PM (11 years ago)
Did that, and still exhibits the same behavior.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/04/14 07:45 PM (11 years ago)
Not sure whats causing this problem. I always refer to the icons which are in the project file itself never used the url and it works fine for me. But stick to the workaround if that works for you now.
 
Theien
Aspiring developer
Profile
Posts: 33
Reg: Dec 31, 2012
Colorado Spring...
9,780
like
01/04/14 08:18 PM (11 years ago)
I have the same problem even if I don't use a URL. That first row icon always shows up as a different icon the first time I load all the images. The workaround isn't really a workaround, it is just loading the first row icon last, so it displays all the other icons being loaded, then loads the correct icon from the URL. I'm pretty sure this is either a bug in menu with image, or a bug in BT3 Core image loader, or a combination of both. It's not major, it just slightly degrades the user experience with the interface.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/05/14 10:04 AM (11 years ago)
This is the button grid plugin or menu with image plugin?
 
Theien
Aspiring developer
Profile
Posts: 33
Reg: Dec 31, 2012
Colorado Spring...
9,780
like
01/05/14 03:44 PM (11 years ago)
Menu with image plugin. Button grid works great now that I'm using Tinypng.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/05/14 06:29 PM (11 years ago)
Was this working in BuzzTouch v2? If yes, then report it as a problem for BuzzTouch v3 please at https://www.buzztouch.com/forum/thread.php?tid=D338F2E753F112233012AD7
 
Theien
Aspiring developer
Profile
Posts: 33
Reg: Dec 31, 2012
Colorado Spring...
9,780
like
01/05/14 06:38 PM (11 years ago)
Thank you, that thread disappeared before christmas and I completely forgot about it.
 

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.