Skip to content

Instantly share code, notes, and snippets.

@Hardik8184
Created December 27, 2019 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hardik8184/e18d89fdf7f451ed69966d5d2bac3e26 to your computer and use it in GitHub Desktop.
Save Hardik8184/e18d89fdf7f451ed69966d5d2bac3e26 to your computer and use it in GitHub Desktop.
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