Bottom Navigation View highlight selected item
<p>I have added Bottom Navigation View to my activity XMl. I am unable to set the default checked item from the menu items. It always sets the first menu item as default. Also when I tap on other menu items the selected menu item is not hightlighted. If I programmatically set the item.setChecked(true) then the menu option gets highlighted but the first menu item is also highlighted. I am using </p>

<pre><code> compile 'com.android.support:design:25.0.1'
</code></pre>

<p>Here is the bottom Navigation view </p>

<pre><code>&lt;android.support.design.widget.BottomNavigationView
    android:id="@+id/bottom_navigation"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:itemBackground="@color/white"
    app:itemTextColor="@color/black"
    app:menu="@menu/navigation_menu"&gt;
&lt;/android.support.design.widget.BottomNavigationView&gt;
</code></pre>

<p>Here is the menu</p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
 &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"&gt;

&lt;item
    android:id="@+id/action_wallet"
    android:enabled="true"
    android:icon="@drawable/ic_account_balance_wallet_black_24dp"
    android:title="wallet"
    app:showAsAction="ifRoom"
    /&gt;
&lt;item
    android:id="@+id/action_card"
    android:enabled="true"
    android:title="allowance"
    android:icon="@drawable/ic_credit_card_black_24dp"
    app:showAsAction="ifRoom"
    /&gt;

&lt;item
    android:id="@+id/action_transaction"
    android:enabled="true"
    android:icon="@drawable/ic_description_black_24dp"
    android:title="transaction"
    app:showAsAction="ifRoom" /&gt;

&lt;/menu&gt;
</code></pre>

<p><a href="https://i.stack.imgur.com/smlVS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/smlVS.png" alt="Bottom Navigation View"></a>
Has anyone encountered this situation? Any Suggestions on how to handle this?</p>

<p>Thanks,
Priya</p>