Added speaker off/on icons

This commit is contained in:
Sylvain Berfini 2023-08-20 18:39:18 +02:00
parent 9e4c71a3f0
commit 64855cba77
5 changed files with 29 additions and 14 deletions

View file

@ -53,6 +53,8 @@ class CurrentCallViewModel() : ViewModel() {
val isMicrophoneMuted = MutableLiveData<Boolean>()
val isSpeakerEnabled = MutableLiveData<Boolean>()
val fullScreenMode = MutableLiveData<Boolean>()
// To synchronize chronometers in UI

View file

@ -1,13 +0,0 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="vector"
android:width="33dp"
android:height="33dp"
android:viewportWidth="33"
android:viewportHeight="33">
<path
android:name="path"
android:pathData="M 4.5 12.193 L 4.5 20.193 L 9.833 20.193 L 16.5 26.86 L 16.5 5.527 L 9.833 12.193 L 4.5 12.193 Z M 13.833 11.967 L 13.833 20.42 L 10.94 17.527 L 7.167 17.527 L 7.167 14.86 L 10.94 14.86 L 13.833 11.967 Z M 22.5 16.193 C 22.5 13.833 21.14 11.807 19.167 10.82 L 19.167 21.553 C 21.14 20.58 22.5 18.553 22.5 16.193 Z M 19.167 4.5 L 19.167 7.247 C 23.02 8.393 25.833 11.967 25.833 16.193 C 25.833 20.42 23.02 23.993 19.167 25.14 L 19.167 27.887 C 24.513 26.673 28.5 21.9 28.5 16.193 C 28.5 10.487 24.513 5.713 19.167 4.5 Z"
android:fillColor="#ffffff"
android:strokeWidth="1"/>
</vector>

View file

@ -0,0 +1,13 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="vector"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:name="path"
android:pathData="M 4.34 2.935 L 2.93 4.345 L 7.29 8.705 L 7 9.005 L 3 9.005 L 3 15.005 L 7 15.005 L 12 20.005 L 12 13.415 L 16.18 17.595 C 15.53 18.085 14.8 18.475 14 18.705 L 14 20.765 C 15.34 20.465 16.57 19.845 17.61 19.015 L 19.66 21.065 L 21.07 19.655 L 4.34 2.935 Z M 10 15.175 L 7.83 13.005 L 5 13.005 L 5 11.005 L 7.83 11.005 L 8.71 10.125 L 10 11.415 L 10 15.175 Z M 19 12.005 C 19 12.825 18.85 13.615 18.59 14.345 L 20.12 15.875 C 20.68 14.705 21 13.395 21 12.005 C 21 7.725 18.01 4.145 14 3.235 L 14 5.295 C 16.89 6.155 19 8.835 19 12.005 Z M 12 4.005 L 10.12 5.885 L 12 7.765 L 12 4.005 Z M 16.5 12.005 C 16.5 10.235 15.48 8.715 14 7.975 L 14 9.765 L 16.48 12.245 C 16.49 12.165 16.5 12.085 16.5 12.005 Z"
android:fillColor="#000000"
android:strokeWidth="1"/>
</vector>

View file

@ -0,0 +1,13 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="vector"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:name="path_1"
android:pathData="M 3 8.77 L 3 14.77 L 7 14.77 L 12 19.77 L 12 3.77 L 7 8.77 L 3 8.77 Z M 10 8.6 L 10 14.94 L 7.83 12.77 L 5 12.77 L 5 10.77 L 7.83 10.77 L 10 8.6 Z M 16.5 11.77 C 16.5 10 15.48 8.48 14 7.74 L 14 15.79 C 15.48 15.06 16.5 13.54 16.5 11.77 Z M 14 3 L 14 5.06 C 16.89 5.92 19 8.6 19 11.77 C 19 14.94 16.89 17.62 14 18.48 L 14 20.54 C 18.01 19.63 21 16.05 21 11.77 C 21 7.49 18.01 3.91 14 3 Z"
android:fillColor="#000000"
android:strokeWidth="1"/>
</vector>

View file

@ -81,7 +81,7 @@
android:layout_height="@dimen/voip_button_size"
android:layout_marginEnd="30dp"
android:padding="@dimen/voip_button_icon_padding"
android:src="@drawable/speaker"
android:src="@{viewModel.isSpeakerEnabled ? @drawable/speaker_off : @drawable/speaker_on, default=@drawable/speaker_off}"
android:background="@drawable/in_call_button_background"
app:tint="@color/white"
app:layout_constraintBottom_toBottomOf="parent"