Android: which attribute will be used in XML if the Java code needs a reference to View?

Android: which attribute will be used in XML if the Java code needs a reference to View?



A. android: gravity
B. android: background
C. android: index
D. android: id


Answer: D


Learn More :