Skip to content

Instantly share code, notes, and snippets.

View rakib10rr3's full-sized avatar
🏠
Working from home

Rakibul Huda rakib10rr3

🏠
Working from home
View GitHub Profile
//This method selects any child from a viewgroup i.e: Chipgroup
private fun nthChildOf(parentMatcher: Matcher<View>, childPosition: Int): Matcher<View> {
return object : TypeSafeMatcher<View>() {
override fun describeTo(description: Description) {
description.appendText("position $childPosition of parent ")
parentMatcher.describeTo(description)
}
public override fun matchesSafely(view: View): Boolean {
private fun customScroll(): ViewAction {
return object : ViewAction {
override fun getDescription(): String? {
return null
}
override fun getConstraints(): Matcher<View> {
return CoreMatchers.allOf(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE), isDescendantOfA(anyOf(
isAssignableFrom(ScrollView::class.java),
isAssignableFrom(HorizontalScrollView::class.java),
@rakib10rr3
rakib10rr3 / AdbCommands
Created August 18, 2019 09:00 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell