Computer Science, asked by srameshnpc7233, 1 year ago

How to implement click event on toolbar icon?

Answers

Answered by Anonymous
0

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"

xmlns:app="http://schemas.android.com/apk/res-auto"

android:id="@+id/rel_main"

android:layout_width="match_parent"

android:layout_height="match_parent"

tools:context="com.project.www.simpleproject.activity.MainActivity">

<android.support.v7.widget.Toolbar

android:id="@+id/mytoolbar"

android:layout_width="match_parent"

android:layout_height="?android:attr/actionBarSize"

android:background="?attr/colorPrimary"

app:theme="@style/AppToolbar">

Similar questions