change margin and gravity collapsed title in toolbar
<p>I try to use custom toolbar with 2 icon and RelativeLayer and append CollapsingToolbarLayout for Collapsing title and image but title text overlay on right icon and padding not work</p>

<pre><code> &lt;android.support.design.widget.AppBarLayout
        android:id="@+id/appbar_toolbar"
        android:layout_height="192dp"
        android:layout_width="match_parent"&gt;
    &lt;android.support.design.widget.CollapsingToolbarLayout
            android:id="@+id/collapsing_toolbar"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fitsSystemWindows="true"
            app:expandedTitleMarginStart="64dp"
            app:collapsedTitleTextAppearance="@style/ExpandedAppBar"
            app:paddingStart="10dp"
            app:paddingEnd="10dp"
            app:contentScrim="#ffffff"
            app:layout_scrollFlags="scroll|exitUntilCollapsed"&gt;
        &lt;ImageView
                android:src="@drawable/about_img"
                app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:scaleType="centerCrop"
                app:layout_collapseMode="parallax"/&gt;
        &lt;android.support.v7.widget.Toolbar
                android:id="@+id/toolbar"
                android:layout_width="match_parent"
                app:layout_collapseMode="pin"
                android:background="#ffffff"
                app:backgroundTint="#ffffff"
                app:contentInsetLeft="0dp"
                app:contentInsetStart="0dp"
                android:layout_height="50dp"
                app:layout_scrollFlags="scroll|enterAlways"&gt;
            &lt;RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent" android:paddingRight="10dip"
                    android:gravity="center_vertical" android:paddingLeft="10dip" android:id="@+id/re_toolbar"&gt;
                &lt;ImageView
                        android:layout_width="20dip"
                        android:layout_height="wrap_content"
                        android:id="@+id/img_menu" android:src="@drawable/menu_icon" android:layout_alignParentRight="true"
                        android:paddingTop="10dip"/&gt;
                &lt;ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:id="@+id/img_header_info"
                        android:src="@drawable/ic_header_info" android:layout_alignParentLeft="true"
                        android:paddingTop="5dip"/&gt;
            &lt;/RelativeLayout&gt;
        &lt;/android.support.v7.widget.Toolbar&gt;
    &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
&lt;/android.support.design.widget.AppBarLayout&gt;
</code></pre>

<p>style file :</p>

<pre><code>    &lt;style name="CollapsedAppBar" parent="@android:style/TextAppearance"&gt;
    &lt;item name="android:textSize"&gt;15sp&lt;/item&gt;
    &lt;item name="android:textStyle"&gt;normal&lt;/item&gt;
</code></pre>

<p>but i cannot change text margin and text align .</p>

<p>need margin :</p>

<p><a href="https://i.stack.imgur.com/Oq43n.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Oq43n.jpg" alt="title need margin"></a>
<a href="https://i.stack.imgur.com/sfQZA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sfQZA.jpg" alt="title need margin"></a></p>

<p>Need align : </p>

<p><a href="https://i.stack.imgur.com/e5Swz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e5Swz.jpg" alt="enter image description here"></a></p>

<p>and dependencies :</p>

<pre><code>compile 'com.android.support:appcompat-v7:22.+'
compile 'com.android.support:design:22.+'
compile 'com.android.support:recyclerview-v7:22.+'
compile 'com.android.support:cardview-v7:22.+'
</code></pre>