equal
deleted
inserted
replaced
14 import android.view.View.OnClickListener; |
14 import android.view.View.OnClickListener; |
15 import android.view.animation.Animation; |
15 import android.view.animation.Animation; |
16 import android.view.animation.AnimationUtils; |
16 import android.view.animation.AnimationUtils; |
17 import android.widget.Button; |
17 import android.widget.Button; |
18 import android.widget.ImageView; |
18 import android.widget.ImageView; |
19 import android.widget.ProgressBar; |
|
20 |
19 |
21 import com.beem.project.beem.R; |
20 import com.beem.project.beem.R; |
22 import com.beem.project.beem.service.aidl.IXmppConnection; |
21 import com.beem.project.beem.service.aidl.IXmppConnection; |
23 import com.beem.project.beem.service.aidl.IXmppFacade; |
22 import com.beem.project.beem.service.aidl.IXmppFacade; |
24 |
23 |
37 private Animation mRotateAnim; |
36 private Animation mRotateAnim; |
38 private final ServiceConnection mServConn = new LoginServiceConnection(); |
37 private final ServiceConnection mServConn = new LoginServiceConnection(); |
39 private IXmppFacade mXmppFacade; |
38 private IXmppFacade mXmppFacade; |
40 private AsyncTask<IXmppFacade, Void, Boolean> mTask; |
39 private AsyncTask<IXmppFacade, Void, Boolean> mTask; |
41 private Button mCancelBt; |
40 private Button mCancelBt; |
42 private ProgressBar mProgressBar; |
|
43 |
41 |
44 /** |
42 /** |
45 * Constructor. |
43 * Constructor. |
46 */ |
44 */ |
47 public LoginAnim() { |
45 public LoginAnim() { |
53 setContentView(R.layout.login_anim); |
51 setContentView(R.layout.login_anim); |
54 mLogo = (ImageView) findViewById(R.id.loginanim_logo_anim); |
52 mLogo = (ImageView) findViewById(R.id.loginanim_logo_anim); |
55 mRotateAnim = AnimationUtils.loadAnimation(this, R.anim.rotate_and_scale); |
53 mRotateAnim = AnimationUtils.loadAnimation(this, R.anim.rotate_and_scale); |
56 mCancelBt = (Button) findViewById(R.id.loginanim_cancel_button); |
54 mCancelBt = (Button) findViewById(R.id.loginanim_cancel_button); |
57 mCancelBt.setOnClickListener(new ClickListener()); |
55 mCancelBt.setOnClickListener(new ClickListener()); |
58 mProgressBar = (ProgressBar) findViewById(R.id.loginanim_progressbar); |
|
59 mProgressBar.setIndeterminate(true); |
|
60 } |
56 } |
61 |
57 |
62 @Override |
58 @Override |
63 protected void onStart() { |
59 protected void onStart() { |
64 super.onStart(); |
60 super.onStart(); |