Last active
May 15, 2020 01:20
-
-
Save nicoqueijo/e474f93f2e2fa81e3dbe59b53c8e785d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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