SherVegas pirms 3 gadiem
vecāks
revīzija
c41a6473ba
4 mainītis faili ar 28 papildinājumiem un 11 dzēšanām
  1. +3
    -3
      app/src/main/java/com/nsgk/ruralWeb/WelcomeActivity.java
  2. +2
    -2
      app/src/main/res/anim/activity_in.xml
  3. +3
    -2
      app/src/main/res/anim/activity_out.xml
  4. +20
    -4
      app/src/main/res/layout/activity_welcome.xml

+ 3
- 3
app/src/main/java/com/nsgk/ruralWeb/WelcomeActivity.java Parādīt failu

@@ -48,11 +48,11 @@ public class WelcomeActivity extends AppCompatActivity {
.scaleXBy(1.5f)
.scaleYBy(1.5f)
.setInterpolator(new AnticipateInterpolator())
.setDuration(2000)
.setDuration(1300)
.setListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
handler.sendEmptyMessage(1);
public void onAnimationStart(Animator animation) {
handler.sendEmptyMessageDelayed(1, 1000);
}
});
}


+ 2
- 2
app/src/main/res/anim/activity_in.xml Parādīt failu

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="100">
android:duration="300">

<alpha
android:fromAlpha="0"
android:toAlpha="100" />
android:toAlpha="1" />
</set>

+ 3
- 2
app/src/main/res/anim/activity_out.xml Parādīt failu

@@ -1,7 +1,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
android:fromAlpha="100"
android:fromAlpha="1"
android:toAlpha="0" />
</set>

+ 20
- 4
app/src/main/res/layout/activity_welcome.xml Parādīt failu

@@ -6,10 +6,26 @@
android:background="@color/white"
android:theme="@style/ThemeOverlay.Nsgk_rural_web.FullscreenContainer">

<ImageView
<LinearLayout
android:layout_width="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>

Notiek ielāde…
Atcelt
Saglabāt