I have a CollapsingToolbarLayout that is defined to center both in collapsed and in expanded modes:
CollapsingToolbarLayout
You need to set app:expandedTitleGravity="center" and remove app:collapsedTitleGravity="center" from your code like
app:expandedTitleGravity="center"
app:collapsedTitleGravity="center"
Hope this helps you