uaktualniono wygląd karty (notatki)
This commit is contained in:
parent
00cb876e01
commit
31f6572fb9
@ -1,52 +1,54 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
android:id="@+id/viewNote"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="5dp"
|
||||||
|
android:backgroundTint="@color/colorAccent"
|
||||||
|
app:cardCornerRadius="10dp"
|
||||||
|
app:cardElevation="2dp"
|
||||||
|
app:contentPadding="0dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="2dp">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/note_title"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/_8sdp"
|
||||||
|
android:layout_marginTop="@dimen/_8sdp"
|
||||||
|
android:layout_marginEnd="@dimen/_8sdp"
|
||||||
|
android:text="note_title"
|
||||||
|
android:textAlignment="viewStart"
|
||||||
|
android:textSize="@dimen/_14ssp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/note_subtitle"
|
||||||
|
android:text="note_subtitle"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="5dp"
|
android:layout_marginStart="@dimen/_8sdp"
|
||||||
app:cardBackgroundColor="#ffffff"
|
android:layout_marginTop="@dimen/_4sdp"
|
||||||
app:cardCornerRadius="10dp"
|
android:layout_marginEnd="@dimen/_8sdp"
|
||||||
app:cardElevation="2dp"
|
android:layout_marginBottom="@dimen/_4sdp"
|
||||||
app:contentPadding="0dp">
|
android:textStyle="normal" />
|
||||||
|
|
||||||
<LinearLayout
|
<TextView
|
||||||
|
android:id="@+id/textDateTime"
|
||||||
|
android:text="note_date"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:textAlignment="viewStart"
|
||||||
android:padding="2dp">
|
android:textSize="14sp"
|
||||||
<TextView
|
android:maxLines="4"
|
||||||
android:id="@+id/note_title"
|
android:ellipsize="end"
|
||||||
android:layout_width="wrap_content"
|
android:layout_marginStart="@dimen/_8sdp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_marginEnd="@dimen/_8sdp"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginBottom="@dimen/_8sdp"
|
||||||
android:layout_marginTop="8dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:layout_marginEnd="8dp"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:layout_marginBottom="8dp"
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
android:text="note_title"
|
|
||||||
android:textAlignment="viewStart"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/card_view"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
<TextView
|
</LinearLayout>
|
||||||
android:id="@+id/note_content"
|
|
||||||
android:text="note_content"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAlignment="viewStart"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:maxLines="4"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:layout_marginStart="8dp"
|
|
||||||
android:layout_marginEnd="8dp"
|
|
||||||
android:layout_marginBottom="8dp"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
</androidx.cardview.widget.CardView>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user