Skip to content

Instantly share code, notes, and snippets.

@nicoqueijo
Last active May 15, 2020 01:20
Show Gist options
  • Save nicoqueijo/e474f93f2e2fa81e3dbe59b53c8e785d to your computer and use it in GitHub Desktop.
Save nicoqueijo/e474f93f2e2fa81e3dbe59b53c8e785d to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
private lateinit var scrollView: ScrollView
private lateinit var dragLinearLayout: DragLinearLayout
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
scrollView = findViewById(R.id.scroll_view)
dragLinearLayout = findViewById<DragLinearLayout>(R.id.drag_linear_layout).apply {
setContainerScrollView(scrollView)
}
...
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment