1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-09-21 02:49:09 -05:00
wulkanowy-mirror/app/src/main/res/layout/grade_header.xml
Rafał Borcz c3803b1c96 Add a view of free days to the timetable (#57)
* Fix Timetable freeze when app was killed
* Add views for free days
2018-03-06 00:57:06 +01:00

58 lines
2.4 KiB
XML

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tool="http://schemas.android.com/tools"
android:id="@+id/grade_header_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/ic_border"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin">
<TextView
android:id="@+id/grade_header_subject_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="35dp"
android:layout_marginRight="35dp"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/app_name"
android:textSize="17sp" />
<TextView
android:id="@+id/grade_header_average_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/grade_header_subject_text"
android:layout_marginTop="5dp"
android:text="@string/app_name"
android:textColor="@color/secondary_text"
android:textSize="12sp" />
<TextView
android:id="@+id/grade_header_number_of_grade_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/grade_header_subject_text"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginTop="5dp"
android:layout_toEndOf="@+id/grade_header_average_text"
android:layout_toRightOf="@+id/grade_header_average_text"
android:text="@string/app_name"
android:textColor="@color/secondary_text"
android:textSize="12sp" />
<ImageView
android:id="@+id/grade_header_alert_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_alert_24dp"
tool:ignore="contentDescription" />
</RelativeLayout>