@qusaieilouti99/call-manager 0.1.94 → 0.1.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="#40FFFFFF">
3
+ <item>
4
+ <shape android:shape="oval">
5
+ <gradient
6
+ android:startColor="#FF4CAF50"
7
+ android:endColor="#FF388E3C"
8
+ android:angle="135" />
9
+ <stroke android:width="2dp" android:color="#FF66BB6A" />
10
+ </shape>
11
+ </item>
12
+ </ripple>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
3
+ <gradient
4
+ android:startColor="#40000000"
5
+ android:centerColor="#20000000"
6
+ android:endColor="#00000000"
7
+ android:type="radial"
8
+ android:gradientRadius="40dp" />
9
+ </shape>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="#40FFFFFF">
3
+ <item>
4
+ <shape android:shape="oval">
5
+ <gradient
6
+ android:startColor="#FFF44336"
7
+ android:endColor="#FFD32F2F"
8
+ android:angle="135" />
9
+ <stroke android:width="2dp" android:color="#FFEF5350" />
10
+ </shape>
11
+ </item>
12
+ </ripple>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <vector xmlns:android="http://schemas.android.com/apk/res/android"
3
+ android:width="136dp"
4
+ android:height="136dp"
5
+ android:viewportWidth="24"
6
+ android:viewportHeight="24">
7
+ <path
8
+ android:fillColor="#FF9E9E9E"
9
+ android:pathData="M12,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zM12,14c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z"/>
10
+ </vector>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <item>
4
+ <shape>
5
+ <gradient
6
+ android:startColor="#FF0D1B2A"
7
+ android:centerColor="#FF1B263B"
8
+ android:endColor="#FF415A77"
9
+ android:angle="135" />
10
+ </shape>
11
+ </item>
12
+ <item>
13
+ <shape>
14
+ <gradient
15
+ android:startColor="#15FFFFFF"
16
+ android:centerColor="#08FFFFFF"
17
+ android:endColor="#00FFFFFF"
18
+ android:angle="45" />
19
+ </shape>
20
+ </item>
21
+ </layer-list>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
3
+ <solid android:color="#FFFFFF" />
4
+ <stroke android:width="3dp" android:color="#E0E0E0" />
5
+ </shape>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
3
+ <solid android:color="#F5F5F5" />
4
+ </shape>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
3
+ <stroke android:width="1dp" android:color="#40FFFFFF" />
4
+ <solid android:color="#08FFFFFF" />
5
+ </shape>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
3
+ <stroke android:width="2dp" android:color="#30FFFFFF" />
4
+ <solid android:color="#10FFFFFF" />
5
+ </shape>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="#30FFFFFF">
3
+ <item>
4
+ <shape android:shape="rectangle">
5
+ <solid android:color="#20FFFFFF" />
6
+ <corners android:radius="16dp" />
7
+ <stroke android:width="1dp" android:color="#30FFFFFF" />
8
+ </shape>
9
+ </item>
10
+ </ripple>
@@ -1,166 +1,244 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
- android:id="@+id/call_root"
4
- android:layout_width="match_parent"
5
- android:layout_height="match_parent"
6
- android:background="@drawable/call_background">
7
-
8
- <!-- Overlay for better text readability -->
2
+ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
+ android:layout_width="match_parent"
4
+ android:layout_height="match_parent"
5
+ android:background="#FF0D1B2A">
6
+
7
+ <!-- Professional gradient background -->
8
+ <View
9
+ android:layout_width="match_parent"
10
+ android:layout_height="match_parent"
11
+ android:background="@drawable/professional_bg" />
12
+
13
+ <!-- Main content container -->
14
+ <LinearLayout
15
+ android:layout_width="match_parent"
16
+ android:layout_height="match_parent"
17
+ android:orientation="vertical"
18
+ android:gravity="center_horizontal"
19
+ android:fitsSystemWindows="true">
20
+
21
+ <!-- Top spacing -->
9
22
  <View
10
- android:layout_width="match_parent"
11
- android:layout_height="match_parent"
12
- android:background="@drawable/overlay_gradient" />
23
+ android:layout_width="match_parent"
24
+ android:layout_height="0dp"
25
+ android:layout_weight="1" />
13
26
 
