Created
November 7, 2018 10:19
-
-
Save MwBakker/4d62730df049d6a7dbd82901807f180c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<layout xmlns:android="http://schemas.android.com/apk/res/android"> | |
<data> | |
<variable | |
name="vm" | |
type="com.mwb.digitalstorage.viewmodel.ToolbarActivityViewModel"/> | |
</data> | |
<androidx.appcompat.widget.Toolbar | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="55dp" | |
android:theme="?attr/actionBarTheme" | |
tools:context=".ToolbarActivity"> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
style="@style/match_parent"> | |
<ImageView | |
android:id="@+id/user_icon" | |
style="@style/icon" | |
app:srcCompat="@mipmap/usericon" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintLeft_toLeftOf="parent" | |
android:layout_marginTop="20dp" | |
android:layout_marginLeft="15dp"/> | |
<TextView | |
android:id="@+id/txt_username" | |
style="@style/layout_titles" | |
app:layout_constraintLeft_toRightOf="@id/user_icon" | |
app:layout_constraintTop_toTopOf="@id/user_icon" | |
android:layout_marginLeft="25dp" | |
android:text="@{vm.user}" /> | |
<TextView | |
android:id="@+id/txt_date" | |
style="@style/layout_titles" | |
app:layout_constraintRight_toRightOf="parent" | |
app:layout_constraintTop_toTopOf="@id/user_icon" | |
android:layout_marginRight="35dp" | |
android:text="@{vm.date}" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
</androidx.appcompat.widget.Toolbar> | |
</layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment