Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 98

Louie
Code is Art
Profile
Posts: 40
Reg: Dec 31, 2012
Toronto
400
06/15/15 09:08 AM (9 years ago)

Android Studio Blank Screen - Menu with Image plugin

I made the switch from Eclipse to Android Studio and trying to compile my tabbed menu app. But only the app name and the Icon is showing on top, the rest is blank. No rows or icons. Tested on both Note 4 and emulator. Any solutions to this bug yet?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/15/15 12:52 PM (9 years ago)
Have you tried downloading a recent copy of the project files? If you're using an old version, that could be an issue. Mark
 
Louie
Code is Art
Profile
Posts: 40
Reg: Dec 31, 2012
Toronto
400
like
06/15/15 02:10 PM (9 years ago)
Yes it's a fresh copy, just downloaded today. Although I am not 100% sure, but I think the problem might be with the new android lollipop system webview since the plugin declares it's style in an XML file.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/15/15 02:12 PM (9 years ago)
It's possible that's the problem. I'll see if I can repro the error tonight...if I have time. Mark
 
Louie
Code is Art
Profile
Posts: 40
Reg: Dec 31, 2012
Toronto
400
like
06/18/15 10:26 AM (9 years ago)
I was able to solve the problem by opening the project in Eclipse and then importing it to Android Studio. Now it's working. The reason I was trying to reccomile it was that the row's text was hiding behind the row's icon in android lollipop. So after importing it to android studio, I added the followings to "WB_screen_menuImage.java": 59: import android.util.DisplayMetrics; 687: DisplayMetrics metrics = getResources().getDisplayMetrics(); 688: lp.leftMargin = (int) (5 * metrics.density); 697: DisplayMetrics metrics = getResources().getDisplayMetrics(); 698: lp.leftMargin = (int) (55 * metrics.density); louie
 

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.