Creating the MainActivity menu

In the onCreateOptionsMenu(Menu) function of MainActivity, we inflated a menu that we have not yet implemented. Add a main.xml file in the menu package under the application resource directory. main.xml should contain the following content:

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never" />
<item
android:id="@+id/action_logout"
android:orderInCategory="100"
android:title="@string/action_logout"
app:showAsAction="never" />
</menu>

Fantastic work! We are one step closer to finishing this project. It is now time for us to work on the chat user The showConversationLoadError() and showMessageSendError() are functions that, interface (where the actual chatting happens).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.187.210