mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Improved shapes
This commit is contained in:
parent
7016afa6f8
commit
ea155cd68c
15 changed files with 35 additions and 18 deletions
|
|
@ -0,0 +1,7 @@
|
|||
<?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/shape_button_round_pressed" />
|
||||
<item
|
||||
android:drawable="@drawable/shape_button_round" />
|
||||
</selector>
|
||||
5
app/src/main/res/drawable/shape_avatar_background.xml
Normal file
5
app/src/main/res/drawable/shape_avatar_background.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
|
||||
<size android:width="44dp" android:height="44dp" />
|
||||
<solid android:color="@color/blue_outgoing_message"/>
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/shape_button_round_pressed.xml
Normal file
5
app/src/main/res/drawable/shape_button_round_pressed.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
|
||||
<size android:width="44dp" android:height="44dp" />
|
||||
<solid android:color="@color/gray_6"/>
|
||||
</shape>
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
android:layout_marginTop="5dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
accountAvatar="@{model}"
|
||||
app:avatarViewPlaceholder="@drawable/contact_avatar"
|
||||
app:avatarViewInitialsBackgroundColor="@color/blue_outgoing_message"
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
android:layout_width="@dimen/avatar_big_size"
|
||||
android:layout_height="@dimen/avatar_big_size"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
coil="@{viewModel.picturePath}"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@
|
|||
android:layout_height="@dimen/avatar_big_size"
|
||||
android:layout_marginTop="8dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
contactAvatar="@{viewModel.callLogModel.avatarModel}"
|
||||
app:avatarViewInitialsBackgroundColor="@color/blue_outgoing_message"
|
||||
app:avatarViewInitialsTextColor="@color/gray_9"
|
||||
|
|
@ -158,7 +158,7 @@
|
|||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/call_chat_button_background"
|
||||
android:padding="16dp"
|
||||
android:src="@drawable/phone"
|
||||
app:tint="@color/gray_1"
|
||||
|
|
@ -185,7 +185,7 @@
|
|||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/call_chat_button_background"
|
||||
android:padding="16dp"
|
||||
android:src="@drawable/chat_dots"
|
||||
app:tint="@color/gray_1"
|
||||
|
|
@ -212,7 +212,7 @@
|
|||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/call_chat_button_background"
|
||||
android:padding="16dp"
|
||||
android:src="@drawable/video_camera"
|
||||
app:tint="@color/gray_1"
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginStart="5dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
contactAvatar="@{model.avatarModel}"
|
||||
app:avatarViewPlaceholder="@drawable/contact_avatar"
|
||||
app:avatarViewInitialsBackgroundColor="@color/blue_outgoing_message"
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
android:layout_width="@dimen/avatar_favorite_list_cell_size"
|
||||
android:layout_height="@dimen/avatar_favorite_list_cell_size"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
contactAvatar="@{model}"
|
||||
app:avatarViewPlaceholder="@drawable/contact_avatar"
|
||||
app:avatarViewInitialsBackgroundColor="@color/blue_outgoing_message"
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@
|
|||
android:layout_height="@dimen/avatar_big_size"
|
||||
android:layout_marginTop="8dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
contactAvatar="@{viewModel.contact}"
|
||||
app:avatarViewInitialsBackgroundColor="@color/blue_outgoing_message"
|
||||
app:avatarViewInitialsTextColor="@color/gray_9"
|
||||
|
|
@ -162,7 +162,7 @@
|
|||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/call_chat_button_background"
|
||||
android:padding="16dp"
|
||||
android:src="@drawable/phone"
|
||||
app:tint="@color/gray_1"
|
||||
|
|
@ -189,7 +189,7 @@
|
|||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/call_chat_button_background"
|
||||
android:padding="16dp"
|
||||
android:src="@drawable/chat_dots"
|
||||
app:tint="@color/gray_1"
|
||||
|
|
@ -216,7 +216,7 @@
|
|||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/call_chat_button_background"
|
||||
android:padding="16dp"
|
||||
android:src="@drawable/video_camera"
|
||||
app:tint="@color/gray_1"
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
android:layout_marginTop="5dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
contactAvatar="@{model}"
|
||||
app:avatarViewPlaceholder="@drawable/contact_avatar"
|
||||
app:avatarViewInitialsBackgroundColor="@color/blue_outgoing_message"
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@
|
|||
android:layout_width="@dimen/avatar_big_size"
|
||||
android:layout_height="@dimen/avatar_big_size"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
coil="@{viewModel.picturePath}"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
android:layout_width="@dimen/avatar_list_cell_size"
|
||||
android:layout_height="@dimen/avatar_list_cell_size"
|
||||
android:layout_marginStart="15dp"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
accountAvatar="@{viewModel.account}"
|
||||
app:avatarViewPlaceholder="@drawable/contact_avatar"
|
||||
app:avatarViewInitialsBackgroundColor="@color/blue_outgoing_message"
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@
|
|||
android:id="@+id/avatar"
|
||||
android:layout_width="@dimen/avatar_in_call_size"
|
||||
android:layout_height="@dimen/avatar_in_call_size"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
contactAvatar="@{viewModel.contact}"
|
||||
app:avatarViewInitialsBackgroundColor="@color/blue_outgoing_message"
|
||||
app:avatarViewInitialsTextColor="@color/gray_9"
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
android:id="@+id/avatar"
|
||||
android:layout_width="@dimen/avatar_in_call_size"
|
||||
android:layout_height="@dimen/avatar_in_call_size"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
contactAvatar="@{viewModel.contact}"
|
||||
app:avatarViewInitialsBackgroundColor="@color/blue_outgoing_message"
|
||||
app:avatarViewInitialsTextColor="@color/gray_9"
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@
|
|||
android:id="@+id/avatar"
|
||||
android:layout_width="@dimen/avatar_in_call_size"
|
||||
android:layout_height="@dimen/avatar_in_call_size"
|
||||
android:background="@drawable/shape_button_round"
|
||||
android:background="@drawable/shape_avatar_background"
|
||||
contactAvatar="@{viewModel.contact}"
|
||||
app:avatarViewInitialsBackgroundColor="@color/blue_outgoing_message"
|
||||
app:avatarViewInitialsTextColor="@color/gray_9"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue