Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- circlecrop
- ActivityResultContracts
- Blinking
- 403 Error
- App Startup
- Plugins
- ExifInterface
- webview
- navigation component
- LOG
- shotcut
- BottomSheetDialog
- room
- onReceivedSslError
- notification bar
- jsontokotlinclass
- Git
- prettyJson
- 이미지 gps
- datastore
- notification setting
- notification
- Android
- kdoc-generator
- ChromeCustomTab
- requestPermission
- onResume
- application
- skipcollapsed
- itemAnimator
Archives
- Today
- Total
Debbi Story
BottomSheetDialogFragment background 설정하기 본문
728x90
BottomSheetDialogFragment를 사용할때 background에 round를 주고싶었지만
xml에 설정을 해주어도 변경이 안되더라구요..
그럴때 AppTheme style에 bottomSheetDialogTheme를 추가해주시고
<item name="bottomSheetDialogTheme">@style/AppBottomSheetDialogTheme</item>
<style name="AppBottomSheetDialogTheme" parent="Theme.Design.Light.BottomSheetDialog">
<item name="bottomSheetStyle">@style/AppModalStyle</item>
</style>
<style name="AppModalStyle" parent="Widget.Design.BottomSheet.Modal">
<item name="android:background">@drawable/bg_dialog_border</item>
</style>
위처럼 style을 추가해주시면 background 설정이 가능합니다!
'안드로이드 > Tip' 카테고리의 다른 글
| Custom Notification bar 만들기 (0) | 2020.10.28 |
|---|---|
| Room Insert시 rowId 얻기 (0) | 2020.10.23 |
| DataBinding으로 layout_weight 값 적용하기 (0) | 2020.08.21 |
| ViewPager2의 notifyDataSetChanged() 안될 때 (0) | 2020.08.18 |
| ViewPager2 가 Fragment 안에 있을때 (0) | 2020.08.18 |