Should I Add An Id?
This is my current code. package com.aaaa.ffff; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import and
Solution 1:
openSearch(); is basically a method called when you click that particular button in the menu.
You can substitute openSearch()
with a second activity you want to call when you press that button in the menu by this code :
Intent intent = newIntent(MainActivity.this, SecondActivity.class);
startActivity(intent);
Basically openSearch
denotes that a search function is to be performed when you click search icon in the action bar.
You can Google it. There are many examples.
Post a Comment for "Should I Add An Id?"