Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Discussion > Android Applications

Android Applications All the information you could ever want about Android Applications. Learn about apps and get help with them... all here! New apps can be found and announced in the Applications Announcements forum linked below.



Reply
 
LinkBack Thread Tools
Old February 11th, 2012, 12:57 PM   #1 (permalink)
New Member
 
Join Date: Aug 2011
Posts: 8
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to make loading layout 2sec?

Hi, i want to create loading layout and i don't know how...

private View controlView;
private View loadingView;


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_IN FLATER_SERVICE);
controlView = inflater.inflate(R.layout.main, null);
loadingView = inflater.inflate(R.layout.loading, null);

setContentView(loadingView);

try {
Thread.sleep(2000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

setContentView(controlView);
}

that doesn't work
tnx

luka1995 is offline  
Reply With Quote
Sponsors
Reply

Bookmarks


Go Back   Android Forums > Android Discussion > Android Applications User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 02:08 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo