2018-11-28 19:15:30 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
2018-01-25 11:23:11 +03:00
|
|
|
~ Nextcloud Talk application
|
|
|
|
~
|
|
|
|
~ @author Mario Danic
|
|
|
|
~ Copyright (C) 2017 Mario Danic <mario@lovelyhq.com>
|
|
|
|
~
|
|
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
|
|
~ it under the terms of the GNU General Public License as published by
|
|
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
|
|
~ at your option) any later version.
|
|
|
|
~
|
|
|
|
~ This program is distributed in the hope that it will be useful,
|
|
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
~ GNU General Public License for more details.
|
|
|
|
~
|
|
|
|
~ You should have received a copy of the GNU General Public License
|
|
|
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-11-28 19:15:30 +03:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2021-04-19 23:33:16 +03:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-11-28 19:15:30 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-04-19 23:33:16 +03:00
|
|
|
android:paddingStart="@dimen/standard_padding"
|
|
|
|
android:paddingTop="@dimen/standard_padding"
|
|
|
|
android:paddingEnd="@dimen/standard_half_padding">
|
2018-01-25 11:23:11 +03:00
|
|
|
|
2019-08-30 13:12:40 +03:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/ok_button"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/text_input_layout"
|
|
|
|
android:layout_alignParentEnd="true"
|
2021-04-19 23:33:16 +03:00
|
|
|
android:layout_marginTop="@dimen/standard_half_margin"
|
|
|
|
android:layout_marginBottom="@dimen/standard_half_margin"
|
2019-08-30 13:12:40 +03:00
|
|
|
android:alpha="0.7"
|
2021-03-30 01:35:40 +03:00
|
|
|
android:background="@color/bg_default"
|
2019-08-30 13:12:40 +03:00
|
|
|
android:enabled="false"
|
|
|
|
android:text="@string/nc_proceed"
|
2021-04-19 23:33:16 +03:00
|
|
|
android:textAllCaps="false"
|
2019-08-30 13:12:40 +03:00
|
|
|
android:textColor="@color/colorPrimary" />
|
|
|
|
|
2019-04-07 00:54:13 +03:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/text_input_layout"
|
2021-04-19 23:33:16 +03:00
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
2018-01-25 11:23:11 +03:00
|
|
|
android:layout_width="match_parent"
|
2018-02-27 19:57:29 +03:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-19 23:33:16 +03:00
|
|
|
android:layout_marginEnd="@dimen/standard_half_margin"
|
2019-09-03 11:11:40 +03:00
|
|
|
android:layout_toStartOf="@id/smileyButton"
|
2019-04-07 00:54:13 +03:00
|
|
|
app:errorTextAppearance="@style/ErrorAppearance"
|
2022-02-14 20:17:16 +03:00
|
|
|
app:passwordToggleTint="@color/grey_600"
|
|
|
|
app:boxStrokeColor="@color/colorPrimary"
|
|
|
|
app:hintTextColor="@color/colorPrimary">
|
2018-01-25 11:23:11 +03:00
|
|
|
|
2019-09-03 14:45:24 +03:00
|
|
|
<com.nextcloud.talk.utils.EmojiTextInputEditText
|
2019-04-07 00:54:13 +03:00
|
|
|
android:id="@+id/text_edit"
|
2018-05-03 18:45:37 +03:00
|
|
|
android:layout_width="match_parent"
|
2018-01-25 11:23:11 +03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:imeOptions="actionDone"
|
|
|
|
android:inputType="textUri"
|
|
|
|
android:singleLine="true"
|
2021-07-16 12:17:39 +03:00
|
|
|
android:textAlignment="viewStart"
|
2018-11-28 19:15:30 +03:00
|
|
|
android:textColor="@color/colorPrimary" />
|
2018-01-25 11:23:11 +03:00
|
|
|
|
2019-04-07 00:54:13 +03:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2018-01-25 11:23:11 +03:00
|
|
|
|
2019-09-03 11:11:40 +03:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/smileyButton"
|
2021-04-19 23:33:16 +03:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="match_parent"
|
2019-09-03 11:11:40 +03:00
|
|
|
android:layout_alignBottom="@id/text_input_layout"
|
|
|
|
android:layout_alignParentEnd="true"
|
2021-04-19 23:33:16 +03:00
|
|
|
android:layout_marginStart="-4dp"
|
2019-09-03 11:11:40 +03:00
|
|
|
android:background="@color/transparent"
|
2021-05-04 13:53:18 +03:00
|
|
|
android:contentDescription="@string/nc_add_emojis"
|
2019-09-03 11:11:40 +03:00
|
|
|
android:src="@drawable/ic_insert_emoticon_black_24dp"
|
2021-04-19 23:33:16 +03:00
|
|
|
android:visibility="gone"
|
2022-07-22 16:47:26 +03:00
|
|
|
app:tint="@color/medium_emphasis_text"
|
2021-04-19 23:33:16 +03:00
|
|
|
tools:visibility="visible" />
|
2019-09-03 11:11:40 +03:00
|
|
|
|
2019-04-07 00:54:13 +03:00
|
|
|
</RelativeLayout>
|