mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-03-29 04:01:59 +01:00

* Remove Themes and getColorFromAttr() usage * Reformat all layout XML files * Remove <layout> from non-data binding XMLs * Cleanup unused NavLib code * Migrate NavBottomSheet to view binding, remove unused components * Add IIcon.toDrawable() extension * Make BottomSheet scrim opacity linear * Support touch events on BottomSheet scrim
65 lines
2.3 KiB
XML
65 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Copyright (c) Kuba Szczodrzyński 2021-4-8.
|
|
-->
|
|
|
|
<FrameLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/card"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_rounded_8dp"
|
|
android:foreground="@drawable/bg_rounded_8dp_outline"
|
|
tools:backgroundTint="@color/blue_selected"
|
|
tools:foregroundTint="@color/blue_selected">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:padding="10dp">
|
|
|
|
<com.mikepenz.iconics.view.IconicsTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:ellipsize="end"
|
|
android:maxLines="3"
|
|
android:textAppearance="?textAppearanceBodyLarge"
|
|
tools:text="sprawdzian - Język polski" />
|
|
|
|
<TextView
|
|
android:id="@+id/subtitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:textAppearance="?textAppearanceBodySmall"
|
|
tools:text="9:05, biologia, Jan Kowalski, 7a" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/badgeBackground"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_marginTop="-24dp"
|
|
android:layout_marginEnd="-24dp"
|
|
android:layout_marginRight="-24dp"
|
|
android:background="@drawable/bg_rounded_8dp"
|
|
tools:backgroundTint="?android:colorBackground" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/badge"
|
|
android:layout_width="10dp"
|
|
android:layout_height="10dp"
|
|
android:layout_gravity="end"
|
|
android:layout_margin="8dp"
|
|
android:background="@drawable/unread_red_circle" />
|
|
</FrameLayout>
|