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 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() { | |
//აქ გადაეწერა მნიშვნელობა უხეშად |
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
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; |
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
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; |
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.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 |
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 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() |
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
// commonMain | |
expect class FileUtils { | |
fun createFile(filePath: String): Boolean | |
fun deleteFile(filePath: String): Boolean | |
} | |
// androidMain |
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
let fileUtils = FileUtils() | |
func createFile(path: String) -> bool { | |
return fileUtils.createFile(filePath: path) | |
} |