14
- <!-- Top section with incoming call info -->
27
+ <!-- Call type indicator -->
15
28
  <LinearLayout
16
- android:id="@+id/top_section"
17
- android:layout_width="match_parent"
18
- android:layout_height="wrap_content"
19
- android:layout_centerInParent="true"
20
- android:layout_marginTop="80dp"
21
- android:gravity="center"
22
- android:orientation="vertical"
23
- android:padding="32dp">
29
+ android:layout_width="wrap_content"
30
+ android:layout_height="wrap_content"
31
+ android:orientation="horizontal"
32
+ android:gravity="center_vertical"
33
+ android:layout_marginBottom="32dp">
34
+
35
+ <ImageView
36
+ android:layout_width="18dp"
37
+ android:layout_height="18dp"
38
+ android:src="@android:drawable/ic_menu_call"
39
+ android:tint="#80FFFFFF"
40
+ android:layout_marginEnd="8dp" />
41
+
42
+ <TextView
43
+ android:layout_width="wrap_content"
44
+ android:layout_height="wrap_content"
45
+ android:text="Incoming call"
46
+ android:textColor="#80FFFFFF"
47
+ android:textSize="14sp"
48
+ android:fontFamily="sans-serif-medium" />
49
+ </LinearLayout>
24
50
 
25
- <TextView
26
- android:layout_width="wrap_content"
27
- android:layout_height="wrap_content"
28
- android:text="Incoming call"
29
- android:textColor="#B3FFFFFF"
30
- android:textSize="16sp"
31
- android:layout_marginBottom="24dp"
32
- android:letterSpacing="0.1" />
33
-
34
- <!-- Avatar with glow effect -->
35
- <FrameLayout
36
- android:layout_width="140dp"
37
- android:layout_height="140dp"
38
- android:layout_marginBottom="24dp">
39
-
40
- <View
41
- android:layout_width="140dp"
42
- android:layout_height="140dp"
43
- android:background="@drawable/avatar_glow" />
44
-
45
- <ImageView
46
- android:id="@+id/avatar"
47
- android:layout_width="120dp"
48
- android:layout_height="120dp"
49
- android:layout_gravity="center"
50
- android:background="@drawable/avatar_bg"
51
- android:scaleType="centerCrop"
52
- android:src="@android:drawable/sym_def_app_icon" />
53
- </FrameLayout>
51
+ <!-- Profile picture with animated rings -->
52
+ <FrameLayout
53
+ android:layout_width="180dp"
54
+ android:layout_height="180dp"
55
+ android:layout_marginBottom="32dp">
56
+
57
+ <!-- Outer pulse ring -->
58
+ <View
59
+ android:layout_width="180dp"
60
+ android:layout_height="180dp"
61
+ android:background="@drawable/pulse_ring_outer" />
62
+
63
+ <!-- Middle pulse ring -->
64
+ <View
65
+ android:layout_width="160dp"
66
+ android:layout_height="160dp"
67
+ android:layout_gravity="center"
68
+ android:background="@drawable/pulse_ring_middle" />
69
+
70
+ <!-- Profile picture -->
71
+ <FrameLayout
72
+ android:layout_width="140dp"
73
+ android:layout_height="140dp"
74
+ android:layout_gravity="center">
75
+
76
+ <!-- Profile background -->
77
+ <View
78
+ android:layout_width="140dp"
79
+ android:layout_height="140dp"
80
+ android:background="@drawable/profile_bg" />
81
+
82
+ <!-- Actual profile image -->
83
+ <ImageView
84
+ android:id="@+id/avatar"
85
+ android:layout_width="136dp"
86
+ android:layout_height="136dp"
87
+ android:layout_gravity="center"
88
+ android:background="@drawable/profile_image_bg"
89
+ android:scaleType="centerCrop"
90
+ android:src="@drawable/default_avatar" />
91
+ </FrameLayout>
92
+ </FrameLayout>
93
+
94
+ <!-- Caller information -->
95
+ <LinearLayout
96
+ android:layout_width="wrap_content"
97
+ android:layout_height="wrap_content"
98
+ android:orientation="vertical"
99
+ android:gravity="center"
100
+ android:layout_marginBottom="24dp">
101
+
102
+ <TextView
103
+ android:id="@+id/caller_name"
104
+ android:layout_width="wrap_content"
105
+ android:layout_height="wrap_content"
106
+ android:text="John Doe"
107
+ android:textColor="#FFFFFF"
108
+ android:textSize="32sp"
109
+ android:fontFamily="sans-serif-light"
110
+ android:gravity="center"
111
+ android:layout_marginBottom="4dp" />
112
+
113
+ <TextView
114
+ android:layout_width="wrap_content"
115
+ android:layout_height="wrap_content"
116
+ android:text="Mobile • +1 (555) 123-4567"
117
+ android:textColor="#B3FFFFFF"
118
+ android:textSize="16sp"
119
+ android:fontFamily="sans-serif" />
120
+ </LinearLayout>
54
121
 
