Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:background="@color/colorPrimary"
- android:orientation="horizontal"
- android:id="@+id/linearLayout">
- <de.hdodenhof.circleimageview.CircleImageView
- android:layout_width="30dp"
- android:layout_height="40dp"
- android:id="@+id/toolBarPicture"
- android:layout_gravity="center|center_horizontal"
- android:layout_marginLeft="15dp"
- android:src="@drawable/ic_toolbaruserprogile"
- android:textAlignment="center" />
- </LinearLayout>
- compile 'de.hdodenhof:circleimageview:2.2.0'
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/toolbar_with_logo"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:titleTextColor="@android:color/white"
- android:background="@color/colorPrimary">
- <de.hdodenhof.circleimageview.CircleImageView
- android:layout_width="30dp"
- android:layout_height="40dp"
- android:id="@+id/toolBarPicture"
- android:layout_gravity="left"
- android:layout_marginLeft="15dp"
- android:src="@drawable/ic_launcher_background"
- android:textAlignment="center" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/app_name"/>
- </android.support.v7.widget.Toolbar>
Add Comment
Please, Sign In to add comment