Action bar in anchorlayout - KIVY. python
<p>My goal is to make add these 3 buttons to an actionbar on the top of the screen as seen in the screenshot, please help.</p>

<p>.kv file</p>

<pre><code>AnchorLayout:
    anchor_x: 'center'
    anchor_y: 'top'
    BoxLayout: 
        padding: 30
        size_hint: 1, .1
        orientation: 'horizontal'
        Button:
            text: 'Back'
            on_press: root.manager.current = 'mainpage'                    
        TextInput:
            text: 'Search'                       
        Button:
            text: 'Fav'
</code></pre>

<p><strong>Fav and back button will later be changed to icons, and search will be a dropdown</strong></p>

<p>.py file</p>

<pre><code>class MainPage(Screen):
    pass
</code></pre>

<p><a href="http://i.stack.imgur.com/gEVmD.png" rel="nofollow">enter image description here</a></p>

<p>I suggest you use a relative layout inside your box layout:</p>

<pre><code>BoxLayout: 
    padding: 30
    size_hint: 1, .1
    orientation: 'horizontal'

    RelativeLayout:

        Button:
            text: 'Back'
            pos_hint: {'center_x': 0.1, 'center_y': 0.5}
            on_press: root.manager.current = 'mainpage'  

        TextInput:
            pos_hint: {'center_x': 0.5, 'center_y': 0.5}
            text: 'Search'                       

        Button:
            pos_hint: {'center_x': 0.9, 'center_y': 0.5}
            text: 'Fav'
</code></pre>

python android-actionbar kivy