wulkanowy-mod/app/src/main/res/layout/activity_send_message.xml

162 lines
6.2 KiB
XML
Raw Normal View History

2019-02-24 08:11:32 -06:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
2019-03-17 15:02:41 -05:00
android:id="@+id/sendMessageContainer"
2019-02-24 08:11:32 -06:00
android:layout_height="match_parent"
android:orientation="vertical">
2019-03-17 15:02:41 -05:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/sendMessageAppBarContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/WulkanowyTheme.ActionBar"
app:elevation="0dp">
<androidx.appcompat.widget.Toolbar
android:id="@+id/sendMessageToolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" />
</com.google.android.material.appbar.AppBarLayout>
2019-02-24 08:11:32 -06:00
<LinearLayout
android:id="@+id/sendMessageContent"
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-03-17 15:02:41 -05:00
android:layout_below="@id/sendMessageAppBarContainer"
2019-02-24 08:11:32 -06:00
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="14dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
2019-03-17 15:02:41 -05:00
android:text="@string/message_from"
2019-02-24 08:11:32 -06:00
android:textColor="@android:color/darker_gray"
android:textSize="18sp" />
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/sendMessageFromTextView"
android:layout_width="match_parent"
2019-03-17 15:02:41 -05:00
android:layout_height="30dp"
2019-02-24 08:11:32 -06:00
android:background="@android:color/transparent"
android:enabled="false"
android:textColor="?android:attr/textColorPrimaryNoDisable"
tools:text="Jan Kowalski" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dividerColor" />
<LinearLayout
android:layout_width="match_parent"
2019-03-17 15:02:41 -05:00
android:layout_height="58dp"
2019-02-24 08:11:32 -06:00
android:paddingStart="14dp"
android:paddingLeft="14dp"
2019-03-17 15:02:41 -05:00
tools:ignore="RtlSymmetry">
2019-02-24 08:11:32 -06:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-03-17 15:02:41 -05:00
android:layout_gravity="center"
2019-02-24 08:11:32 -06:00
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
2019-03-17 15:02:41 -05:00
android:text="@string/message_to"
android:textAlignment="center"
2019-02-24 08:11:32 -06:00
android:textColor="@android:color/darker_gray"
android:textSize="18sp" />
2019-03-17 15:02:41 -05:00
<com.pchmn.materialchips.ChipsInput
android:id="@+id/sendMessageRecipientsInput"
2019-02-24 08:11:32 -06:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-17 15:02:41 -05:00
android:layout_gravity="center"
2019-02-24 08:11:32 -06:00
android:background="@android:color/transparent"
2019-03-17 15:02:41 -05:00
app:horizontalScroll="true"
tools:layout_height="30dp">
</com.pchmn.materialchips.ChipsInput>
2019-02-24 08:11:32 -06:00
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dividerColor" />
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/sendMessageSubjectInput"
android:layout_width="match_parent"
2019-03-17 15:02:41 -05:00
android:layout_height="58dp"
2019-02-24 08:11:32 -06:00
android:background="@android:color/transparent"
2019-03-17 15:02:41 -05:00
android:hint="@string/message_subject"
2019-02-24 08:11:32 -06:00
android:inputType="text"
android:maxLines="1"
android:padding="14dp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dividerColor" />
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/sendMessageContentInput"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:gravity="top|start"
2019-03-17 15:02:41 -05:00
android:hint="@string/message_content"
2019-02-24 08:11:32 -06:00
android:inputType="textMultiLine"
android:paddingStart="14dp"
android:paddingLeft="14dp"
android:paddingTop="18dp"
android:paddingEnd="14dp"
android:paddingRight="14dp"
android:singleLine="false" />
</LinearLayout>
2019-03-17 15:02:41 -05:00
<FrameLayout
2019-02-24 08:11:32 -06:00
android:layout_width="match_parent"
2019-03-17 15:02:41 -05:00
android:layout_height="match_parent"
android:layout_below="@id/sendMessageAppBarContainer">
2019-02-24 08:11:32 -06:00
<LinearLayout
android:id="@+id/sendMessageEmpty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical"
android:visibility="gone">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:minWidth="100dp"
android:minHeight="100dp"
app:srcCompat="@drawable/ic_more_messages_24dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/error_unknown"
android:textSize="20sp" />
</LinearLayout>
<ProgressBar
android:id="@+id/sendMessageProgress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:visibility="gone" />
2019-03-17 15:02:41 -05:00
</FrameLayout>
2019-02-24 08:11:32 -06:00
</RelativeLayout>