iApp5.0之BottomSheetDialog

iApp5.0之BottomSheetDialog
style.xml

<style name="BottomSheetStyle" parent="Theme.Design.Light.BottomSheetDialog">

<item name="android:windowIsFloating">false</item>

<item name="android:windowSoftInputMode">adjustResize</item>

<item name="android:statusBarColor">@android:color/transparent</item>

<item name="bottomSheetStyle">@style/bottomSheetStyleWrapper</item>

</style>

 

<style name="bottomSheetStyleWrapper" parent="Widget.Design.BottomSheet.Modal">

<item name="android:background">@android:color/transparent</item>

</style>

调用

s v=vw.inflate(lei,zy.b.dialog,null)
s an=st.an(v,zy.i.an1)
java {
  an.st.getBackground().setColorFilter(android.graphics.Color.parseColor("#008577"), android.graphics.PorterDuff.Mode.SRC_ATOP);
  android.support.design.widget.BottomSheetDialog bsd = new android.support.design.widget.BottomSheetDialog(lei,R.style.BottomSheetStyle);
  bsd.setContentView(v);
  bsd.show();
}
文章地址:漫夜 » iApp5.0之BottomSheetDialog
漫夜网QQ群
扫描二维码加入QQ群,一起在线交流!
1400+人已加过群
分享到:
赞(0) 打赏

网站不错赶快打赏吧!

支付宝扫一扫打赏

微信扫一扫打赏