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 BaseTest { | |
@get:Rule | |
val testName = TestName() | |
@Before | |
fun setUp() { | |
assertDeviceOrSkip() | |
//... | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<TextView | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
tools:context=".MainActivity" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:text="Hello World! LANDSCAPE" | |
android:gravity="center"/> |
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
val image = FirebaseVisionImage.fromBitmap(selectedImage) | |
val detector = FirebaseVision.getInstance() | |
.getVisionTextDetector() | |
detector.detectInImage(image) | |
.addOnSuccessListener { texts -> | |
processTextRecognitionResult(texts) | |
} | |
.addOnFailureListener(...) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<dimen name="card_hiding_margin">-5dp</dimen> | |
<dimen name="card_margin">5dp</dimen> | |
</resources> |