Exchange

Notification Count Badge in Android Studio






<FrameLayout
android:id="@+id/cart_frame_layout"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">

<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/ic_shop" />

<TextView
android:id="@+id/tv_cart_notify_count"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="top|end"
android:background="@drawable/circle_bg_notification"
android:text="0"
android:textAlignment="center"
android:textColor="@color/white" />
</FrameLayout>

 



Post a Comment

0 Comments