<?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: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: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="8dp" android:layout_marginRight="8dp" android:layout_weight="1" android:ellipsize="end" android:singleLine="true" tools:text="kraje hehe no jak zwykle jedynka z geografii. to jest baaardzo długi tekst ale szkoda że się nie scrolluje." /> <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" tools:text="Kartkówki - K1 123456789 12345678" /> <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="Anna Jakaśtam-Cośtam" /> </LinearLayout> </LinearLayout> </LinearLayout> </layout>