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
private class AudioOnlyRenderersFactory(private val context: Context) : RenderersFactory { | |
override fun createRenderers( | |
eventHandler: Handler, | |
videoRendererEventListener: VideoRendererEventListener, | |
audioRendererEventListener: AudioRendererEventListener, | |
textRendererOutput: TextOutput, | |
metadataRendererOutput: MetadataOutput | |
): Array<Renderer> { | |
return arrayOf( |
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 MySlideActivity: AppCompatActivity(){ | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setupWindowSlideTransitions(window, resources) | |
} | |
override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) { | |
super.onCreate(savedInstanceState, persistentState) | |
setupWindowSlideTransitions(window, resources) |
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.content.Context | |
import android.os.Build | |
import com.bumptech.glide.Glide | |
import com.bumptech.glide.Registry | |
import com.bumptech.glide.annotation.GlideModule | |
import com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader | |
import com.bumptech.glide.load.model.GlideUrl | |
import com.bumptech.glide.module.AppGlideModule | |
import okhttp3.ConnectionSpec | |
import okhttp3.OkHttpClient |
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.support.design.widget.FloatingActionButton | |
import android.view.View | |
import android.view.ViewTreeObserver | |
fun FloatingActionButton.showWithAnimation(delay: Int = 200) { | |
visibility = View.INVISIBLE | |
scaleX = 0.0f | |
scaleY = 0.0f | |
alpha = 0.0f |