Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val targetContext = InstrumentationRegistry.getInstrumentation().targetContext
- val inflater = LayoutInflater.from(targetContext)
- val view = inflater.inflate(R.layout.my_layout, null, false)
- ViewHelpers.setupView(view).setExactWidthDp(300).layout()
- Screenshot.snap(view).record()
Add Comment
Please, Sign In to add comment