| @@ -48,11 +48,11 @@ public class WelcomeActivity extends AppCompatActivity { | |||||
| .scaleXBy(1.5f) | .scaleXBy(1.5f) | ||||
| .scaleYBy(1.5f) | .scaleYBy(1.5f) | ||||
| .setInterpolator(new AnticipateInterpolator()) | .setInterpolator(new AnticipateInterpolator()) | ||||
| .setDuration(2000) | |||||
| .setDuration(1300) | |||||
| .setListener(new AnimatorListenerAdapter() { | .setListener(new AnimatorListenerAdapter() { | ||||
| @Override | @Override | ||||
| public void onAnimationEnd(Animator animation) { | |||||
| handler.sendEmptyMessage(1); | |||||
| public void onAnimationStart(Animator animation) { | |||||
| handler.sendEmptyMessageDelayed(1, 1000); | |||||
| } | } | ||||
| }); | }); | ||||
| } | } | ||||
| @@ -1,8 +1,8 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android" | <set xmlns:android="http://schemas.android.com/apk/res/android" | ||||
| android:duration="100"> | |||||
| android:duration="300"> | |||||
| <alpha | <alpha | ||||
| android:fromAlpha="0" | android:fromAlpha="0" | ||||
| android:toAlpha="100" /> | |||||
| android:toAlpha="1" /> | |||||
| </set> | </set> | ||||
| @@ -1,7 +1,8 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | |||||
| <set xmlns:android="http://schemas.android.com/apk/res/android" | |||||
| android:duration="300"> | |||||
| <alpha | <alpha | ||||
| android:fromAlpha="100" | |||||
| android:fromAlpha="1" | |||||
| android:toAlpha="0" /> | android:toAlpha="0" /> | ||||
| </set> | </set> | ||||
| @@ -6,10 +6,26 @@ | |||||
| android:background="@color/white" | android:background="@color/white" | ||||
| android:theme="@style/ThemeOverlay.Nsgk_rural_web.FullscreenContainer"> | android:theme="@style/ThemeOverlay.Nsgk_rural_web.FullscreenContainer"> | ||||
| <ImageView | |||||
| <LinearLayout | |||||
| android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:layout_centerInParent="true" | |||||
| android:id="@+id/imageView" | |||||
| android:src="@mipmap/ic_launcher" /> | |||||
| android:orientation="vertical" | |||||
| android:layout_centerInParent="true"> | |||||
| <ImageView | |||||
| android:layout_width="wrap_content" | |||||
| android:layout_height="wrap_content" | |||||
| android:id="@+id/imageView" | |||||
| android:src="@mipmap/ic_launcher" /> | |||||
| <TextView | |||||
| android:layout_width="match_parent" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center" | |||||
| android:gravity="center" | |||||
| android:textStyle="bold" | |||||
| android:text="农燊高科" /> | |||||
| </LinearLayout> | |||||
| </RelativeLayout> | </RelativeLayout> | ||||