Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MDCのBottomAppBarのShadowの実現方法

 MDCのBottomAppBarのShadowの実現方法

2019/1/28
potatotips #58

HiroYUKI Seto

January 28, 2019
Tweet

More Decks by HiroYUKI Seto

Other Decks in Technology

Transcript

  1. #PUUPN"QQ#BS࣮૷ EdgeTreatment topEdgeTreatment = new BottomAppBarTopEdgeTreatment(…); ShapeAppearanceModel appBarModel = materialShapeDrawable.getShapeAppearanceModel();

    appBarModel.setTopEdge(topEdgeTreatment); materialShapeDrawable.setShadowCompatibilityMode( SHADOW_COMPAT_MODE_ALWAYS); … ViewCompat. setBackground(this, materialShapeDrawable);