Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 3

UpdateAppearance

public interface UpdateAppearance

android.text.style.UpdateAppearance


The classes that affect character-level text in a way that modifies their appearance when one is added or removed must implement this interface. Note that if the class also impacts size or other metrics, it should instead implement UpdateLayout.