I am working on a wallpaper application in which I display an image with ImageView as a splash screen.
Now I want to mark the ImageView image as a splash screen.
This is my screensaver code:
import java.util.ArrayList; import java.util.List; import java.util.Random; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.annotation.SuppressLint; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.Window; import android.widget.ImageView; import android.widget.Toast; import com.android.volley.Request.Method; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.JsonObjectRequest; import com.usd.amazingwallpapershd.app.AppConst; import com.usd.amazingwallpapershd.app.AppController; import com.usd.amazingwallpapershd.picasa.model.Category; @SuppressLint("NewApi") public class SplashActivity extends Activity { private static final String TAG = SplashActivity.class.getSimpleName(); private static final String TAG_FEED = "feed", TAG_ENTRY = "entry", TAG_GPHOTO_ID = "gphoto$id", TAG_T = "$t", TAG_ALBUM_TITLE = "title"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_ACTION_BAR); getActionBar().hide(); setContentView(R.layout.activity_splash);
, and this is the BlinkActivity code:
import android.app.Activity; import android.os.Bundle; import android.view.animation.Animation; import android.view.animation.Animation.AnimationListener; import android.view.animation.AnimationUtils; import android.widget.ImageView; public class BlinkActivity extends Activity implements AnimationListener { ImageView img;
But I don’t understand how can I implement both together to make it work?
android android-imageview android-animation
question
source share