forked from github/szkolny
81 lines
3.0 KiB
XML
81 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (c) Kuba Szczodrzyński 2020-5-5.
|
|
-->
|
|
|
|
<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="historia i społeczeństwo" />
|
|
|
|
<View
|
|
android:id="@+id/unread"
|
|
android:layout_width="12dp"
|
|
android:layout_height="12dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="4dp"
|
|
android:layout_marginRight="4dp"
|
|
android:visibility="gone"
|
|
android:background="@drawable/unread_red_circle"
|
|
tools:visibility="visible"/>
|
|
|
|
<TextView
|
|
android:id="@+id/percentage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="4dp"
|
|
android:layout_marginRight="4dp"
|
|
tools:text="6,5%" />
|
|
|
|
<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="18dp"
|
|
tools:src="@android:drawable/ic_menu_more" />
|
|
</LinearLayout>
|
|
|
|
<pl.szczodrzynski.edziennik.ui.modules.attendance.AttendanceBar
|
|
android:id="@+id/attendanceBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="12dp"
|
|
android:layout_marginHorizontal="8dp"
|
|
android:layout_marginBottom="8dp" />
|
|
</LinearLayout>
|
|
</layout>
|