Added icons to settings menu + replaced some images by using default + tint
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.5 KiB |
BIN
app/src/main/res/drawable-xhdpi/settings_advanced_default.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
app/src/main/res/drawable-xhdpi/settings_audio_default.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
app/src/main/res/drawable-xhdpi/settings_call_default.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
app/src/main/res/drawable-xhdpi/settings_chat_default.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
app/src/main/res/drawable-xhdpi/settings_contacts_default.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
app/src/main/res/drawable-xhdpi/settings_network_default.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
app/src/main/res/drawable-xhdpi/settings_video_default.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
|
@ -1,8 +1,20 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:drawable="@drawable/pause_disabled" android:state_enabled="false" />
|
<item android:state_pressed="true">
|
||||||
<item android:drawable="@drawable/pause_over_selected" android:state_selected="true" />
|
<bitmap android:src="@drawable/pause_default"
|
||||||
<item android:drawable="@drawable/pause_over_selected" android:state_pressed="true" />
|
android:tint="?attr/drawableTintOverColor"/>
|
||||||
<item android:drawable="@drawable/pause_default" />
|
</item>
|
||||||
|
<item android:state_enabled="false">
|
||||||
|
<bitmap android:src="@drawable/pause_default"
|
||||||
|
android:tint="?attr/drawableTintDisabledColor"/>
|
||||||
|
</item>
|
||||||
|
<item android:state_selected="true">
|
||||||
|
<bitmap android:src="@drawable/pause_default"
|
||||||
|
android:tint="?attr/drawableTintOverColor"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<bitmap android:src="@drawable/pause_default"
|
||||||
|
android:tint="?attr/drawableTintColor"/>
|
||||||
|
</item>
|
||||||
</selector>
|
</selector>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,20 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:drawable="@drawable/screenshot_disabled" android:state_enabled="false" />
|
<item android:state_pressed="true">
|
||||||
<item android:drawable="@drawable/screenshot_over" android:state_selected="true" />
|
<bitmap android:src="@drawable/screenshot_default"
|
||||||
<item android:drawable="@drawable/screenshot_over" android:state_pressed="true" />
|
android:tint="?attr/drawableTintOverColor"/>
|
||||||
<item android:drawable="@drawable/screenshot_default" />
|
</item>
|
||||||
|
<item android:state_enabled="false">
|
||||||
|
<bitmap android:src="@drawable/screenshot_default"
|
||||||
|
android:tint="?attr/drawableTintDisabledColor"/>
|
||||||
|
</item>
|
||||||
|
<item android:state_selected="true">
|
||||||
|
<bitmap android:src="@drawable/screenshot_default"
|
||||||
|
android:tint="?attr/drawableTintOverColor"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<bitmap android:src="@drawable/screenshot_default"
|
||||||
|
android:tint="?attr/drawableTintColor"/>
|
||||||
|
</item>
|
||||||
</selector>
|
</selector>
|
||||||
|
|
||||||
|
|
20
app/src/main/res/drawable/camera_switch.xml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_pressed="true">
|
||||||
|
<bitmap android:src="@drawable/camera_switch_default"
|
||||||
|
android:tint="?attr/drawableTintOverColor"/>
|
||||||
|
</item>
|
||||||
|
<item android:state_enabled="false">
|
||||||
|
<bitmap android:src="@drawable/camera_switch_default"
|
||||||
|
android:tint="?attr/drawableTintDisabledColor"/>
|
||||||
|
</item>
|
||||||
|
<item android:state_selected="true">
|
||||||
|
<bitmap android:src="@drawable/camera_switch_default"
|
||||||
|
android:tint="?attr/drawableTintOverColor"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<bitmap android:src="@drawable/camera_switch_default"
|
||||||
|
android:tint="?attr/drawableTintColor"/>
|
||||||
|
</item>
|
||||||
|
</selector>
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:drawable="@drawable/download_disabled" android:state_enabled="false" />
|
<item android:state_enabled="false">
|
||||||
|
<bitmap android:src="@drawable/download_default"
|
||||||
|
android:tint="?attr/drawableTintDisabledColor"/>
|
||||||
|
</item>
|
||||||
<item android:drawable="@drawable/download_default" />
|
<item android:drawable="@drawable/download_default" />
|
||||||
</selector>
|
</selector>
|
||||||
|
|
||||||
|
|
5
app/src/main/res/drawable/round_button_background.xml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item
|
||||||
|
android:drawable="@drawable/round_button_background_default" />
|
||||||
|
</selector>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
|
||||||
|
<solid android:color="@color/light_grey_color"/>
|
||||||
|
<size android:width="30dp" android:height="30dp"/>
|
||||||
|
</shape>
|
9
app/src/main/res/drawable/settings_advanced.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_pressed="true">
|
||||||
|
<bitmap android:src="@drawable/settings_advanced_default"
|
||||||
|
android:tint="?attr/accentColor"/>
|
||||||
|
</item>
|
||||||
|
<item android:drawable="@drawable/settings_advanced_default" />
|
||||||
|
</selector>
|
||||||
|
|
9
app/src/main/res/drawable/settings_audio.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_pressed="true">
|
||||||
|
<bitmap android:src="@drawable/settings_audio_default"
|
||||||
|
android:tint="?attr/accentColor"/>
|
||||||
|
</item>
|
||||||
|
<item android:drawable="@drawable/settings_audio_default" />
|
||||||
|
</selector>
|
||||||
|
|
9
app/src/main/res/drawable/settings_call.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_pressed="true">
|
||||||
|
<bitmap android:src="@drawable/settings_call_default"
|
||||||
|
android:tint="?attr/accentColor"/>
|
||||||
|
</item>
|
||||||
|
<item android:drawable="@drawable/settings_call_default" />
|
||||||
|
</selector>
|
||||||
|
|
9
app/src/main/res/drawable/settings_chat.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_pressed="true">
|
||||||
|
<bitmap android:src="@drawable/settings_chat_default"
|
||||||
|
android:tint="?attr/accentColor"/>
|
||||||
|
</item>
|
||||||
|
<item android:drawable="@drawable/settings_chat_default" />
|
||||||
|
</selector>
|
||||||
|
|
9
app/src/main/res/drawable/settings_contacts.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_pressed="true">
|
||||||
|
<bitmap android:src="@drawable/settings_contacts_default"
|
||||||
|
android:tint="?attr/accentColor"/>
|
||||||
|
</item>
|
||||||
|
<item android:drawable="@drawable/settings_contacts_default" />
|
||||||
|
</selector>
|
||||||
|
|
9
app/src/main/res/drawable/settings_network.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_pressed="true">
|
||||||
|
<bitmap android:src="@drawable/settings_network_default"
|
||||||
|
android:tint="?attr/accentColor"/>
|
||||||
|
</item>
|
||||||
|
<item android:drawable="@drawable/settings_network_default" />
|
||||||
|
</selector>
|
||||||
|
|
9
app/src/main/res/drawable/settings_video.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_pressed="true">
|
||||||
|
<bitmap android:src="@drawable/settings_video_default"
|
||||||
|
android:tint="?attr/accentColor"/>
|
||||||
|
</item>
|
||||||
|
<item android:drawable="@drawable/settings_video_default" />
|
||||||
|
</selector>
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:state_pressed="true"
|
|
||||||
android:drawable="@drawable/camera_switch_over" />
|
|
||||||
<item
|
|
||||||
android:drawable="@drawable/camera_switch_default" />
|
|
||||||
</selector>
|
|
|
@ -112,9 +112,12 @@
|
||||||
android:layout_below="@id/active_call_header"
|
android:layout_below="@id/active_call_header"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_margin="20dp"
|
android:layout_margin="20dp"
|
||||||
|
android:background="@drawable/round_button_background"
|
||||||
|
android:padding="10dp"
|
||||||
android:src="@drawable/call_pause" />
|
android:src="@drawable/call_pause" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
android:id="@+id/switch_camera"
|
||||||
android:onClick="@{() -> controlsViewModel.switchCamera()}"
|
android:onClick="@{() -> controlsViewModel.switchCamera()}"
|
||||||
android:enabled="@{!viewModel.callPausedByRemote}"
|
android:enabled="@{!viewModel.callPausedByRemote}"
|
||||||
android:visibility="@{controlsViewModel.isVideoEnabled && controlsViewModel.showSwitchCamera && (viewModel.conferenceCalls.size() == 0 || viewModel.isConferencePaused) ? View.VISIBLE : View.GONE, default=gone}"
|
android:visibility="@{controlsViewModel.isVideoEnabled && controlsViewModel.showSwitchCamera && (viewModel.conferenceCalls.size() == 0 || viewModel.isConferencePaused) ? View.VISIBLE : View.GONE, default=gone}"
|
||||||
|
@ -124,7 +127,23 @@
|
||||||
android:layout_below="@id/active_call_header"
|
android:layout_below="@id/active_call_header"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_margin="20dp"
|
android:layout_margin="20dp"
|
||||||
android:src="@drawable/switch_camera" />
|
android:background="@drawable/round_button_background"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:src="@drawable/camera_switch" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:onClick="@{() -> viewModel.takeScreenshot()}"
|
||||||
|
android:enabled="@{!viewModel.callPausedByRemote}"
|
||||||
|
android:visibility="@{controlsViewModel.isVideoEnabled && controlsViewModel.takeScreenshotEnabled && (viewModel.conferenceCalls.size() == 0 || viewModel.isConferencePaused) ? View.VISIBLE : View.GONE, default=gone}"
|
||||||
|
android:contentDescription="@string/content_description_take_screenshot"
|
||||||
|
android:layout_width="50dp"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:layout_below="@id/active_call_header"
|
||||||
|
android:layout_toRightOf="@id/switch_camera"
|
||||||
|
android:layout_margin="20dp"
|
||||||
|
android:background="@drawable/round_button_background"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:src="@drawable/call_screenshot" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:onClick="@{() -> controlsViewModel.toggleRecording(false)}"
|
android:onClick="@{() -> controlsViewModel.toggleRecording(false)}"
|
||||||
|
|
|
@ -46,7 +46,9 @@
|
||||||
android:layout_width="50dp"
|
android:layout_width="50dp"
|
||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:layout_margin="20dp"
|
android:layout_margin="20dp"
|
||||||
android:src="@drawable/switch_camera" />
|
android:background="@drawable/round_button_background"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:src="@drawable/camera_switch" />
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/ui_layout"
|
android:id="@+id/ui_layout"
|
||||||
|
|
|
@ -108,43 +108,50 @@
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.audioSettingsListener}"
|
linphone:listener="@{viewModel.audioSettingsListener}"
|
||||||
android:visibility="@{viewModel.showAudioSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showAudioSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_audio_title}" />
|
linphone:title="@{@string/settings_audio_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_audio}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.videoSettingsListener}"
|
linphone:listener="@{viewModel.videoSettingsListener}"
|
||||||
android:visibility="@{viewModel.showVideoSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showVideoSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_video_title}" />
|
linphone:title="@{@string/settings_video_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_video}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.callSettingsListener}"
|
linphone:listener="@{viewModel.callSettingsListener}"
|
||||||
android:visibility="@{viewModel.showCallSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showCallSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_call_title}" />
|
linphone:title="@{@string/settings_call_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_call}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.chatSettingsListener}"
|
linphone:listener="@{viewModel.chatSettingsListener}"
|
||||||
android:visibility="@{viewModel.showChatSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showChatSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_chat_title}" />
|
linphone:title="@{@string/settings_chat_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_chat}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.networkSettingsListener}"
|
linphone:listener="@{viewModel.networkSettingsListener}"
|
||||||
android:visibility="@{viewModel.showNetworkSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showNetworkSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_network_title}" />
|
linphone:title="@{@string/settings_network_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_network}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.contactsSettingsListener}"
|
linphone:listener="@{viewModel.contactsSettingsListener}"
|
||||||
android:visibility="@{viewModel.showContactsSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showContactsSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_contacts_title}" />
|
linphone:title="@{@string/settings_contacts_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_contacts}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.advancedSettingsListener}"
|
linphone:listener="@{viewModel.advancedSettingsListener}"
|
||||||
android:visibility="@{viewModel.showAdvancedSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showAdvancedSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_advanced_title}" />
|
linphone:title="@{@string/settings_advanced_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_advanced}" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,9 @@
|
||||||
android:layout_width="50dp"
|
android:layout_width="50dp"
|
||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:layout_margin="20dp"
|
android:layout_margin="20dp"
|
||||||
android:src="@drawable/switch_camera" />
|
android:background="@drawable/round_button_background"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:src="@drawable/camera_switch" />
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/ui_layout"
|
android:id="@+id/ui_layout"
|
||||||
|
|
|
@ -108,43 +108,50 @@
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.audioSettingsListener}"
|
linphone:listener="@{viewModel.audioSettingsListener}"
|
||||||
android:visibility="@{viewModel.showAudioSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showAudioSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_audio_title}" />
|
linphone:title="@{@string/settings_audio_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_audio}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.videoSettingsListener}"
|
linphone:listener="@{viewModel.videoSettingsListener}"
|
||||||
android:visibility="@{viewModel.showVideoSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showVideoSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_video_title}" />
|
linphone:title="@{@string/settings_video_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_video}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.callSettingsListener}"
|
linphone:listener="@{viewModel.callSettingsListener}"
|
||||||
android:visibility="@{viewModel.showCallSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showCallSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_call_title}" />
|
linphone:title="@{@string/settings_call_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_call}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.chatSettingsListener}"
|
linphone:listener="@{viewModel.chatSettingsListener}"
|
||||||
android:visibility="@{viewModel.showChatSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showChatSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_chat_title}" />
|
linphone:title="@{@string/settings_chat_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_chat}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.networkSettingsListener}"
|
linphone:listener="@{viewModel.networkSettingsListener}"
|
||||||
android:visibility="@{viewModel.showNetworkSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showNetworkSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_network_title}" />
|
linphone:title="@{@string/settings_network_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_network}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.contactsSettingsListener}"
|
linphone:listener="@{viewModel.contactsSettingsListener}"
|
||||||
android:visibility="@{viewModel.showContactsSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showContactsSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_contacts_title}" />
|
linphone:title="@{@string/settings_contacts_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_contacts}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
linphone:listener="@{viewModel.advancedSettingsListener}"
|
linphone:listener="@{viewModel.advancedSettingsListener}"
|
||||||
android:visibility="@{viewModel.showAdvancedSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showAdvancedSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:title="@{@string/settings_advanced_title}" />
|
linphone:title="@{@string/settings_advanced_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_advanced}" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,9 @@
|
||||||
android:layout_width="50dp"
|
android:layout_width="50dp"
|
||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:layout_margin="5dp"
|
android:layout_margin="5dp"
|
||||||
android:src="@drawable/switch_camera"/>
|
android:background="@drawable/round_button_background"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:src="@drawable/camera_switch"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,8 @@
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:padding="10dp"
|
android:padding="10dp"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/switch_camera" />
|
android:background="@drawable/round_button_background"
|
||||||
|
android:src="@drawable/camera_switch" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/pause_conference"
|
android:id="@+id/pause_conference"
|
||||||
|
@ -99,6 +100,7 @@
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:padding="10dp"
|
android:padding="10dp"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
|
android:background="@drawable/round_button_background"
|
||||||
android:src="@drawable/call_pause" />
|
android:src="@drawable/call_pause" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
@ -203,6 +205,8 @@
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:contentDescription="@string/content_description_resume_conference"
|
android:contentDescription="@string/content_description_resume_conference"
|
||||||
|
android:background="@drawable/round_button_background"
|
||||||
|
android:padding="10dp"
|
||||||
android:src="@drawable/call_pause" />
|
android:src="@drawable/call_pause" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -218,6 +222,8 @@
|
||||||
android:layout_below="@id/active_call_header"
|
android:layout_below="@id/active_call_header"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_margin="20dp"
|
android:layout_margin="20dp"
|
||||||
|
android:background="@drawable/round_button_background"
|
||||||
|
android:padding="10dp"
|
||||||
android:src="@drawable/call_pause" />
|
android:src="@drawable/call_pause" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -231,7 +237,9 @@
|
||||||
android:layout_below="@id/active_call_header"
|
android:layout_below="@id/active_call_header"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_margin="20dp"
|
android:layout_margin="20dp"
|
||||||
android:src="@drawable/switch_camera" />
|
android:background="@drawable/round_button_background"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:src="@drawable/camera_switch" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:onClick="@{() -> viewModel.takeScreenshot()}"
|
android:onClick="@{() -> viewModel.takeScreenshot()}"
|
||||||
|
@ -243,6 +251,8 @@
|
||||||
android:layout_below="@id/active_call_header"
|
android:layout_below="@id/active_call_header"
|
||||||
android:layout_toRightOf="@id/switch_camera"
|
android:layout_toRightOf="@id/switch_camera"
|
||||||
android:layout_margin="20dp"
|
android:layout_margin="20dp"
|
||||||
|
android:background="@drawable/round_button_background"
|
||||||
|
android:padding="10dp"
|
||||||
android:src="@drawable/call_screenshot" />
|
android:src="@drawable/call_screenshot" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
|
@ -55,6 +55,8 @@
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
|
android:background="@drawable/round_button_background"
|
||||||
|
android:padding="10dp"
|
||||||
android:src="@drawable/call_pause" />
|
android:src="@drawable/call_pause" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -102,43 +102,50 @@
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
android:visibility="@{viewModel.showAudioSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showAudioSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:listener="@{viewModel.audioSettingsListener}"
|
linphone:listener="@{viewModel.audioSettingsListener}"
|
||||||
linphone:title="@{@string/settings_audio_title}" />
|
linphone:title="@{@string/settings_audio_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_audio}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
android:visibility="@{viewModel.showVideoSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showVideoSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:listener="@{viewModel.videoSettingsListener}"
|
linphone:listener="@{viewModel.videoSettingsListener}"
|
||||||
linphone:title="@{@string/settings_video_title}" />
|
linphone:title="@{@string/settings_video_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_video}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
android:visibility="@{viewModel.showCallSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showCallSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:listener="@{viewModel.callSettingsListener}"
|
linphone:listener="@{viewModel.callSettingsListener}"
|
||||||
linphone:title="@{@string/settings_call_title}" />
|
linphone:title="@{@string/settings_call_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_call}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
android:visibility="@{viewModel.showChatSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showChatSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:listener="@{viewModel.chatSettingsListener}"
|
linphone:listener="@{viewModel.chatSettingsListener}"
|
||||||
linphone:title="@{@string/settings_chat_title}" />
|
linphone:title="@{@string/settings_chat_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_chat}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
android:visibility="@{viewModel.showNetworkSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showNetworkSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:listener="@{viewModel.networkSettingsListener}"
|
linphone:listener="@{viewModel.networkSettingsListener}"
|
||||||
linphone:title="@{@string/settings_network_title}" />
|
linphone:title="@{@string/settings_network_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_network}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
android:visibility="@{viewModel.showContactsSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showContactsSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:listener="@{viewModel.contactsSettingsListener}"
|
linphone:listener="@{viewModel.contactsSettingsListener}"
|
||||||
linphone:title="@{@string/settings_contacts_title}" />
|
linphone:title="@{@string/settings_contacts_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_contacts}" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_basic"
|
layout="@layout/settings_widget_basic"
|
||||||
android:visibility="@{viewModel.showAdvancedSettings ? View.VISIBLE : View.GONE}"
|
android:visibility="@{viewModel.showAdvancedSettings ? View.VISIBLE : View.GONE}"
|
||||||
linphone:listener="@{viewModel.advancedSettingsListener}"
|
linphone:listener="@{viewModel.advancedSettingsListener}"
|
||||||
linphone:title="@{@string/settings_advanced_title}" />
|
linphone:title="@{@string/settings_advanced_title}"
|
||||||
|
linphone:icon="@{@drawable/settings_advanced}" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
<variable
|
<variable
|
||||||
name="enabled"
|
name="enabled"
|
||||||
type="Boolean" />
|
type="Boolean" />
|
||||||
|
<variable
|
||||||
|
name="icon"
|
||||||
|
type="android.graphics.drawable.Drawable" />
|
||||||
<variable
|
<variable
|
||||||
name="listener"
|
name="listener"
|
||||||
type="org.linphone.activities.main.settings.SettingListener" />
|
type="org.linphone.activities.main.settings.SettingListener" />
|
||||||
|
@ -23,6 +26,16 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/icon"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:layout_marginLeft="10dp"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:src="@{icon}" />
|
||||||
|
|
||||||
<org.linphone.views.MarqueeTextView
|
<org.linphone.views.MarqueeTextView
|
||||||
android:id="@+id/settings_title"
|
android:id="@+id/settings_title"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -34,6 +47,7 @@
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
|
android:layout_toRightOf="@id/icon"
|
||||||
style="@style/settings_item_font"/>
|
style="@style/settings_item_font"/>
|
||||||
|
|
||||||
<org.linphone.views.MarqueeTextView
|
<org.linphone.views.MarqueeTextView
|
||||||
|
@ -47,6 +61,7 @@
|
||||||
android:layout_below="@id/settings_title"
|
android:layout_below="@id/settings_title"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
|
android:layout_toRightOf="@id/icon"
|
||||||
style="@style/settings_item_subtitle_font"/>
|
style="@style/settings_item_subtitle_font"/>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
|
|
|
@ -37,8 +37,8 @@
|
||||||
android:visibility="@{title.length() > 0 ? View.VISIBLE : View.GONE}"
|
android:visibility="@{title.length() > 0 ? View.VISIBLE : View.GONE}"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="20dp"
|
||||||
style="@style/settings_item_font"/>
|
style="@style/settings_item_font"/>
|
||||||
|
|
||||||
<org.linphone.views.MarqueeTextView
|
<org.linphone.views.MarqueeTextView
|
||||||
|
@ -50,8 +50,8 @@
|
||||||
android:visibility="@{subtitle.length() > 0 ? View.VISIBLE : View.GONE}"
|
android:visibility="@{subtitle.length() > 0 ? View.VISIBLE : View.GONE}"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:layout_below="@id/settings_title"
|
android:layout_below="@id/settings_title"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="20dp"
|
||||||
style="@style/settings_item_subtitle_font"/>
|
style="@style/settings_item_subtitle_font"/>
|
||||||
|
|
||||||
<Spinner
|
<Spinner
|
||||||
|
@ -63,8 +63,8 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/settings_subtitle"
|
android:layout_below="@id/settings_subtitle"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:layout_marginRight="10dp" />
|
android:layout_marginRight="20dp" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="20dp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:layout_toLeftOf="@id/setting_switch"
|
android:layout_toLeftOf="@id/setting_switch"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
style="@style/settings_item_font"/>
|
style="@style/settings_item_font"/>
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:layout_below="@id/settings_title"
|
android:layout_below="@id/settings_title"
|
||||||
android:layout_toLeftOf="@id/setting_switch"
|
android:layout_toLeftOf="@id/setting_switch"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
style="@style/settings_item_subtitle_font"/>
|
style="@style/settings_item_subtitle_font"/>
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="20dp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:layout_toLeftOf="@id/setting_switch"
|
android:layout_toLeftOf="@id/setting_switch"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
style="@style/settings_item_font"/>
|
style="@style/settings_item_font"/>
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:layout_below="@id/settings_title"
|
android:layout_below="@id/settings_title"
|
||||||
android:layout_toLeftOf="@id/setting_switch"
|
android:layout_toLeftOf="@id/setting_switch"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
style="@style/settings_item_subtitle_font"/>
|
style="@style/settings_item_subtitle_font"/>
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
android:layout_below="@id/settings_subtitle"
|
android:layout_below="@id/settings_subtitle"
|
||||||
android:layout_toLeftOf="@id/setting_switch"
|
android:layout_toLeftOf="@id/setting_switch"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
android:enabled="@{enabled ?? true}"
|
android:enabled="@{enabled ?? true}"
|
||||||
android:hint="@{text_title}"
|
android:hint="@{text_title}"
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
android:layout_width="20dp"
|
android:layout_width="20dp"
|
||||||
android:layout_height="20dp"
|
android:layout_height="20dp"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="20dp"
|
||||||
android:src="@drawable/clean_field"
|
android:src="@drawable/clean_field"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_centerVertical="true" />
|
android:layout_centerVertical="true" />
|
||||||
|
|