Media: grab some code from Riot legacy
BIN
vector/src/main/res/drawable-hdpi/ic_attach_file_white.png
Normal file
After Width: | Height: | Size: 394 B |
BIN
vector/src/main/res/drawable-mdpi/ic_attach_file_white.png
Normal file
After Width: | Height: | Size: 285 B |
BIN
vector/src/main/res/drawable-mdpi/ic_material_camera.png
Executable file
After Width: | Height: | Size: 539 B |
BIN
vector/src/main/res/drawable-mdpi/ic_material_file.png
Executable file
After Width: | Height: | Size: 545 B |
BIN
vector/src/main/res/drawable-mdpi/ic_material_videocam.png
Executable file
After Width: | Height: | Size: 3.0 KiB |
BIN
vector/src/main/res/drawable-mdpi/ic_send_sticker.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
BIN
vector/src/main/res/drawable-mdpi/vector_micro_green.png
Executable file
After Width: | Height: | Size: 399 B |
BIN
vector/src/main/res/drawable-mdpi/video_call_black.png
Executable file
After Width: | Height: | Size: 224 B |
BIN
vector/src/main/res/drawable-mdpi/video_call_green.png
Executable file
After Width: | Height: | Size: 298 B |
BIN
vector/src/main/res/drawable-mdpi/voice_call_black.png
Executable file
After Width: | Height: | Size: 574 B |
BIN
vector/src/main/res/drawable-mdpi/voice_call_end_fushia.png
Executable file
After Width: | Height: | Size: 331 B |
BIN
vector/src/main/res/drawable-mdpi/voice_call_green.png
Executable file
After Width: | Height: | Size: 432 B |
BIN
vector/src/main/res/drawable-mdpi/voice_call_start_green.png
Executable file
After Width: | Height: | Size: 684 B |
BIN
vector/src/main/res/drawable-xhdpi/ic_attach_file_white.png
Normal file
After Width: | Height: | Size: 507 B |
BIN
vector/src/main/res/drawable-xxhdpi/ic_attach_file_white.png
Normal file
After Width: | Height: | Size: 809 B |
BIN
vector/src/main/res/drawable-xxxhdpi/ic_attach_file_white.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
62
vector/src/main/res/layout/dialog_export_e2e_keys.xml
Normal file
@ -0,0 +1,62 @@
|
||||
<?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"
|
||||
android:id="@+id/layout_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="?dialogPreferredPadding"
|
||||
android:paddingLeft="?dialogPreferredPadding"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingEnd="?dialogPreferredPadding"
|
||||
android:paddingRight="?dialogPreferredPadding"
|
||||
android:paddingBottom="12dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/encryption_export_notice"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:textColorHint="?attr/vctr_default_text_hint_color">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
android:id="@+id/dialog_e2e_keys_passphrase_edit_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/passphrase_create_passphrase"
|
||||
android:inputType="textPassword"
|
||||
android:textColor="?android:textColorPrimary" />
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/dialog_e2e_keys_confirm_passphrase_til"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:textColorHint="?attr/vctr_default_text_hint_color"
|
||||
app:errorEnabled="true">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
android:id="@+id/dialog_e2e_keys_confirm_passphrase_edit_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/passphrase_confirm_passphrase"
|
||||
android:inputType="textPassword"
|
||||
android:textColor="?android:textColorPrimary" />
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/dialog_e2e_keys_export_button"
|
||||
style="@style/VectorButtonStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:enabled="false"
|
||||
android:text="@string/encryption_export_export" />
|
||||
</LinearLayout>
|
@ -93,6 +93,17 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/attachmentButton"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@id/sendButton"
|
||||
android:layout_toLeftOf="@id/sendButton"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:src="@drawable/ic_attach_file_white"
|
||||
android:tint="?attr/colorAccent" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/sendButton"
|
||||
android:layout_width="48dp"
|
||||
@ -111,8 +122,8 @@
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@id/sendButton"
|
||||
android:layout_toLeftOf="@id/sendButton"
|
||||
android:layout_toStartOf="@id/attachmentButton"
|
||||
android:layout_toLeftOf="@id/attachmentButton"
|
||||
android:background="@android:color/transparent"
|
||||
android:gravity="center_vertical"
|
||||
android:hint="@string/room_message_placeholder_not_encrypted"
|
||||
|
53
vector/src/main/res/layout/item_dialog.xml
Normal file
@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2019 New Vector Ltd
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
|
||||
android:minHeight="48dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp">
|
||||
|
||||
<!-- Do not use drawableStart for icon size and for RTL -->
|
||||
<ImageView
|
||||
android:id="@+id/adapter_item_dialog_icon"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:rotationY="@integer/rtl_mirror_flip"
|
||||
android:tint="?attr/colorAccent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:src="@drawable/video_call_green" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/adapter_item_dialog_text"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/adapter_item_dialog_icon"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="@string/action_video_call" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|