#Day41 of #100DaysOfCode
Today I successfully build a Tip calculator android app called Tip Time. https://developer.android.com ![]()
Today I Learned:
- View binding lets us more easily write code that interacts with the UI elements in our app
- Use the
checkedRadioButtonIdattribute of aRadioGroupto find whichRadioButtonis selected. - Use
NumberFormat.getCurrencyInstance()to get a formatter to use for formatting numbers as currency. - We can use string parameters like
%sto create dynamic strings that can still be easily translated into other languages. - We can use Logcat in Android Studio to troubleshoot problems like the app crashing.
- Exceptions indicate a problem that the code didn’t expect.
- Not all code can handle
nullvalues, so be careful using it.
Shared on Twitter: https://bit.ly/363WAbP ![]()