@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); BudgetApplication.getComponent().inject(this); setContentView(R.layout.activity_edit_budget_basic); setupToolbar(); EditText amountEditText = (EditText) findViewById(R.id.budget_amount_edit); amountEditText.setText("" + budgetConfig.getBudgetAmount()); }
public void changeToAdvanced(View view) { budgetConfig.setBudgetMode(BudgetMode.ADVANCED); startActivity(new Intent(this, EditAdvancedBudgetActivity.class)); finish(); }
public void finished(View view) { EditText amountEditText = (EditText) findViewById(R.id.budget_amount_edit); budgetConfig.setBudgetAmount(Float.parseFloat(amountEditText.getText().toString())); startActivity(new Intent(this, MainActivity.class)); finish(); }