Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:clickable="true">
- <ImageView
- android:layout_centerInParent="true"
- android:id="@+id/notification"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/ic_notifications_black_24dp"/>
- <RelativeLayout
- android:layout_alignRight="@+id/notification"
- android:layout_alignTop="@+id/notification"
- android:layout_width="12dp"
- android:layout_height="12dp"
- android:background="@drawable/count_notification"
- tools:ignore="RtlHardcoded">
- <TextView
- android:layout_centerInParent="true"
- android:id="@+id/count"
- android:text="1"
- android:textColor="@android:color/white"
- android:textSize="8sp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- tools:ignore="HardcodedText" />
- </RelativeLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement