One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
public class PlayPauseView extends AppCompatImageView { | |
public static final int STATE_PLAY = 1; | |
public static final int STATE_PAUSE = 2; | |
private AnimatedVectorDrawableCompat mPlayToPauseAnim, mPauseToPlay; | |
private Animation mFadeOutAnim, mFadeInAnim; | |
public PlayPauseView(Context context) { | |
super(context); | |
Init(context); |
import android.content.Context | |
import android.net.ConnectivityManager | |
import android.net.Network | |
import android.net.NetworkCapabilities | |
import android.net.NetworkRequest | |
import android.os.Bundle | |
import android.widget.TextView | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.lifecycle.ViewModel | |
import androidx.lifecycle.ViewModelProvider |
package why.android.dont.have.those | |
import android.graphics.Bitmap | |
import android.graphics.Canvas | |
import android.graphics.Color | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.annotation.ColorRes | |
import androidx.core.content.ContextCompat |