What is attr in R class in Android? -
hello i've seen empty class named attr inside autogenerated r.java class; meaning? know styles can defined in style.xml style tag, don't know attr is? in advance c.
r.attr "theme attributes" (not styles).
they're defined in values xml file this:
<attr name="textappearancelarge" format="reference" />
they're used in view contructors defstyle parameter, in:
public textview (context context, attributeset attrs, int defstyle)
i'd imagine it's pretty rare apps add own attr values. ones in android.r.attr used if @ all.
Comments
Post a Comment