title: Kivy TextInput horizontal and vertical align (centering text)
body: <p>How to center a text horizontally in a TextInput in Kivy?</p>
  
  <p>I have the following screen:
  <a href="https://i.stack.imgur.com/cljWG.png" rel="nofollow"><img src="https://i.stack.imgur.com/cljWG.png" alt="wrong screen"></a></p>
  
  <p>But I want to centralize my text like this:
  <a href="https://i.stack.imgur.com/V89Fw.png" rel="nofollow"><img src="https://i.stack.imgur.com/V89Fw.png" alt="right screen"></a></p>
  
  <p>And this is part of my kv language:</p>
  
  <pre><code>        BoxLayout:  
              orientation: 'vertical'
              Label:
                  markup: True
                  text: '[b] Type something... [/b]'
                  size_hint: 1, 0.6
                  size: self.parent.size[0], 200
                  font_size: self.size[0] * 0.1
                  text_size: self.size
                  halign: 'center'
                  valign: 'middle'
  
                  canvas.before:
                      Color:
                          rgb: 0, 0, 204
                      Rectangle:
                          pos: self.pos
                          size: self.size
  
              TextInput:
                  focus: True
  </code></pre>
  
  <p>How can I center my TextInput's text?</p>