styling bottom action icon postion and background color

前端 未结 2 1853
轮回少年
轮回少年 2020-12-22 08:19

I have this bottom action bar style

I want to design like this (left , center, right) with background color blue or red

this is the menu

2条回答
  •  孤城傲影
    2020-12-22 08:57

    Here you can download the needed icons: https://www.google.com/design/icons/index.html

    The distance between the icons can you make with a custom android:actionButtonStyle like:

    @style/ActionButtonStyle
    
    
    

    And the background color:

    ActionBar bar = getActionBar();
    bar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#FF0000")));
    

提交回复
热议问题