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
class ChronoActivity2 : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
// The ViewModelStore provides a new ViewModel or one previously created. | |
val chronometerViewModel = getViewModel(this) { | |
ChronometerViewModel(SystemClock.elapsedRealtime()) | |
} |
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
package fr.juliendenadai.player | |
import android.content.Context | |
import android.util.AttributeSet | |
import android.widget.ProgressBar | |
import com.google.android.exoplayer2.ui.TimeBar | |
/** | |
* Created by Julien DE NADAI on 28/11/2017. | |
*/ |