Custom title bar without padding (Android)

后端 未结 7 683
失恋的感觉
失恋的感觉 2020-11-30 07:39

So I am using the techniques in this thread to use a custom background for my titlebar. Unfortunately the framework places my layout inside a FrameLayout (

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 08:43

    There is a lenghty thread over on anddev.org that may be able to help you out

    http://www.anddev.org/my_own_titlebar_backbutton_like_on_the_iphone-t4591.html

    I have followed it and successfully created my own title bar which allows me to set the padding.

    Xml for my title bar:


    
    
    
    
    
    
    
    

    The above creates a small gray bar with text aligned to the right and left sides

提交回复
热议问题