Android TextView Widget (Elon Video 003A)
Loading...
2,771
Loading...
Uploader Comments (ElonCsProf)
see all
All Comments (2)
-
im finding your videos very helpful but its impossible to read the text, do you have source code posted anywhere?
-
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.
Loading...
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