forked from github/wulkanowy-mirror
95 lines
3.9 KiB
XML
95 lines
3.9 KiB
XML
|
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||
|
xmlns:tool="http://schemas.android.com/tools"
|
||
|
android:id="@+id/timetable_subItem_cardView"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginBottom="7dp"
|
||
|
android:layout_marginEnd="5dp"
|
||
|
android:layout_marginLeft="5dp"
|
||
|
android:layout_marginRight="5dp"
|
||
|
android:layout_marginStart="5dp"
|
||
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
||
|
card_view:cardElevation="0dp">
|
||
|
|
||
|
|
||
|
<RelativeLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginBottom="7dp"
|
||
|
android:layout_marginEnd="7dp"
|
||
|
android:layout_marginLeft="7dp"
|
||
|
android:layout_marginRight="7dp"
|
||
|
android:layout_marginStart="7dp"
|
||
|
android:layout_marginTop="7dp">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/timetable_subItem_number_of_lesson"
|
||
|
android:layout_width="40dp"
|
||
|
android:layout_height="40dp"
|
||
|
android:layout_centerVertical="true"
|
||
|
android:gravity="center"
|
||
|
android:maxLength="1"
|
||
|
android:text="0"
|
||
|
android:textSize="32sp"
|
||
|
tool:ignore="all"/>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/timetable_subItem_lesson_text"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_alignParentTop="true"
|
||
|
android:layout_marginEnd="40dp"
|
||
|
android:layout_marginLeft="10dp"
|
||
|
android:layout_marginRight="40dp"
|
||
|
android:layout_marginStart="10dp"
|
||
|
android:layout_toEndOf="@+id/timetable_subItem_number_of_lesson"
|
||
|
android:layout_toRightOf="@+id/timetable_subItem_number_of_lesson"
|
||
|
android:ellipsize="end"
|
||
|
android:maxLines="1"
|
||
|
android:text="@string/app_name"
|
||
|
android:textSize="17sp"
|
||
|
tool:ignore="all"/>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/timetable_subItem_time"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_alignBottom="@+id/timetable_subItem_number_of_lesson"
|
||
|
android:layout_alignLeft="@id/timetable_subItem_lesson_text"
|
||
|
android:layout_alignStart="@id/timetable_subItem_lesson_text"
|
||
|
android:maxLines="1"
|
||
|
android:text="@string/grades_text"
|
||
|
android:textColor="#4C4C4C"
|
||
|
android:textSize="12sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/timetable_subItem_room"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_alignBottom="@+id/timetable_subItem_number_of_lesson"
|
||
|
android:layout_marginEnd="40dp"
|
||
|
android:layout_marginLeft="10dp"
|
||
|
android:layout_marginRight="40dp"
|
||
|
android:layout_marginStart="10dp"
|
||
|
android:layout_toEndOf="@+id/timetable_subItem_time"
|
||
|
android:layout_toRightOf="@+id/timetable_subItem_time"
|
||
|
android:maxLines="1"
|
||
|
android:text="@string/grades_text"
|
||
|
android:textColor="#4C4C4C"
|
||
|
android:textSize="12sp"
|
||
|
tool:ignore="all"/>
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/timetable_subItem_change_image"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_alignParentEnd="true"
|
||
|
android:layout_alignParentRight="true"
|
||
|
android:layout_marginTop="10dp"
|
||
|
app:srcCompat="@drawable/ic_timetable_swap"
|
||
|
tool:ignore="contentDescription"/>
|
||
|
|
||
|
</RelativeLayout>
|
||
|
</android.support.v7.widget.CardView>
|