I saw it used in textview and webview
android:id="@+id/textview"
android:id="@+id/webview"
but looks like there is none for DigitalClock widget.
So, when do I have to use it? Just for text and web views?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. That kind of identifiers are customizable by the programmer. It’s used to reference the Views from the Java code. For instance:
Of course, you can use any name you want. For example:
Will be referenced this way:
Another thing to bear in mind is that there are some IDs that are reserved. Any way, you will recognize user-created IDs because they contain a plus (+): @+id/whatever