Searched refs:illustration (Results 1 – 3 of 3) sorted by relevance
40 final Illustration illustration = new Illustration(InstrumentationRegistry.getContext()); in testWillDraw() local41 assertFalse("The illustration needs to be drawn", illustration.willNotDraw()); in testWillDraw()50 final Illustration illustration = new Illustration(context); in testAspectRatio() local51 illustration.setAspectRatio(3.0f); in testAspectRatio()54 illustration.setBackgroundDrawable(backgroundDrawable); in testAspectRatio()55 illustration.setIllustration(illustrationDrawable); in testAspectRatio()57 illustration.measure( in testAspectRatio()61 assertEquals("Top padding should be 96", 96, illustration.getPaddingTop()); in testAspectRatio()
48 private Drawable illustration; field in Illustration105 public void setIllustration(Drawable illustration) { in setIllustration() argument106 if (illustration == this.illustration) { in setIllustration()109 this.illustration = illustration; in setIllustration()153 if (illustration != null) { in onLayout()154 int intrinsicWidth = illustration.getIntrinsicWidth(); in onLayout()155 int intrinsicHeight = illustration.getIntrinsicHeight(); in onLayout()169 illustration.setBounds(illustrationBounds); in onLayout()200 if (illustration != null) { in onDraw()203 && shouldMirrorDrawable(illustration, getLayoutDirection())) { in onDraw()[all …]
110 final Drawable illustration = a.getDrawable(R.styleable.SuwSetupWizardLayout_suwIllustration); in init() local111 if (illustration != null) { in init()112 setIllustration(illustration); in init()229 final Illustration illustration = (Illustration) view; in setIllustration() local230 illustration.setIllustration(drawable); in setIllustration()246 final Illustration illustration = (Illustration) view; in setIllustration() local248 illustration.setIllustration(illustrationDrawable); in setIllustration()255 final Illustration illustration = (Illustration) view; in setIllustration() local257 illustration.setIllustration(illustrationDrawable); in setIllustration()271 final Illustration illustration = (Illustration) view; in setIllustrationAspectRatio() local[all …]