fedilab-Android-App/app/src/main/res/layout/layout_quick_reply.xml

97 lines
3.8 KiB
XML
Raw Normal View History

2019-07-03 18:24:07 +02:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-11-10 10:16:48 +01:00
xmlns:tools="http://schemas.android.com/tools"
2019-07-03 18:24:07 +02:00
android:id="@+id/quick_reply_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-11-12 20:14:58 +01:00
android:background="?attr/cardviewColor"
2019-07-03 18:24:07 +02:00
android:padding="10dp"
android:visibility="gone">
<TextView
android:id="@+id/warning_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/red_border"
android:gravity="center"
android:text="@string/reply_might_be_useless"
android:textColor="@color/red_1"
android:visibility="gone"
app:layout_constraintTop_toTopOf="parent" />
<app.fedilab.android.helper.MastalabAutoCompleteTextView
android:id="@+id/quick_reply_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:gravity="top|start"
android:hint="@string/toot_placeholder"
android:inputType="textMultiLine|textCapSentences"
android:minLines="4"
app:layout_constraintTop_toBottomOf="@id/warning_message"
app:layout_goneMarginTop="0dp" />
<ImageView
android:id="@+id/quick_reply_switch_to_full"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
2019-11-15 16:32:25 +01:00
android:contentDescription="@string/fullscreen"
2019-07-03 18:24:07 +02:00
android:src="@drawable/ic_zoom_out"
2019-11-15 16:32:25 +01:00
android:tint="?iconColor"
2019-07-03 18:24:07 +02:00
app:layout_constraintStart_toStartOf="parent"
2019-11-15 16:32:25 +01:00
app:layout_constraintTop_toBottomOf="@id/quick_reply_text" />
2019-07-03 18:24:07 +02:00
<TextView
android:id="@+id/toot_space_left"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="0"
2019-11-07 17:52:12 +01:00
android:textColor="?colorAccent"
2019-07-03 18:24:07 +02:00
app:layout_constraintEnd_toStartOf="@id/quick_reply_emoji"
app:layout_constraintStart_toEndOf="@id/quick_reply_switch_to_full"
2019-11-10 10:16:48 +01:00
app:layout_constraintTop_toBottomOf="@id/quick_reply_text"
tools:ignore="HardcodedText" />
2019-07-03 18:24:07 +02:00
<ImageView
android:id="@+id/quick_reply_emoji"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
2019-11-10 10:16:48 +01:00
android:contentDescription="@string/emoji_picker"
android:src="@drawable/ic_insert_emoticon"
android:tint="?iconColor"
2019-07-03 18:24:07 +02:00
app:layout_constraintEnd_toStartOf="@id/quick_reply_privacy"
app:layout_constraintTop_toBottomOf="@id/quick_reply_text" />
<ImageView
android:id="@+id/quick_reply_privacy"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
2019-11-10 10:16:48 +01:00
android:contentDescription="@string/toot_visibility_tilte"
2019-07-03 18:24:07 +02:00
android:src="@drawable/ic_public"
2019-11-10 10:16:48 +01:00
android:tint="?iconColor"
2019-07-03 18:24:07 +02:00
app:layout_constraintEnd_toStartOf="@id/quick_reply_button"
app:layout_constraintTop_toBottomOf="@id/quick_reply_text" />
<Button
android:id="@+id/quick_reply_button"
2019-11-15 16:32:25 +01:00
style="@style/Widget.AppCompat.Button.Small"
2019-07-03 18:24:07 +02:00
android:layout_width="wrap_content"
2019-11-10 10:16:48 +01:00
android:layout_height="40dp"
2019-11-15 16:32:25 +01:00
android:layout_marginTop="5dp"
2019-07-03 18:24:07 +02:00
android:text="@string/reply"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/quick_reply_text" />
</androidx.constraintlayout.widget.ConstraintLayout>