Skip to content

Instantly share code, notes, and snippets.

@r0adkll
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r0adkll/6e66744f6477aaf48375 to your computer and use it in GitHub Desktop.
Save r0adkll/6e66744f6477aaf48375 to your computer and use it in GitHub Desktop.
stackoverflow_28632372
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<android.support.v7.widget.Toolbar
android:id="@+id/appbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:minHeight="?attr/actionBarSize"
android:elevation="6dp"
....
/>
<ImageView
android:id="@+id/notif_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:elevation="6dp"
android:src="@drawable/....."
android:layout_marginLeft="..dp"
android:layout_marginTop="..dp"
/>
</RelativeLayout>
@r0adkll
Copy link
Author

r0adkll commented Feb 20, 2015

Position the notif_icon with the layout_margin left and top values to get it into the position that you want above the hamburger icon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment