forked from github/szkolny
118 lines
4.7 KiB
XML
118 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (c) Kuba Szczodrzyński 2020-2-29.
|
|
-->
|
|
|
|
<layout xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<pl.szczodrzynski.edziennik.ui.modules.grades.GradeView
|
|
android:id="@+id/gradeName"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
tools:background="@drawable/bg_rounded_8dp"
|
|
tools:backgroundTint="#4caf50"
|
|
tools:textSize="24sp"
|
|
tools:gravity="center"
|
|
tools:text="5+" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/gradeDescription"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginEnd="4dp"
|
|
android:layout_marginRight="4dp"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
tools:text="kraje" />
|
|
|
|
<View
|
|
android:id="@+id/unread"
|
|
android:layout_width="12dp"
|
|
android:layout_height="12dp"
|
|
android:layout_marginEnd="4dp"
|
|
android:layout_marginRight="4dp"
|
|
android:visibility="gone"
|
|
android:background="@drawable/unread_red_circle"
|
|
tools:visibility="visible"/>
|
|
|
|
<TextView
|
|
android:id="@+id/gradeAddedDate"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
tools:text="14.10.2015" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/gradeWeight"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:textStyle="bold"
|
|
tools:text="waga 30"
|
|
tools:visibility="visible" />
|
|
|
|
<TextView
|
|
android:id="@+id/gradeCategory"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:ellipsize="end"
|
|
android:maxWidth="200dp"
|
|
android:maxLines="1"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
tools:text="Kartkówki - K1" />
|
|
|
|
<TextView
|
|
android:id="@+id/gradeTeacherName"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:gravity="end"
|
|
android:maxLines="1"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
tools:text="Jan Kowalski" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</layout>
|