Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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