Search code examples
androidkotlinandroid-custom-viewhorizontal-scrolling

Implement scrolling in custom view


I need to create a custom view in Android Studio that would represent the graph (data structure, not bar charts and etc). How can I implement the horizontal scrolling to see all the vertices of the graph in my custom view?


Solution

  • I think your custom view should extend a View with a horizontal scroll (HorizontalScrollView for example)