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
/* Declaring variables */ | |
//[val/var] name_of_variable : [type] = value | |
//no need for ; at the end of the line | |
val a: Int = 1 | |
var b: String = "NullPointerException is dead" | |
var c: Double? = 0.4 | |
//val - read only value, constant |
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.content.res.AssetFileDescriptor; | |
import android.media.MediaPlayer; | |
import android.util.Log; | |
import java.io.IOException; | |
/** | |
* Created by viksaaskool on 13-04-2017. | |
*/ |
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 DrawableMatcher extends TypeSafeMatcher<View> { | |
private final int expectedId; | |
private String resourceName; | |
private int isAnimatedDrawable = -1; | |
private int randomFrame = 0; | |
public DrawableMatcher(int expectedId) { | |
super(View.class); |
NewerOlder