forked from github/szkolny
303 lines
14 KiB
XML
303 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (c) Kuba Szczodrzyński 2019-11-12.
|
|
-->
|
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="?attr/actionBarSize"
|
|
android:orientation="horizontal"
|
|
android:background="@color/colorSurface_6dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/closeButton"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginTop="2dp"
|
|
android:background="?android:attr/actionBarItemBackground"
|
|
app:srcCompat="@android:drawable/ic_delete" />
|
|
|
|
<TextView
|
|
android:id="@+id/subject"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:animateLayoutChanges="true"
|
|
android:background="?selectableItemBackground"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:padding="16dp"
|
|
android:textAppearance="@style/NavView.TextView.Title"
|
|
tools:ignore="HardcodedText"
|
|
tools:text="mobiDziennik - raport dzienny." />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="2dp"
|
|
android:background="@drawable/shadow_top" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:visibility="visible"
|
|
tools:visibility="gone"/>
|
|
|
|
<ScrollView
|
|
android:id="@+id/content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="40dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="horizontal">
|
|
|
|
<FrameLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
<ImageView
|
|
android:id="@+id/profileBackground"
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:padding="12dp"
|
|
app:srcCompat="@drawable/bg_circle" />
|
|
|
|
<TextView
|
|
android:id="@+id/profileName"
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:fontFamily="sans-serif"
|
|
android:gravity="center"
|
|
android:padding="12dp"
|
|
android:textColor="#ffffff"
|
|
android:textSize="20sp"
|
|
tools:text="JP"
|
|
tools:visibility="visible" />
|
|
|
|
<ImageView
|
|
android:id="@+id/profileImage"
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:padding="12dp"
|
|
android:visibility="gone"
|
|
tools:srcCompat="@tools:sample/avatars[0]" />
|
|
</FrameLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/sender"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="?selectableItemBackground"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:paddingLeft="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingRight="8dp"
|
|
android:textAppearance="@style/NavView.TextView.Subtitle"
|
|
tools:text="Allegro - wysyłamy duużo wiadomości!!! Masz nowe oferty! Możesz kupić nowego laptopa! Ale super! Ehh, to jest nadawca a nie temat więc nwm czemu to tutaj wpisałem" />
|
|
|
|
<TextView
|
|
android:id="@+id/date"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:textAppearance="@style/NavView.TextView.Small"
|
|
tools:text="14:26" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/body"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:minHeight="250dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:textIsSelectable="true"
|
|
tools:text="To jest treść wiadomości.\n\nZazwyczaj ma wiele linijek.\n\nTak" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?colorControlHighlight" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginRight="16dp"
|
|
android:text="Odbiorcy wiadomości:"
|
|
android:textAppearance="@style/NavView.TextView.Subtitle" />
|
|
|
|
<TextView
|
|
android:id="@+id/recipients"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
tools:text=" - Jan Kowalski, przeczytano: nie\n - Adam Dodatkowy, przeczytano: 20 marca, 17:35" />
|
|
|
|
<TextView
|
|
android:id="@+id/attachmentsTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginRight="16dp"
|
|
android:text="Załączniki:"
|
|
android:textAppearance="@style/NavView.TextView.Subtitle" />
|
|
|
|
<pl.szczodrzynski.edziennik.ui.modules.views.AttachmentsView
|
|
android:id="@+id/attachmentsFragment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="8dp"
|
|
android:layout_marginBottom="8dp"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:orientation="horizontal"
|
|
android:visibility="visible"
|
|
tools:visibility="visible">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/replyButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="4dp"
|
|
android:layout_marginRight="4dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_rounded_ripple"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="4dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="4dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<com.mikepenz.iconics.view.IconicsImageView
|
|
android:id="@+id/replyIcon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:padding="4dp"
|
|
app:iiv_color="?android:textColorSecondary"
|
|
app:iiv_icon="cmd-reply"
|
|
tools:srcCompat="@android:drawable/ic_menu_revert" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:text="Odpowiedz"
|
|
android:textAppearance="@style/NavView.TextView.Small" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/forwardButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="4dp"
|
|
android:layout_marginRight="4dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_rounded_ripple"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="4dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="4dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<com.mikepenz.iconics.view.IconicsImageView
|
|
android:id="@+id/forwardIcon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:padding="4dp"
|
|
app:iiv_color="?android:textColorSecondary"
|
|
app:iiv_icon="cmd-arrow-right"
|
|
tools:srcCompat="@android:drawable/ic_media_ff" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:text="Przekaż dalej"
|
|
android:textAllCaps="false"
|
|
android:textAppearance="@style/NavView.TextView.Small" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/deleteButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="4dp"
|
|
android:layout_marginRight="4dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_rounded_ripple"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="4dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="4dp"
|
|
android:paddingBottom="8dp"
|
|
android:visibility="visible">
|
|
|
|
<com.mikepenz.iconics.view.IconicsImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:padding="4dp"
|
|
app:iiv_color="?android:textColorSecondary"
|
|
app:iiv_icon="cmd-delete-outline"
|
|
tools:srcCompat="@android:drawable/ic_menu_delete" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:text="Usuń"
|
|
android:textAppearance="@style/NavView.TextView.Small" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</LinearLayout>
|
|
</layout>
|