Added Lecturers to Overview and List
This commit is contained in:
9
app/src/main/res/drawable/ic_mail.xml
Normal file
9
app/src/main/res/drawable/ic_mail.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="40dp"
|
||||
android:height="40dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#003366"
|
||||
android:pathData="M20,4L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM20,8l-8,5 -8,-5L4,6l8,5 8,-5v2z"/>
|
||||
</vector>
|
||||
45
app/src/main/res/layout/list_all_mails.xml
Normal file
45
app/src/main/res/layout/list_all_mails.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="4dp">
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dip" >
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold"
|
||||
android:typeface="sans"
|
||||
tools:text="Test this new stuff!" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sub_left"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/title"
|
||||
android:layout_marginTop="5dip"
|
||||
android:textColor="#343434"
|
||||
android:textSize="12sp"
|
||||
tools:text="Peter Bauer" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@id/title"
|
||||
android:layout_alignBottom="@id/sub_left"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="10dp"
|
||||
android:contentDescription="@string/mail_icon"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/ic_mail"
|
||||
android:layout_marginEnd="10dp" />
|
||||
</RelativeLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
@@ -78,4 +78,6 @@
|
||||
<string name="deadline">Abgabe</string>
|
||||
<string name="winter_semester">Wintersemester %1$d/%2$d</string>
|
||||
<string name="summer_semester">Sommersemester %1$d</string>
|
||||
<string name="lecturers">Dozenten</string>
|
||||
<string name="mail_icon">Mail Icon</string>
|
||||
</resources>
|
||||
@@ -86,4 +86,6 @@
|
||||
<string name="deadline">Deadline</string>
|
||||
<string name="winter_semester">Winter Semester %1$d/%2$d</string>
|
||||
<string name="summer_semester">Summer Semester %1$d</string>
|
||||
<string name="lecturers">Lecturers</string>
|
||||
<string name="mail_icon">Mail Icon</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user