forked from melod1n/fast-messenger
call in attachments
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="4dp">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_gravity="top"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/ic_play_button_circle_background"
|
||||
android:backgroundTint="@color/a3_200">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_attachment_call"
|
||||
app:tint="@color/a3_700" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="8dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/type"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="@font/google_sans_regular"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/n1_800"
|
||||
android:textSize="18sp"
|
||||
tools:text="Исходящий звонок" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/state"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:alpha="0.8"
|
||||
android:fontFamily="@font/roboto_regular"
|
||||
android:textColor="@color/n1_800"
|
||||
tools:text="Отменён" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
</layout>
|
||||
@@ -0,0 +1,56 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="4dp">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_gravity="top"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/ic_play_button_circle_background"
|
||||
android:backgroundTint="@color/a3_200">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_round_play_arrow_24"
|
||||
app:tint="@color/a3_700" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<com.masoudss.lib.WaveformSeekBar
|
||||
android:id="@+id/waveform"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="16dp"
|
||||
app:wave_background_color="@color/a2_300"
|
||||
app:wave_corner_radius="40dp"
|
||||
app:wave_gap="2dp"
|
||||
app:wave_gravity="center"
|
||||
app:wave_min_height="5dp"
|
||||
app:wave_progress_color="@color/n2_500"
|
||||
app:wave_width="3dp" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/duration"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginHorizontal="8dp"
|
||||
android:alpha="0.8"
|
||||
android:fontFamily="@font/roboto_regular"
|
||||
android:textColor="@color/n1_800"
|
||||
tools:text="0:36" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
</layout>
|
||||
@@ -56,6 +56,7 @@
|
||||
tools:ignore="UselessParent">
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:id="@+id/textContainer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
@@ -71,7 +72,6 @@
|
||||
tools:text="This" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
</com.meloda.fast.widget.BoundedLinearLayout>
|
||||
|
||||
<com.meloda.fast.widget.CircleImageView
|
||||
|
||||
@@ -38,15 +38,22 @@
|
||||
android:background="@drawable/ic_message_out_background"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/text"
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:id="@+id/textContainer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|start"
|
||||
android:padding="15dp"
|
||||
android:textColor="@color/n1_900"
|
||||
tools:text="This is test" />
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|start"
|
||||
android:padding="15dp"
|
||||
android:textColor="@color/n1_900"
|
||||
tools:text="This is test" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
</com.meloda.fast.widget.BoundedLinearLayout>
|
||||
|
||||
<Space
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
<color name="a2_100">@android:color/system_accent2_100</color>
|
||||
<color name="a2_200">@android:color/system_accent2_200</color>
|
||||
<color name="a2_300">@android:color/system_accent2_300</color>
|
||||
<color name="a2_700">@android:color/system_accent2_700</color>
|
||||
<color name="a1_1000">@android:color/system_accent2_1000</color>
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
|
||||
<color name="a2_100">#DCE1F7</color>
|
||||
<color name="a2_200">#C0C6DA</color>
|
||||
<color name="a2_300">#A4ABBF</color>
|
||||
<color name="a2_700">#414757</color>
|
||||
|
||||
<color name="a3_100">#F8D6FC</color>
|
||||
|
||||
@@ -140,4 +140,10 @@
|
||||
<string name="confirm_pin_conversation">Pin the conversation?</string>
|
||||
<string name="action_pin">Pin</string>
|
||||
<string name="action_unpin">Unpin</string>
|
||||
<string name="message_call_type_outgoing">Outgoing call</string>
|
||||
<string name="message_call_type_incoming">Incoming call</string>
|
||||
<string name="message_call_state_ended">Ended</string>
|
||||
<string name="message_call_state_cancelled">Cancelled</string>
|
||||
<string name="message_call_state_missed">Missed</string>
|
||||
<string name="message_call_unknown">Unknown</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user