Skip to content

Instantly share code, notes, and snippets.

Jemo Mgebrishvili developer--

Block or report user

Report or block developer--

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:9972a0741d45d212d5d921d2a29ec914
private void crossFadeAnimation(final View fadeInTarget, final View fadeOutTarget, long duration){
final int[] counter = {0};
AnimatorSet mAnimationSet = new AnimatorSet();
final ObjectAnimator fadeOut = ObjectAnimator.ofFloat(fadeOutTarget, View.ALPHA, 1f, 0f);
final ObjectAnimator fadeIn = ObjectAnimator.ofFloat(fadeInTarget, View.ALPHA, 0f, 1f);
fadeOut.addListener(new Animator.AnimatorListener() {
//აქ გადაეწერა მნიშვნელობა უხეშად
View Example
public class BaseActivity extends AppCompatActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
public static boolean isAppInFg = false;
public static boolean isScrInFg = false;
public static boolean isChangeScrFg = false;
View gist:dcf544254a1f6aa455f11bad3df68955
public class BaseActivity extends AppCompatActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
public static boolean isAppInFg = false;
public static boolean isScrInFg = false;
public static boolean isChangeScrFg = false;
View Android Context
import android.os.Handler
import android.os.Looper
import kotlin.coroutines.experimental.AbstractCoroutineContextElement
import kotlin.coroutines.experimental.Continuation
import kotlin.coroutines.experimental.ContinuationInterceptor
/**
* Android Continuation, guarantees that, when resumed, is on the UI Thread
View Main.kt
import java.util.*
fun main(args: Array<String>) {
val scanner = Scanner(System.`in`)
var max = Int.MIN_VALUE
var min = Int.MAX_VALUE
println("stop symbol input")
val stopSymbol = scanner.next()
You can’t perform that action at this time.