Android Toolbar actionLayout of Switch causes text to jump when menu is pressed

前端 未结 2 1301
鱼传尺愫
鱼传尺愫 2021-01-06 13:35

Please refer to my project at: https://github.com/paulpv/ToolbarSwitch

I am working on a simple custom layout for the Android Toolbar (aka: new ActionBar). This simp

2条回答
  •  庸人自扰
    2021-01-06 14:13

    I gave up trying to use the built in Text field of a Switch or SwitchCompat control. I ended up providing a layout with a separate TextView field:

    layout/toolbar_switch.xml

    
    
    
        
    
        
    
    

提交回复
热议问题