forked from github/szkolny
140 lines
5.8 KiB
XML
140 lines
5.8 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">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/targetDeviceLayout"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:visibility="gone">
|
|
|
|
<pl.szczodrzynski.edziennik.utils.TextInputDropDown
|
|
android:id="@+id/targetDeviceDropDown"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint=""
|
|
android:paddingEnd="6.0dip"
|
|
android:paddingRight="6.0dip" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/faqText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:autoLink="all"
|
|
android:background="?selectableItemBackground"
|
|
android:text="@string/feedback_faq"
|
|
android:textSize="20sp" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/faqButton"
|
|
style="@style/Widget.MaterialComponents.Button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:text="@string/feedback_faq_button"
|
|
android:visibility="gone" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/inputLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:text="@string/feedback_title"
|
|
android:textSize="20sp" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:hint="@string/feedback_ask_a_question"
|
|
app:errorEnabled="true"
|
|
app:hintAnimationEnabled="true"
|
|
app:hintEnabled="true">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/textInput"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ems="10"
|
|
android:inputType="textShortMessage|textMultiLine|textPersonName|textCapSentences|textAutoComplete"
|
|
android:maxLines="5"
|
|
android:singleLine="false" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/sendButton"
|
|
style="@style/Widget.MaterialComponents.Button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:text="@string/feedback_send" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/chatLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:orientation="vertical"
|
|
android:visibility="visible">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:text="@string/feedback_history"
|
|
android:textSize="20sp" />
|
|
|
|
<com.github.bassaer.chatmessageview.view.ChatView
|
|
android:id="@+id/chat_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</layout> |