Signal-Android/app/src/main/res/layout/edit_note_fragment.xml
2023-03-27 09:47:30 -04:00

57 lines
No EOL
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:viewBindingIgnore="true">
<androidx.appcompat.widget.Toolbar
android:id="@+id/edit_note_fragment_toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/signal_m3_toolbar_height"
android:minHeight="@dimen/signal_m3_toolbar_height"
app:layout_constraintTop_toTopOf="parent"
app:navigationIcon="@drawable/ic_arrow_left_24"
app:title="@string/CreatePaymentFragment__add_note"
app:titleTextAppearance="@style/Signal.Text.TitleLarge" />
<org.thoughtcrime.securesms.components.emoji.EmojiEditText
android:id="@+id/edit_note_fragment_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:hint="@string/EditNoteFragment_note"
android:imeOptions="actionDone"
android:inputType="text|textCapSentences"
android:maxLength="40"
android:singleLine="true" />
<TextView
android:id="@+id/character_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:paddingHorizontal="16dp"
android:textColor="@color/signal_text_secondary"
tools:text="40/40"
tools:visibility="visible" />
<Space
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/edit_note_fragment_fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_margin="16dp"
android:tint="@color/core_white"
app:srcCompat="@drawable/ic_check_24"
android:contentDescription="@string/EditNoteFragment__content_description_save_note" />
</LinearLayout>