|
|
@@ -0,0 +1,65 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<layout xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
+
|
|
|
+ <data>
|
|
|
+ <variable
|
|
|
+ name="measure_type"
|
|
|
+ type="com.mrozon.core_api.entity.MeasureType" />
|
|
|
+ </data>
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:id="@+id/cvMeasureType"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_margin="@dimen/card_margin"
|
|
|
+ app:cardCornerRadius="5dp"
|
|
|
+ app:elevation="@dimen/cardview_elevation">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ivLogo"
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:alpha="0.75"
|
|
|
+ app:load_logo="{measure_type}"
|
|
|
+ android:contentDescription="@string/ivLogo"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:srcCompat="@drawable/ic_logo_24" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/person_name"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginRight="16dp"
|
|
|
+ android:layout_toEndOf="@id/ivLogo"
|
|
|
+ android:paddingTop="16dp"
|
|
|
+ android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:textSize="20sp"
|
|
|
+ app:name_with_mark="{measure_type}"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintHorizontal_bias="0.0"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/ivLogo"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintVertical_chainStyle="packed"
|
|
|
+ tools:text="Важный показатель" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+</layout>
|