Guest User

Untitled

a guest
Nov 13th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. val targetContext = InstrumentationRegistry.getInstrumentation().targetContext
  2. val inflater = LayoutInflater.from(targetContext)
  3. val view = inflater.inflate(R.layout.my_layout, null, false)
  4. ViewHelpers.setupView(view).setExactWidthDp(300).layout()
  5. Screenshot.snap(view).record()
Add Comment
Please, Sign In to add comment