Skip to content

Commit 7f65501

Browse files
committed
modified
1 parent e230c0b commit 7f65501

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

app/src/main/java/zorro/dimyon/calleridentity/services/PopupService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
import android.view.View;
1414
import android.view.WindowManager;
1515
import android.widget.FrameLayout;
16-
import android.widget.ImageView;
1716
import android.widget.TextView;
1817

1918
import androidx.core.app.NotificationCompat;
2019

2120
import com.bumptech.glide.Glide;
21+
import com.google.android.material.imageview.ShapeableImageView;
2222

2323
import zorro.dimyon.calleridentity.BuildConfig;
2424
import zorro.dimyon.calleridentity.R;
@@ -82,7 +82,7 @@ private void showPopup(String callerName, String address, boolean isSpamCall, St
8282
SwipeDismissLayout floatingCallerInfoMainLayout = popupView.findViewById(R.id.floatingCallerInfoMainLayout);
8383
TextView callerNameTV = popupView.findViewById(R.id.callerNameTV);
8484
TextView callerAddressTV = popupView.findViewById(R.id.callerAddressTV);
85-
ImageView callerProfileIV = popupView.findViewById(R.id.imageView);
85+
ShapeableImageView callerProfileIV = popupView.findViewById(R.id.callerProfileIV);
8686

8787
callerNameTV.setText(callerName);
8888
callerAddressTV.setText(address);

app/src/main/res/layout/floating_caller_info.xml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,29 @@
33
xmlns:tools="http://schemas.android.com/tools"
44
android:layout_width="wrap_content"
55
android:layout_height="wrap_content"
6+
xmlns:app="http://schemas.android.com/apk/res-auto"
67
android:background="@drawable/background_normal_floating_caller_info"
78
tools:ignore="HardcodedText"
89
android:id="@+id/floatingCallerInfoMainLayout"
910
android:padding="15dp">
1011

11-
<FrameLayout
12-
android:id="@+id/frameImageView"
13-
android:layout_width="wrap_content"
12+
<com.google.android.material.imageview.ShapeableImageView
13+
android:id="@+id/callerProfileIV"
14+
android:layout_width="50dp"
1415
android:layout_height="wrap_content"
15-
android:minWidth="45dp"
16+
android:contentDescription="Profile DP"
17+
android:src="@drawable/verified_user_24"
18+
android:background="@color/white"
19+
app:shapeAppearanceOverlay="@style/CircleImageViewStyle"
20+
android:adjustViewBounds="true"
1621
android:layout_alignParentStart="true"
17-
android:layout_centerVertical="true">
18-
19-
<ImageView
20-
android:id="@+id/imageView"
21-
android:layout_width="match_parent"
22-
android:layout_height="wrap_content"
23-
android:adjustViewBounds="true"
24-
android:background="@drawable/background_circle_shape_imageview"
25-
android:contentDescription="Caller Info"
26-
android:scaleType="centerCrop"
27-
android:src="@drawable/verified_user_24"
28-
tools:ignore="ImageContrastCheck" />
29-
30-
</FrameLayout>
22+
android:layout_centerVertical="true"/>
3123

3224
<LinearLayout
3325
android:layout_width="wrap_content"
3426
android:layout_height="wrap_content"
3527
android:layout_centerInParent="true"
36-
android:layout_toEndOf="@+id/frameImageView"
28+
android:layout_toEndOf="@+id/callerProfileIV"
3729
android:paddingHorizontal="15dp"
3830
android:gravity="center_vertical"
3931
android:orientation="vertical">

0 commit comments

Comments
 (0)