Created
December 27, 2019 07:29
-
-
Save Hardik8184/e18d89fdf7f451ed69966d5d2bac3e26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.Bundle | |
import android.util.Log | |
import android.view.View | |
import kotlinx.android.synthetic.main.activity_main.mShimmerViewContainer | |
class MainActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
} | |
public override fun onResume() { | |
super.onResume() | |
mShimmerViewContainer!!.startShimmerAnimation() | |
} | |
public override fun onPause() { | |
mShimmerViewContainer!!.stopShimmerAnimation() | |
super.onPause() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment