From f326faecc2db6f65ff20d8ebf5002a2b1dfe8d96 Mon Sep 17 00:00:00 2001 From: sjtufs Date: Tue, 3 Sep 2013 16:06:36 +0800 Subject: update --- client/Piztor/res/layout/activity_login.xml | 1 + client/Piztor/src/com/macaroon/piztor/Login.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/Piztor/res/layout/activity_login.xml b/client/Piztor/res/layout/activity_login.xml index dac2d35..0d92043 100644 --- a/client/Piztor/res/layout/activity_login.xml +++ b/client/Piztor/res/layout/activity_login.xml @@ -28,6 +28,7 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:gravity="center" + android:id="@+id/login_app_name" android:text="@string/app_name" android:textSize="30dip" android:textColor="#FFFFFF"/> diff --git a/client/Piztor/src/com/macaroon/piztor/Login.java b/client/Piztor/src/com/macaroon/piztor/Login.java index a359c6a..d370b2e 100644 --- a/client/Piztor/src/com/macaroon/piztor/Login.java +++ b/client/Piztor/src/com/macaroon/piztor/Login.java @@ -13,6 +13,7 @@ import android.view.animation.AlphaAnimation; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; +import android.widget.TextView; import android.widget.Toast; public class Login extends PiztorAct { @@ -90,12 +91,12 @@ public class Login extends PiztorAct { id = "login"; super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); - ImageView imageView = (ImageView) findViewById(R.id.login_img); + TextView textView = (TextView) findViewById(R.id.login_app_name); AlphaAnimation alphaUp = new AlphaAnimation(0.0f, 1.0f); alphaUp.setDuration(2000); alphaUp.setStartOffset(500); alphaUp.setFillAfter(true); - imageView.startAnimation(alphaUp); + textView.startAnimation(alphaUp); } @Override -- cgit v1.2.3-70-g09d2