mirror of
https://github.com/Nezumi-2711/PRM392.git
synced 2026-09-22 20:00:53 +00:00
Search all food
This commit is contained in:
@@ -277,6 +277,7 @@ public class Home extends AppCompatActivity implements NavigationView.OnNavigati
|
||||
mSlider.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom);
|
||||
mSlider.setCustomAnimation(new DescriptionAnimation());
|
||||
mSlider.setDuration(4000);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -483,4 +484,18 @@ public class Home extends AppCompatActivity implements NavigationView.OnNavigati
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
getMenuInflater().inflate(R.menu.home, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
|
||||
if(item.getItemId() == R.id.menu_search)
|
||||
startActivity(new Intent(Home.this, SearchActivity.class));
|
||||
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user