Skip to content

Instantly share code, notes, and snippets.

@carlosalexandresmo
Created March 31, 2018 00:32
Show Gist options
  • Save carlosalexandresmo/526ce91561a6423f608fb3e67ad06a07 to your computer and use it in GitHub Desktop.
Save carlosalexandresmo/526ce91561a6423f608fb3e67ad06a07 to your computer and use it in GitHub Desktop.
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/notifications.badge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|center_horizontal"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:background="@drawable/notification_badge"
android:gravity="center"
android:padding="3dp"
android:text="9+"
android:textColor="@color/white"
android:textSize="11sp" />
</FrameLayout>
@carlosalexandresmo
Copy link
Author

A XML file for Badge Bottom Navigation View

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment