my requirement is to show unread notification count on footer like this: https://i.stack.imgur.com/IOaK0.jpg
am new to android and i really have no idea how to achieve this, i googled for this but not getting results.
this is my footer.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/footer_1"
android:layout_width="fill_parent"
android:layout_height="56dp"
android:layout_alignParentBottom="true"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="55dp"
android:background="@color/footer_bg"
android:clickable="true"
android:orientation="horizontal" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/footer_background"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical"
android:padding="5dp" >
<ImageView
android:id="@+id/footer_home_icon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:clickable="true"
android:duplicateParentState="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:src="@drawable/home_menu" />
<TextView
android:id="@+id/footer_home"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:duplicateParentState="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:gravity="center"
android:text="@string/footer_home"
android:textColor="@drawable/footer_text"
android:textSize="@dimen/footer_text" />
</LinearLayout>
<LinearLayout
android:id="@+id/alert_layout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/footer_background"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical"
android:padding="5dp" >
<ImageView
android:id="@+id/footer_alert_icon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:src="@drawable/alert_menu" />
<TextView
android:id="@+id/footer_alert"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:gravity="center"
android:text="@string/footer_alert"
android:textColor="@drawable/footer_text"
android:textSize="@dimen/footer_text" />
</LinearLayout>
</LinearLayout>
can anyone please tell me how i can do this?
Many thanks in advanced!!