@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
@Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId();
//noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; }
return super.onOptionsItemSelected(item); } }
public class Rating { private float max; private float min; private float average; private String stars;
public float getMax() { return max; }
public void setMax(float max) { this.max = max; }
public float getMin() { return min; }
public void setMin(float min) { this.min = min; }
public float getAverage() { return average; }
public void setAverage(float average) { this.average = average; }
public String getStars() { return stars; }
public void setStars(String stars) { this.stars = stars; } }