Skip to content

Instantly share code, notes, and snippets.

@MwBakker
Last active January 21, 2019 15:22
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 MwBakker/e07ccddbdcdaf9fc7366678c9d7f694c to your computer and use it in GitHub Desktop.
Save MwBakker/e07ccddbdcdaf9fc7366678c9d7f694c to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="vm"
type="com.mwb.digitalstorage.viewmodel.ToolbarViewModel"/>
</data>
<androidx.constraintlayout.widget.ConstraintLayout
tools:context=".SuperActivity"
style="@style/match_parent">
<androidx.appcompat.widget.Toolbar
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintHeight_percent="0.075"
app:layout_constraintWidth_percent="1"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
android:theme="?attr/actionBarTheme">
<ImageView
android:id="@+id/user_icon"
app:srcCompat="@mipmap/usericon"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintWidth_percent="0.8"
app:layout_constraintHeight_percent="0.8"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:contentDescription="user icon" />
</androidx.appcompat.widget.Toolbar>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment