mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-04-11 02:32:27 +02:00
95 lines
3.6 KiB
XML
95 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (c) Kuba Szczodrzyński 2020-4-30.
|
|
-->
|
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:background="?selectableItemBackground">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="@drawable/divider"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:fontFamily="sans-serif"
|
|
android:maxLines="2"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textSize="20sp"
|
|
tools:text="2 marca - 3 marca" />
|
|
|
|
<View
|
|
android:id="@+id/unread"
|
|
android:layout_width="12dp"
|
|
android:layout_height="12dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:visibility="gone"
|
|
android:background="@drawable/unread_red_circle"
|
|
tools:visibility="visible"/>
|
|
|
|
<com.mikepenz.iconics.view.IconicsImageView
|
|
android:id="@+id/dropdownIcon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="36dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:scaleType="centerInside"
|
|
app:iiv_color="?android:textColorSecondary"
|
|
app:iiv_icon="cmd-chevron-down"
|
|
app:iiv_size="24dp"
|
|
tools:src="@android:drawable/ic_menu_more" />
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginBottom="8dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/previewContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:baselineAligned="false"
|
|
android:orientation="horizontal"
|
|
tools:visibility="visible" />
|
|
|
|
<TextView
|
|
android:id="@+id/summaryContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:textSize="14sp"
|
|
android:visibility="gone"
|
|
tools:text="6 nieob. • 2 nieob. nieuspr. • 5 spóźnień"
|
|
tools:text1="Cały rok: 3 oceny • suma: 320 pkt"
|
|
tools:text2="Cały rok: 15 ocen • średnia: 2,62"
|
|
tools:visibility="visible" />
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
</layout>
|