55
- <TextView
56
- android:id="@+id/caller_name"
57
- android:layout_width="wrap_content"
58
- android:layout_height="wrap_content"
59
- android:text="Caller Name"
60
- android:textColor="#FFFFFF"
61
- android:textSize="28sp"
62
- android:textStyle="bold"
63
- android:layout_marginBottom="8dp"
64
- android:shadowColor="#33000000"
65
- android:shadowDx="0"
66
- android:shadowDy="2"
67
- android:shadowRadius="4" />
122
+ <!-- Middle spacing -->
123
+ <View
124
+ android:layout_width="match_parent"
125
+ android:layout_height="0dp"
126
+ android:layout_weight="2" />
127
+
128
+ <!-- Quick actions (Samsung style) -->
129
+ <LinearLayout
130
+ android:layout_width="match_parent"
131
+ android:layout_height="wrap_content"
132
+ android:orientation="horizontal"
133
+ android:gravity="center"
134
+ android:layout_marginBottom="32dp">
135
+
136
+ <!-- Remind me -->
137
+ <LinearLayout
138
+ android:layout_width="wrap_content"
139
+ android:layout_height="wrap_content"
140
+ android:orientation="vertical"
141
+ android:gravity="center"
142
+ android:padding="12dp"
143
+ android:layout_marginEnd="40dp"
144
+ android:background="@drawable/quick_action_bg"
145
+ android:clickable="true">
146
+
147
+ <ImageView
148
+ android:layout_width="24dp"
149
+ android:layout_height="24dp"
150
+ android:src="@android:drawable/ic_menu_recent_history"
151
+ android:tint="#FFFFFF"
152
+ android:layout_marginBottom="4dp" />
68
153
 
69
154
  <TextView
70
- android:layout_width="wrap_content"
71
- android:layout_height="wrap_content"
72
- android:text="Mobile"
73
- android:textColor="#B3FFFFFF"
74
- android:textSize="16sp"
75
- android:layout_marginBottom="48dp" />
155
+ android:layout_width="wrap_content"
156
+ android:layout_height="wrap_content"
157
+ android:text="Remind me"
158
+ android:textColor="#FFFFFF"
159
+ android:textSize="12sp" />
160
+ </LinearLayout>
161
+
162
+ <!-- Message -->
163
+ <LinearLayout
164
+ android:layout_width="wrap_content"
165
+ android:layout_height="wrap_content"
166
+ android:orientation="vertical"
167
+ android:gravity="center"
168
+ android:padding="12dp"
169
+ android:background="@drawable/quick_action_bg"
170
+ android:clickable="true">
171
+
172
+ <ImageView
173
+ android:layout_width="24dp"
174
+ android:layout_height="24dp"
175
+ android:src="@android:drawable/ic_menu_send"
176
+ android:tint="#FFFFFF"
177
+ android:layout_marginBottom="4dp" />
76
178
 
179
+ <TextView
180
+ android:layout_width="wrap_content"
181
+ android:layout_height="wrap_content"
182
+ android:text="Message"
183
+ android:textColor="#FFFFFF"
184
+ android:textSize="12sp" />
185
+ </LinearLayout>
77
186
  </LinearLayout>
78
187
 
79
- <!-- Bottom section with action buttons -->
188
+ <!-- Main call actions -->
80
189
  <LinearLayout
