forked from github/szkolny
106 lines
5.1 KiB
XML
106 lines
5.1 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<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="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<com.google.android.material.card.MaterialCardView
|
||
|
android:id="@+id/announcementsItemCard"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_margin="8dp"
|
||
|
app:cardElevation="4dp"
|
||
|
app:cardCornerRadius="5dp"
|
||
|
android:background="?selectableItemBackground"
|
||
|
android:paddingLeft="10dp"
|
||
|
android:paddingTop="5dp"
|
||
|
android:paddingRight="10dp"
|
||
|
android:paddingBottom="3dp">
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/announcementsItemImage"
|
||
|
android:layout_width="40dp"
|
||
|
android:layout_height="40dp"
|
||
|
android:layout_marginStart="8dp"
|
||
|
android:layout_marginLeft="8dp"
|
||
|
android:layout_marginTop="8dp"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
tools:srcCompat="@tools:sample/avatars" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/announcementsItemSender"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginStart="8dp"
|
||
|
android:layout_marginLeft="8dp"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:layout_marginEnd="8dp"
|
||
|
android:layout_marginRight="8dp"
|
||
|
android:ellipsize="end"
|
||
|
android:maxLines="1"
|
||
|
android:textSize="16sp"
|
||
|
android:textStyle="bold"
|
||
|
app:layout_constraintEnd_toStartOf="@+id/announcementsItemDate"
|
||
|
app:layout_constraintStart_toEndOf="@+id/announcementsItemImage"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
tools:text="Janusz Kowalski" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/announcementsItemTitle"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="20dp"
|
||
|
android:layout_marginStart="8dp"
|
||
|
android:layout_marginLeft="8dp"
|
||
|
android:layout_marginEnd="8dp"
|
||
|
android:layout_marginRight="8dp"
|
||
|
android:ellipsize="end"
|
||
|
android:maxLines="1"
|
||
|
android:textSize="14sp"
|
||
|
android:textStyle="bold"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintStart_toEndOf="@+id/announcementsItemImage"
|
||
|
app:layout_constraintTop_toBottomOf="@+id/announcementsItemSender"
|
||
|
tools:text="mój sposób na czytanie wiadomości" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/announcementsItemText"
|
||
|
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_marginBottom="8dp"
|
||
|
android:autoLink="all"
|
||
|
android:ellipsize="end"
|
||
|
android:singleLine="true"
|
||
|
android:textAppearance="@style/NavView.TextView.Helper"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintStart_toEndOf="@+id/announcementsItemImage"
|
||
|
app:layout_constraintTop_toBottomOf="@+id/announcementsItemTitle"
|
||
|
tools:text="mam sposób na czytanie wiadomości tak żebyście tego nie widzieli i potem myślicie że mam 263 nieprzeczytane wiadomości" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/announcementsItemDate"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:layout_marginEnd="8dp"
|
||
|
android:layout_marginRight="8dp"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
tools:text="18 lut 2018 - 25 mar 2018" />
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
</com.google.android.material.card.MaterialCardView>
|
||
|
|
||
|
</LinearLayout>
|
||
|
</layout>
|