Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
circles-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Circles
circles-android
Commits
b42e652d
Commit
b42e652d
authored
1 year ago
by
Taras
Browse files
Options
Downloads
Patches
Plain Diff
Create TransparentBackgroundBottomSheetDialogFragment
parent
e84c739d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/java/org/futo/circles/core/fragment/TransparentBackgroundBottomSheetDialogFragment.kt
+27
-0
27 additions, 0 deletions
...ragment/TransparentBackgroundBottomSheetDialogFragment.kt
with
27 additions
and
0 deletions
core/src/main/java/org/futo/circles/core/fragment/TransparentBackgroundBottomSheetDialogFragment.kt
0 → 100644
+
27
−
0
View file @
b42e652d
package
org.futo.circles.core.fragment
import
android.app.Dialog
import
android.content.DialogInterface
import
android.graphics.Color
import
android.os.Bundle
import
android.view.View
import
com.google.android.material.bottomsheet.BottomSheetDialog
import
com.google.android.material.bottomsheet.BottomSheetDialogFragment
abstract
class
TransparentBackgroundBottomSheetDialogFragment
:
BottomSheetDialogFragment
()
{
override
fun
onCreateDialog
(
savedInstanceState
:
Bundle
?):
Dialog
{
val
dialog
=
super
.
onCreateDialog
(
savedInstanceState
)
as
BottomSheetDialog
dialog
.
setOnShowListener
{
setupBottomSheet
(
it
)
}
return
dialog
}
private
fun
setupBottomSheet
(
dialogInterface
:
DialogInterface
)
{
val
bottomSheetDialog
=
dialogInterface
as
BottomSheetDialog
val
bottomSheet
=
bottomSheetDialog
.
findViewById
<
View
>(
com
.
google
.
android
.
material
.
R
.
id
.
design_bottom_sheet
)
?:
return
bottomSheet
.
setBackgroundColor
(
Color
.
TRANSPARENT
)
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment