title: How do I add a scrollview in a separate window?
body: <p>I want to add a scrollview inside 1 of my screens and on that same screen. I want to have a button that redirects to the main screen. The code shown below does not seem to be working. This is my python code (assume I have imported the relevant modules):</p>
  
  <pre><code>class Main(Screen):
      pass
  class View(Screen):
      view = ObjectProperty(Non    
     def __init__(self, **kwargs):
          super(View, self).__init__(**kwargs)
          Clock.schedule_once(self.create_scrollview)
  
      def create_scrollview(self, dt):
          base = ["element {}".format(i) for i in range(40)]
          layout = GridLayout(cols=1, spacing=10, size_hint_y=None)
          layout.bind(minimum_height=layout.setter("height"))
  
          for element in base:
              layout.add_widget(Button(text=element, size=(50, 50), size_hint=(1, None),background_color=(0.5, 0.5, 0.5, 1), color=(1, 1, 1, 1)))
          scrollview = ScrollView(size_hint=(1, None), size=(Window.width, Window.height))
          scrollview.add_widget(layout)
          self.view.add_widget(scrollview)
  
  class Manager(ScreenManager): #transition of windows
      def __init__(self, **kwargs):
          super(Manager, self).__init__(**kwargs)
      pass
  kv = Builder.load_file('main.kv')
  class NotesApp(App):
      def build(self):
          return kv   
  if __name__ == '__main__':
      NotesApp().run()
  </code></pre>
  
  <p>This is my kv file:</p>
  
  <pre><code>Manager:
      Main:
      View:
  
  &lt;Button&gt;:
      font_size:35
  &lt;Label&gt;:
      font_size:45
  &lt;Main&gt;:
      name:'main'
  &lt;View&gt;:
      name: 'view'
      FloatLayout: 
          Button:
              pos_hint:{'x':0.2,'top':0.975}
              size_hint:0.6,0.15
              text: 'Back'
              on_release:
                  app.root.current = 'main'
                  root.manager.transition.direction = 'right'
  </code></pre>