As the android document suggest, I have set the logo in toolbar. Refer: toolBar.setLogo
Is there any way to change the width of toolbar logo?
As the android document suggest, I have set the logo in toolbar. Refer: toolBar.setLogo
Is there any way to change the width of toolbar logo?
Customize toolbar by creating child views inside toolbar
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar_top"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:minHeight="?attr/actionBarSize"
android:background="@color/action_bar_bkgnd"
app:theme="@style/ToolBarTheme" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<ImageView
android:layout_width="200dp"
android:layout_height="wrap_content"
android:src="@drawable/yourlogo"
>
</RelativeLayout>
</android.support.v7.widget.Toolbar>