this.viewPager.animatePeekingEffect(offset = 10, delay = 250)
fun ViewPager.animatePeekingEffect(offset: Int, delay: Int) {
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.fragment.app.DialogFragment | |
import androidx.fragment.app.Fragment | |
import androidx.lifecycle.DefaultLifecycleObserver | |
import androidx.lifecycle.Lifecycle | |
import androidx.lifecycle.LifecycleOwner | |
import androidx.viewbinding.ViewBinding |
def reportsDirectory = "$buildDir/artifacts/composer-output" | |
def embedScreenshotsTask = task('embedScreenshots', group: 'reporting') { | |
dependsOn { | |
fetchScreenshotsTask | |
} | |
doFirst { | |
println new File(reportsDirectory, 'screenshots/failures') |
import java.io.IOException; | |
import java.lang.annotation.Annotation; | |
import java.lang.reflect.Type; | |
import io.reactivex.Completable; | |
import io.reactivex.Observable; | |
import io.reactivex.ObservableSource; | |
import io.reactivex.Single; | |
import io.reactivex.SingleSource; | |
import io.reactivex.annotations.NonNull; |
There is no way to store an empty object/array/null value. | |
There are also no actual arrays. Array values get stored as objects with integer keys. | |
(If all keys are integers, it will be returned as an array.) | |
Basically, it's one giant tree of hashes with string keys. | |
Simply write a value to any location, and the intermediary locations will automatically come into existance. | |
── Classes ── | |
DataSnapshot : Container for a subtree of data at a particular location. |
#!/usr/bin/groovy | |
/* | |
* Copyright (c) 2016, Andrey Makeev <amaksoft@gmail.com> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright |
package com.google.android.exoplayer.demo; | |
import android.content.Context; | |
import android.util.Log; | |
import com.google.android.exoplayer.C; | |
import com.google.android.exoplayer.upstream.DataSpec; | |
import com.google.android.exoplayer.upstream.TransferListener; | |
import com.google.android.exoplayer.upstream.UriDataSource; |
package android.support.design.widget; | |
import android.content.Context; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.v4.view.NestedScrollingChildHelper; | |
import android.util.AttributeSet; | |
import android.view.View; | |
/** |