Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
2d9f6402
Commit
2d9f6402
authored
May 28, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: ui细节
parent
9d9a5c10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
ConfideBottomSheetDialogFragment.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
+2
-1
item_expert_intro.xml
m-confide/src/main/res/layout/item_expert_intro.xml
+2
-0
No files found.
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
View file @
2d9f6402
...
...
@@ -37,6 +37,7 @@ import com.yidianling.user.api.service.IUserService
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.schedulers.Schedulers
import
java.util.*
import
kotlin.math.roundToInt
class
ConfideBottomSheetDialogFragment
:
BottomSheetDialogFragment
()
{
companion
object
{
...
...
@@ -196,7 +197,7 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
val
bottomSheet
=
(
it
as
BottomSheetDialog
).
findViewById
<
View
>(
com
.
google
.
android
.
material
.
R
.
id
.
design_bottom_sheet
)
as
FrameLayout
?
val
behavior
=
BottomSheetBehavior
.
from
(
bottomSheet
!!
)
behavior
.
peekHeight
=
resources
.
displayMetrics
.
heightPixels
/
2
behavior
.
peekHeight
=
(
resources
.
displayMetrics
.
heightPixels
*
0.7F
).
roundToInt
()
//true是跳过peekHeight,直接滑下去,false是可以滑动到顶部还可以保持peekHeight在滑下去
// behavior?.skipCollapsed=true
behavior
.
addBottomSheetCallback
(
object
:
BottomSheetBehavior
.
BottomSheetCallback
()
{
...
...
m-confide/src/main/res/layout/item_expert_intro.xml
View file @
2d9f6402
...
...
@@ -79,6 +79,8 @@
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"23dp"
android:maxHeight=
"8dp"
android:paddingTop=
"4dp"
android:paddingBottom=
"4dp"
android:paddingStart=
"0dp"
android:paddingEnd=
"0dp"
android:progressDrawable=
"@drawable/confide_seekbar_style"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment