mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Added gradient background to start group call button
This commit is contained in:
parent
32c5f56be1
commit
656377875b
4 changed files with 34 additions and 2 deletions
9
app/src/main/res/drawable/keyboard.xml
Normal file
9
app/src/main/res/drawable/keyboard.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="96dp"
|
||||
android:height="96dp"
|
||||
android:viewportWidth="256"
|
||||
android:viewportHeight="256">
|
||||
<path
|
||||
android:pathData="M223.51,48h-191A16.51,16.51 0,0 0,16 64.49v127A16.51,16.51 0,0 0,32.49 208h191A16.51,16.51 0,0 0,240 191.51v-127A16.51,16.51 0,0 0,223.51 48ZM224,191.51a0.49,0.49 0,0 1,-0.49 0.49h-191a0.49,0.49 0,0 1,-0.49 -0.49v-127a0.49,0.49 0,0 1,0.49 -0.49h191a0.49,0.49 0,0 1,0.49 0.49ZM208,128a8,8 0,0 1,-8 8L56,136a8,8 0,0 1,0 -16L200,120A8,8 0,0 1,208 128ZM208,96a8,8 0,0 1,-8 8L56,104a8,8 0,0 1,0 -16L200,88A8,8 0,0 1,208 96ZM72,160a8,8 0,0 1,-8 8L56,168a8,8 0,0 1,0 -16h8A8,8 0,0 1,72 160ZM168,160a8,8 0,0 1,-8 8L96,168a8,8 0,0 1,0 -16h64A8,8 0,0 1,168 160ZM208,160a8,8 0,0 1,-8 8h-8a8,8 0,0 1,0 -16h8A8,8 0,0 1,208 160Z"
|
||||
android:fillColor="#4e6074"/>
|
||||
</vector>
|
||||
8
app/src/main/res/drawable/shape_gradient.xml
Normal file
8
app/src/main/res/drawable/shape_gradient.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<gradient
|
||||
android:type="linear"
|
||||
android:angle="0"
|
||||
android:startColor="@color/gradient_start"
|
||||
android:endColor="@color/white" />
|
||||
</shape>
|
||||
|
|
@ -60,7 +60,6 @@
|
|||
android:paddingStart="15dp"
|
||||
android:paddingEnd="15dp"
|
||||
android:drawableStart="@drawable/magnifying_glass"
|
||||
android:drawableEnd="@drawable/dialer"
|
||||
android:drawablePadding="10dp"
|
||||
android:drawableTint="@color/gray_9"
|
||||
android:background="@drawable/shape_search_square_background"
|
||||
|
|
@ -72,13 +71,25 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/title" />
|
||||
|
||||
<!-- margin start must be half the size of the group_call_icon below -->
|
||||
<View
|
||||
android:id="@+id/gradient_background"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="22dp"
|
||||
android:background="@drawable/shape_gradient"
|
||||
app:layout_constraintTop_toTopOf="@id/group_call_icon"
|
||||
app:layout_constraintBottom_toBottomOf="@id/group_call_icon"
|
||||
app:layout_constraintStart_toStartOf="@id/group_call_icon"
|
||||
app:layout_constraintEnd_toEndOf="@id/group_call_label" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/group_call_icon"
|
||||
android:visibility="@{viewModel.searchFilter.length() > 0 ? View.GONE : View.VISIBLE}"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:padding="10dp"
|
||||
android:src="@drawable/users_three"
|
||||
android:background="@drawable/shape_orange_round"
|
||||
|
|
@ -158,6 +169,7 @@
|
|||
android:layout_marginTop="8dp"
|
||||
android:visibility="@{viewModel.emptyContactsList ? View.GONE : View.VISIBLE}"
|
||||
app:layout_constraintVertical_bias="0"
|
||||
app:layout_constraintVertical_weight="6"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/all_contacts_label"
|
||||
|
|
@ -188,6 +200,7 @@
|
|||
android:layout_marginTop="8dp"
|
||||
android:visibility="@{viewModel.emptySuggestionsList ? View.GONE : View.VISIBLE}"
|
||||
app:layout_constraintVertical_bias="0"
|
||||
app:layout_constraintVertical_weight="1"
|
||||
app:layout_constraintHeight_max="220dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@
|
|||
<color name="warning_orange_pressed_background">#FFB266</color>
|
||||
<color name="dialog_background">#22334D</color>
|
||||
|
||||
<color name="gradient_start">#EEF7F8</color>
|
||||
|
||||
<color name="gray_1">#6C7A87</color>
|
||||
<color name="gray_2">#F9F9F9</color>
|
||||
<color name="gray_3">#EEF6F8</color>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue