The NEWLINE is just a convenience for when I want to add a new line character to the String buttonText that I build up to display on the Toast.
The private TextView mBoldTextView is the declaration of a variable mBoldTextView of type TextView. This variable will be assigned a reference to the TextView with the id bold specified in the layout/main.xml file.
m is prefix used in the Android coding conventions for private data members of a class.
im finding your videos very helpful but its impossible to read the text, do you have source code posted anywhere?
schwiz1 2 years ago
The NEWLINE is just a convenience for when I want to add a new line character to the String buttonText that I build up to display on the Toast.
The private TextView mBoldTextView is the declaration of a variable mBoldTextView of type TextView. This variable will be assigned a reference to the TextView with the id bold specified in the layout/main.xml file.
m is prefix used in the Android coding conventions for private data members of a class.
ElonCsProf 2 years ago
What does the ' private static final String NEWLINE = "\n" ' do?
Also when you write ' private TextView mBoldTextView; ' are you creating a new item which is the textview?
What is the m for?
Just needed a bit of justification.
saadumairgm 2 years ago