Slide 5
Slide 5 text
Step Three: Consume the Attributes
●
Inside initView, after inflating the layout, retrieve the
attributes
●
TypedArray typedArray =
context.obtainStyledAttributes(attrs,
R.styleable.ComplexEditText);
●
Attributes may not be present
●
Some attributes may be represented in different formats
●
Don't forget to recycle the TypedArray