Searched refs:illustration (Results 1 - 3 of 3) sorted by relevance

/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
H A DIllustrationTest.java42 final Illustration illustration = new Illustration(InstrumentationRegistry.getContext());
43 assertFalse("The illustration needs to be drawn", illustration.willNotDraw());
52 final Illustration illustration = new Illustration(context);
53 illustration.setAspectRatio(3.0f);
56 illustration.setBackgroundDrawable(backgroundDrawable);
57 illustration.setIllustration(illustrationDrawable);
59 illustration.measure(View.MeasureSpec.makeMeasureSpec(300, View.MeasureSpec.EXACTLY),
62 assertEquals("Top padding should be 96", 96, illustration.getPaddingTop());
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DSetupWizardLayout.java110 // Set the illustration from XML, either directly or built from image + horizontal tile
111 final Drawable illustration =
113 if (illustration != null) {
114 setIllustration(illustration);
125 // Set the top padding of the illustration
134 // Set the illustration aspect ratio. See Illustration.setAspectRatio(float). This will
222 * Set the illustration of the layout. The drawable will be applied as is, and the bounds will
227 * @param drawable The drawable specifying the illustration.
232 final Illustration illustration = (Illustration) view;
233 illustration
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DIllustration.java37 * Class to draw the illustration of setup wizard. The {@code aspectRatio} attribute determines the
38 * aspect ratio of the top padding, which leaves space for the illustration. Draws the illustration
42 * Otherwise the the aspect ratio will be ignored, only increasing the width of the illustration.
103 * Sets the drawable used as the illustration. The drawable is expected to have intrinsic
106 public void setIllustration(Drawable illustration) { argument
107 if (illustration == mIllustration) {
110 mIllustration = illustration;
116 * Set the aspect ratio reserved for the illustration. This overrides the top padding of the
180 // Draw the background filling parts not covered by the illustration
[all...]

Completed in 1311 milliseconds