Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 71

Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
03/27/15 05:37 AM (9 years ago)

Hide Loading Wheel iOS & Android!

Hi Guys another challenge for me. I need to hide the loading wheel within the BT framework for both iOS and Android. Does anyone know how I do this? Also I have tried to change the colour of the loading screen on launch of the app from white to another colour, for both iOS and Android and nothing seems to work. Does anyone have a solution for this as well?
 
AppOne
buzztouch Evangelist
Profile
Posts: 348
Reg: Apr 03, 2012
London
13,980
like
03/27/15 06:37 AM (9 years ago)
Hi Dragon, I seem to recall commenting out 'show progress' in various places might help - if you run a search for that in Xcode Steve
 
AppOne
buzztouch Evangelist
Profile
Posts: 348
Reg: Apr 03, 2012
London
13,980
like
03/27/15 06:55 AM (9 years ago)
[self showProgress];
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
03/27/15 08:06 AM (9 years ago)
Hi Dragon. For iOS, go to BT_Layout and find BT_loadConfigDataViewController.xib You can delete the spinner there if you want, and change the white background to whatever you want. In fact, you can design your own loading screen from there if needed. Android doesn't have a ViewController to design for the loading, it's just a popup that shows the app loading - but perhaps an Android expert can help ya there. Hope this helps. David.
 
Sherry
Lost but trying
Profile
Posts: 135
Reg: Jan 05, 2013
South Africa
11,650
like
03/27/15 08:08 AM (9 years ago)
Hi Dragon there is a previous post regarding replacing that ugly white screen while loading with something else. I think this is the correct link https://www.buzztouch.com/forum/thread.php?tid=C02498F2E8BB74B6B98EBBB otherwise do a search in the forum for white screen I used the fix on the forum sucessfully on an IOS app i developed but haven't done an android version yet.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
03/27/15 09:39 AM (9 years ago)
Thanks guys!
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
03/27/15 03:43 PM (9 years ago)
for android in the java file find this method: public void onProgressChanged (WebView view, int newProgress){ and change this: progressBar.setVisibility(ProgressBar.VISIBLE); progressText.setVisibility(View.VISIBLE); to this: progressBar.setVisibility(ProgressBar.GONE); progressText.setVisibility(View.GONE); progressText.setText(""); havent tested but seems like it would work.You use the VISIBLE AND GONE methods on any view object to make them appear or disappear
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
03/27/15 05:44 PM (9 years ago)
Nice one CMCOFFEE!
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
03/28/15 04:34 AM (9 years ago)
Hi CMCOFFEE can't seem to find the method you have mentioned above. Can you point me in the right direction, not sure which file I need to find this method in?
 

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.