Modify ContractorCalculator to display the tax rate. Use two TextViews: One to display the text “Tax Rate:” and the other to display the current tax rate. Add a button “Change Rate” that will open a custom dialog that allows the user to enter the tax rate. Save the tax rate in a SharedPreferences object. When the dialog is closed the new tax rate should be displayed in the TextView. The app should use this rate for calculations until it is changed. The tax rate should be loaded from the SharedPreferences object anytime the app opens
Get Free Quote!
335 Experts Online