ActionBar text color

后端 未结 24 2951
日久生厌
日久生厌 2020-11-22 05:31

how can I change the text color of the ActionBar? I\'ve inherited the Holo Light Theme, I\'m able to change the background of the ActionBar but I don\'t find out what is the

24条回答
  •  爱一瞬间的悲伤
    2020-11-22 06:20

    It's an old topic but for future readers, using ToolBar makes everything very easy:

    Toolbar toolbar = (Toolbar) findViewById(R.id.tool_bar);
    toolbar.setTitle(R.string.app_name);
    toolbar.setTitleTextColor(getResources().getColor(R.color.someColor));
    setSupportActionBar(toolbar);
    

提交回复
热议问题