forked from github/szkolny
95 lines
4.3 KiB
XML
95 lines
4.3 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:id="@+id/announcementsItem"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:padding="8dp"
|
|
android:orientation="vertical">
|
|
|
|
<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="16dp"
|
|
android:layout_marginLeft="16dp"
|
|
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="16dp"
|
|
android:layout_marginLeft="16dp"
|
|
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="kocham moją konsolkę gmailową" />
|
|
|
|
<TextView
|
|
android:id="@+id/announcementsItemText"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginLeft="16dp"
|
|
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" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</LinearLayout>
|
|
</layout>
|