81
- android:layout_width="match_parent"
82
- android:layout_height="wrap_content"
83
- android:layout_alignParentBottom="true"
84
- android:layout_marginBottom="80dp"
85
- android:gravity="center"
86
- android:orientation="horizontal"
87
- android:padding="32dp">
88
-
89
- <!-- Additional quick actions -->
90
- <FrameLayout
91
- android:layout_width="56dp"
92
- android:layout_height="56dp"
93
- android:layout_marginEnd="32dp">
94
-
95
- <ImageView
96
- android:layout_width="56dp"
97
- android:layout_height="56dp"
98
- android:background="@drawable/action_button_secondary"
99
- android:src="@android:drawable/ic_menu_call"
100
- android:padding="16dp"
101
- android:tint="#FFFFFF" />
102
- </FrameLayout>
103
-
104
- <!-- Decline Button -->
105
- <FrameLayout
106
- android:layout_width="80dp"
107
- android:layout_height="80dp"
108
- android:layout_marginEnd="48dp">
109
-
110
- <View
111
- android:layout_width="80dp"
112
- android:layout_height="80dp"
113
- android:background="@drawable/decline_button_shadow" />
114
-
115
- <Button
116
- android:id="@+id/decline_btn"
117
- android:layout_width="72dp"
118
- android:layout_height="72dp"
119
- android:layout_gravity="center"
120
- android:background="@drawable/decline_button"
121
- android:text="✕"
122
- android:textColor="#FFFFFF"
123
- android:textSize="24sp"
124
- android:textStyle="bold" />
125
- </FrameLayout>
126
-
127
- <!-- Answer Button -->
128
- <FrameLayout
129
- android:layout_width="80dp"
130
- android:layout_height="80dp">
131
-
132
- <View
133
- android:layout_width="80dp"
134
- android:layout_height="80dp"
135
- android:background="@drawable/answer_button_shadow" />
136
-
137
- <Button
138
- android:id="@+id/answer_btn"
139
- android:layout_width="72dp"
140
- android:layout_height="72dp"
141
- android:layout_gravity="center"
142
- android:background="@drawable/answer_button"
143
- android:text="✓"
144
- android:textColor="#FFFFFF"
145
- android:textSize="24sp"
146
- android:textStyle="bold" />
147
- </FrameLayout>
148
-
149
- <!-- Message quick action -->
150
- <FrameLayout
151
- android:layout_width="56dp"
152
- android:layout_height="56dp"
153
- android:layout_marginStart="32dp">
154
-
155
- <ImageView
156
- android:layout_width="56dp"
157
- android:layout_height="56dp"
158
- android:background="@drawable/action_button_secondary"
159
- android:src="@android:drawable/ic_menu_send"
160
- android:padding="16dp"
161
- android:tint="#FFFFFF" />
162
- </FrameLayout>
163
-
190
+ android:layout_width="match_parent"
191
+ android:layout_height="wrap_content"
192
+ android:orientation="horizontal"
193
+ android:gravity="center"
194
+ android:layout_marginBottom="48dp">
195
+
196
+ <!-- Decline button -->
197
+ <FrameLayout
198
+ android:layout_width="80dp"
199
+ android:layout_height="80dp"
200
+ android:layout_marginEnd="80dp">
201
+
202
+ <!-- Button shadow -->
203
+ <View
204
+ android:layout_width="80dp"
205
+ android:layout_height="80dp"
206
+ android:background="@drawable/button_shadow" />
207
+
208
+ <Button
209
+ android:id="@+id/decline_btn"
210
+ android:layout_width="72dp"
211
+ android:layout_height="72dp"
212
+ android:layout_gravity="center"
213
+ android:background="@drawable/decline_btn_bg"
214
+ android:text="✕"
215
+ android:textColor="#FFFFFF"
216
+ android:textSize="28sp"
217
+ android:textStyle="bold" />
218
+ </FrameLayout>
219
+
220
+ <!-- Answer button -->
221
+ <FrameLayout
222
+ android:layout_width="80dp"
223
+ android:layout_height="80dp">
224
+
225
+ <!-- Button shadow -->
226
+ <View
227
+ android:layout_width="80dp"
228
+ android:layout_height="80dp"
229
+ android:background="@drawable/button_shadow" />
230
+
231
+ <Button
232
+ android:id="@+id/answer_btn"
233
+ android:layout_width="72dp"
234
+ android:layout_height="72dp"
235
+ android:layout_gravity="center"
236
+ android:background="@drawable/answer_btn_bg"
237
+ android:text="✓"
238
+ android:textColor="#FFFFFF"
239
+ android:textSize="28sp"
240
+ android:textStyle="bold" />
241
+ </FrameLayout>
164
242
  </LinearLayout>
