Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.codeest.geeknews.ui.main.activity;

import android.content.Intent;
import android.support.v4.view.ViewCompat;
import android.widget.ImageView;
import android.widget.TextView;

Expand Down Expand Up @@ -43,7 +44,7 @@ protected void initEventAndData() {
@Override
public void showContent(WelcomeBean welcomeBean) {
ImageLoader.load(this, welcomeBean.getImg(), ivWelcomeBg);
ivWelcomeBg.animate().scaleX(1.12f).scaleY(1.12f).setDuration(2000).setStartDelay(100).start();
ViewCompat.animate(ivWelcomeBg).scaleXBy(-0.05f).scaleYBy(-0.05f).setDuration(2000).setStartDelay(100).start();
tvWelcomeAuthor.setText(welcomeBean.getText());
}

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout/activity_welcome.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<ImageView
android:id="@+id/iv_welcome_bg"
android:layout_width="match_parent"
android:scaleX="1.12"
android:scaleY="1.12"
android:layout_height="match_parent" />

<TextView
Expand Down