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
d4370995
Commit
d4370995
authored
May 30, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/qj/confide2' into 'd/v_confide_2.0'
feat: ui修改 See merge request app_android_lib/YDL-Component!92
parents
58b9b0fb
fe90b127
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
12 deletions
+19
-12
ConfideBottomSheetDialogFragment.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
+7
-3
confide_bg_color_666666.xml
m-confide/src/main/res/drawable/confide_bg_color_666666.xml
+2
-1
confide_bg_color_ff8f38.xml
m-confide/src/main/res/drawable/confide_bg_color_ff8f38.xml
+2
-1
confide_bg_main_color.xml
m-confide/src/main/res/drawable/confide_bg_main_color.xml
+2
-1
confide_recommend_view_new.xml
m-confide/src/main/res/layout/confide_recommend_view_new.xml
+6
-6
No files found.
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
View file @
d4370995
...
@@ -3,6 +3,8 @@ package com.ydl.confide.home
...
@@ -3,6 +3,8 @@ package com.ydl.confide.home
import
android.annotation.SuppressLint
import
android.annotation.SuppressLint
import
android.app.Dialog
import
android.app.Dialog
import
android.content.Intent
import
android.content.Intent
import
android.graphics.Color
import
android.graphics.drawable.ColorDrawable
import
android.net.Uri
import
android.net.Uri
import
android.os.Build
import
android.os.Build
import
android.os.Bundle
import
android.os.Bundle
...
@@ -246,19 +248,21 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
...
@@ -246,19 +248,21 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
behavior
?.
addBottomSheetCallback
(
object
:
BottomSheetBehavior
.
BottomSheetCallback
()
{
behavior
?.
addBottomSheetCallback
(
object
:
BottomSheetBehavior
.
BottomSheetCallback
()
{
override
fun
onStateChanged
(
bottomSheet
:
View
,
newState
:
Int
)
{
override
fun
onStateChanged
(
bottomSheet
:
View
,
newState
:
Int
)
{
when
(
newState
)
{
when
(
newState
)
{
3
->
{
BottomSheetBehavior
.
STATE_EXPANDED
->
{
bottomSheet
.
background
=
ColorDrawable
(
Color
.
WHITE
)
rl_title
.
visibility
=
View
.
VISIBLE
rl_title
.
visibility
=
View
.
VISIBLE
close_webview_Icon
.
visibility
=
View
.
VISIBLE
close_webview_Icon
.
visibility
=
View
.
VISIBLE
text_title
.
visibility
=
View
.
VISIBLE
text_title
.
visibility
=
View
.
VISIBLE
line
.
visibility
=
View
.
GONE
line
.
visibility
=
View
.
GONE
}
}
1
->
{
BottomSheetBehavior
.
STATE_DRAGGING
->
{
bottomSheet
.
setBackgroundResource
(
R
.
drawable
.
confide_bottom_webview
)
rl_title
.
visibility
=
View
.
VISIBLE
rl_title
.
visibility
=
View
.
VISIBLE
close_webview_Icon
.
visibility
=
View
.
GONE
close_webview_Icon
.
visibility
=
View
.
GONE
text_title
.
visibility
=
View
.
GONE
text_title
.
visibility
=
View
.
GONE
line
.
visibility
=
View
.
VISIBLE
line
.
visibility
=
View
.
VISIBLE
}
}
4
->
{
BottomSheetBehavior
.
STATE_COLLAPSED
->
{
rl_title
.
visibility
=
View
.
VISIBLE
rl_title
.
visibility
=
View
.
VISIBLE
line
.
visibility
=
View
.
VISIBLE
line
.
visibility
=
View
.
VISIBLE
}
}
...
...
m-confide/src/main/res/drawable/confide_bg_color_666666.xml
View file @
d4370995
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:bottomRightRadius=
"6dp"
/>
<corners
android:bottomRightRadius=
"6dp"
/>
<solid
android:color=
"#
B3BBC1CD
"
/>
<solid
android:color=
"#
4d000000
"
/>
</shape>
</shape>
\ No newline at end of file
m-confide/src/main/res/drawable/confide_bg_color_ff8f38.xml
View file @
d4370995
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:bottomRightRadius=
"6dp"
/>
<corners
android:bottomRightRadius=
"6dp"
/>
<solid
android:color=
"#
CCFF994B
"
/>
<solid
android:color=
"#
4d000000
"
/>
</shape>
</shape>
\ No newline at end of file
m-confide/src/main/res/drawable/confide_bg_main_color.xml
View file @
d4370995
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:bottomRightRadius=
"6dp"
/>
<corners
android:bottomRightRadius=
"6dp"
/>
<solid
android:color=
"#
701da1f2
"
/>
<solid
android:color=
"#
4d000000
"
/>
</shape>
</shape>
\ No newline at end of file
m-confide/src/main/res/layout/confide_recommend_view_new.xml
View file @
d4370995
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/platform_sp_14"
android:textSize=
"@dimen/platform_sp_14"
android:textColor=
"#
ACADB1
"
android:textColor=
"#
555555
"
android:textStyle=
"bold"
android:textStyle=
"bold"
tools:text=
"83%"
tools:text=
"83%"
/>
/>
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/platform_sp_12"
android:textSize=
"@dimen/platform_sp_12"
android:textColor=
"#
BCBCBC
"
android:textColor=
"#
69696A
"
android:text=
"接通率"
/>
android:text=
"接通率"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/platform_sp_14"
android:textSize=
"@dimen/platform_sp_14"
android:textColor=
"#
ACADB1
"
android:textColor=
"#
555555
"
android:textStyle=
"bold"
android:textStyle=
"bold"
android:layout_marginTop=
"12dp"
android:layout_marginTop=
"12dp"
tools:text=
"8000人"
tools:text=
"8000人"
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/platform_sp_12"
android:textSize=
"@dimen/platform_sp_12"
android:textColor=
"#
BCBCBC
"
android:textColor=
"#
69696A
"
android:text=
"倾诉人次"
android:text=
"倾诉人次"
/>
/>
</LinearLayout>
</LinearLayout>
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/platform_sp_14"
android:textSize=
"@dimen/platform_sp_14"
android:textColor=
"#
ACADB1
"
android:textColor=
"#
555555
"
android:textStyle=
"bold"
android:textStyle=
"bold"
android:layout_marginTop=
"12dp"
android:layout_marginTop=
"12dp"
tools:text=
"4.9"
tools:text=
"4.9"
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/platform_sp_12"
android:textSize=
"@dimen/platform_sp_12"
android:textColor=
"#
BCBCBC
"
android:textColor=
"#
69696A
"
android:text=
"评分"
android:text=
"评分"
/>
/>
</LinearLayout>
</LinearLayout>
...
...
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