165
-
166
- </RelativeLayout>
243
+ </LinearLayout>
244
+ </FrameLayout>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qusaieilouti99/call-manager",
3
- "version": "0.1.94",
3
+ "version": "0.1.95",
4
4
  "description": "Call manager",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <ripple xmlns:android="http://schemas.android.com/apk/res/android"
3
- android:color="#30FFFFFF">
4
- <item>
5
- <shape android:shape="oval">
6
- <solid android:color="#40FFFFFF" />
7
- <stroke
8
- android:width="2dp"
9
- android:color="#60FFFFFF" />
10
- </shape>
11
- </item>
12
- </ripple>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <ripple xmlns:android="http://schemas.android.com/apk/res/android"
3
- android:color="#40FFFFFF">
4
- <item>
5
- <shape android:shape="oval">
6
- <gradient
7
- android:startColor="#4CAF50"
8
- android:endColor="#388E3C"
9
- android:angle="135" />
10
- <stroke
11
- android:width="3dp"
12
- android:color="#66BB6A" />
13
- </shape>
14
- </item>
15
- </ripple>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <shape xmlns:android="http://schemas.android.com/apk/res/android"
3
- android:shape="oval">
4
- <gradient
5
- android:startColor="#40000000"
6
- android:centerColor="#20000000"
7
- android:endColor="#00000000"
8
- android:type="radial"
9
- android:gradientRadius="40dp" />
10
- </shape>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <shape xmlns:android="http://schemas.android.com/apk/res/android"
3
- android:shape="oval">
4
- <solid android:color="#FFFFFF" />
5
- <stroke
6
- android:width="4dp"
7
- android:color="#40FFFFFF" />
8
- </shape>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <shape xmlns:android="http://schemas.android.com/apk/res/android"
3
- android:shape="oval">
4
- <gradient
5
- android:startColor="#40FFFFFF"
6
- android:centerColor="#20FFFFFF"
7
- android:endColor="#00FFFFFF"
8
- android:type="radial"
9
- android:gradientRadius="70dp" />
10
- </shape>
@@ -1,24 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3
- <!-- Base gradient -->
4
- <item>
5
- <shape>
6
- <gradient
7
- android:startColor="#1a237e"
8
- android:centerColor="#283593"
9
- android:endColor="#3949ab"
10
- android:angle="135" />
11
- </shape>
12
- </item>
13
-
14
- <!-- Abstract pattern overlay -->
15
- <item>
16
- <shape>
17
- <gradient
18
- android:startColor="#20FFFFFF"
19
- android:centerColor="#10FFFFFF"
20
- android:endColor="#05FFFFFF"
21
- android:angle="45" />
22
- </shape>
23
- </item>
24
- </layer-list>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <ripple xmlns:android="http://schemas.android.com/apk/res/android"
3
- android:color="#40FFFFFF">
4
- <item>
5
- <shape android:shape="oval">
6
- <gradient
7
- android:startColor="#F44336"
8
- android:endColor="#D32F2F"
9
- android:angle="135" />
10
- <stroke
11
- android:width="3dp"
12
- android:color="#EF5350" />
13
- </shape>
14
- </item>
15
- </ripple>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <shape xmlns:android="http://schemas.android.com/apk/res/android"
3
- android:shape="oval">
4
- <gradient
5
- android:startColor="#40000000"
6
- android:centerColor="#20000000"
7
- android:endColor="#00000000"
8
- android:type="radial"
9
- android:gradientRadius="40dp" />
10
- </shape>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <shape xmlns:android="http://schemas.android.com/apk/res/android">
3
- <gradient
4
- android:startColor="#30000000"
5
- android:centerColor="#20000000"
6
- android:endColor="#40000000"
7
- android:angle="90" />
8
- </shape>