Create theme for BottomSheetDialog
This commit is contained in:
parent
27d1bfec7b
commit
9b9690be1a
2 changed files with 8 additions and 1 deletions
|
@ -41,6 +41,13 @@
|
|||
<item name="android:windowTranslucentStatus">true</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.BottomSheet">
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
<item name="android:backgroundDimAmount">0.5</item>
|
||||
<item name="android:backgroundDimEnabled">true</item>
|
||||
</style>
|
||||
|
||||
<style name="DialogActionButtonActive">
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
|
|
|
@ -10,7 +10,7 @@ import android.view.Window
|
|||
import android.view.WindowManager
|
||||
import net.osmand.telegram.R
|
||||
|
||||
class BottomSheetDialog(ctx: Context, themeId: Int) : Dialog(ctx, themeId) {
|
||||
class BottomSheetDialog(ctx: Context) : Dialog(ctx, R.style.AppTheme_BottomSheet) {
|
||||
|
||||
init {
|
||||
requestWindowFeature(Window.FEATURE_NO_TITLE)
|
||||
|
|
Loading…
Reference in a new issue