Post on 10-Mar-2019
rotating_loading
• <!-- res/drawable/rotating_loading.xml -->
• AnimatedRotateDrawable implements Animatable
animated_clock
• <!-- res/drawable/animated_clock.xml -->
• AnimatedVectorDrawable implements Animatable
• Introduced in Lollipop
Spans, a Powerful Concept
• Supported tags
– Defined by platform
– Can be extended with custom TagHandler
Spans, a Powerful Concept
• if a Span affects character-level text formatting, it extends CharacterStyle– e.g. ForegroundColorSpan, BackgroundColorSpan, UnderlineSpan
• if a Span affects paragraph-level text formatting, it implements ParagraphStyle• e.g. BulletSpan, IconMarginSpan, QuoteSpan
• if a Span modifies the character-level text appearance, it implements UpdateAppearance– e.g. ImageSpan, LocaleSpan, MaskFilterSpan, MetricAffectingSpan,
RasterizerSpan,, ReplacementSpan, ScaleXSpan, StrikethroughSpan, StyleSpan
• if a Span modifies the character-level text metrics|size, it implements UpdateLayout
• For more info: http://flavienlaurent.com/blog/2014/01/31/spans/