Set proper icons for action bar in dashboard

This commit is contained in:
Bars107 2014-11-13 17:04:29 +02:00
parent c1a0620cef
commit e83ef8cb51

View file

@ -38,7 +38,7 @@ public class DashboardActivity extends SherlockFragmentActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.dashboard); setContentView(R.layout.dashboard);
getSupportActionBar().setTitle(R.string.app_version); getSupportActionBar().setTitle(R.string.app_version);
ColorDrawable color = new ColorDrawable(Color.parseColor("#FF9305")); ColorDrawable color = new ColorDrawable(Color.parseColor("#ff8f00"));
getSupportActionBar().setBackgroundDrawable(color); getSupportActionBar().setBackgroundDrawable(color);
getSupportActionBar().setIcon(android.R.color.transparent); getSupportActionBar().setIcon(android.R.color.transparent);
setupMapView(); setupMapView();
@ -215,11 +215,11 @@ public class DashboardActivity extends SherlockFragmentActivity {
@Override @Override
public boolean onPrepareOptionsMenu(Menu menu) { public boolean onPrepareOptionsMenu(Menu menu) {
menu.add(0, 0, 0, R.string.close).setIcon(R.drawable.help_icon) menu.add(0, 0, 0, R.string.close).setIcon(R.drawable.ic_ac_help)
.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
menu.add(0, 1, 0, R.string.settings).setIcon(R.drawable.ic_action_settings_light) menu.add(0, 1, 0, R.string.settings).setIcon(R.drawable.ic_ac_settings)
.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
menu.add(0, 2, 0, R.string.exit_Button).setIcon(R.drawable.headliner_close) menu.add(0, 2, 0, R.string.exit_Button).setIcon(R.drawable.ic_ac_close)
.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
return true; return true;
} }