Searched refs:layerDrawable (Results 1 – 1 of 1) sorted by relevance
55 LayerDrawable layerDrawable = new LayerDrawable(array); in testConstructor() local56 assertEquals(array.length, layerDrawable.getNumberOfLayers()); in testConstructor()57 assertSame(bitmapDrawable, layerDrawable.getDrawable(0)); in testConstructor()58 assertSame(colorDrawable, layerDrawable.getDrawable(1)); in testConstructor()61 layerDrawable = new LayerDrawable(array); in testConstructor()62 assertEquals(0, layerDrawable.getNumberOfLayers()); in testConstructor()73 LayerDrawable layerDrawable = new LayerDrawable(array); in testInflate() local78 layerDrawable.inflate(mContext.getResources(), parser, attrs); in testInflate()80 assertEquals(4, layerDrawable.getNumberOfLayers()); in testInflate()81 assertEquals(ColorDrawable.class, layerDrawable.getDrawable(0).getClass()); in testInflate()[all …]