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
a6628b40
Commit
a6628b40
authored
May 18, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:ui修改
parent
560d6c00
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
2 deletions
+42
-2
ConfideHomeEventImpl.kt
m-confide/src/main/java/com/ydl/confide/home/event/ConfideHomeEventImpl.kt
+7
-0
confide_progress.xml
m-confide/src/main/res/drawable/confide_progress.xml
+23
-0
confide_bottom_two.xml
m-confide/src/main/res/layout/confide_bottom_two.xml
+12
-2
No files found.
m-confide/src/main/java/com/ydl/confide/home/event/ConfideHomeEventImpl.kt
View file @
a6628b40
...
@@ -153,6 +153,9 @@ class ConfideHomeEventImpl(context: Context, var confideHomeView: IConfideHomeCo
...
@@ -153,6 +153,9 @@ class ConfideHomeEventImpl(context: Context, var confideHomeView: IConfideHomeCo
var
text_title
=
bottomSheetDialog
?.
findViewById
<
View
>(
R
.
id
.
text_title
)
var
text_title
=
bottomSheetDialog
?.
findViewById
<
View
>(
R
.
id
.
text_title
)
var
line
=
bottomSheetDialog
?.
findViewById
<
View
>(
R
.
id
.
line
)
var
line
=
bottomSheetDialog
?.
findViewById
<
View
>(
R
.
id
.
line
)
var
rl_title
=
bottomSheetDialog
?.
findViewById
<
View
>(
R
.
id
.
rl_title
)
var
rl_title
=
bottomSheetDialog
?.
findViewById
<
View
>(
R
.
id
.
rl_title
)
close_webview_Icon
?.
setOnClickListener
{
bottomSheetDialog
?.
hide
()
}
val
setting
:
WebSettings
=
wv_content
?.
settings
!!
val
setting
:
WebSettings
=
wv_content
?.
settings
!!
//支持js
//支持js
//支持js
//支持js
...
@@ -201,10 +204,14 @@ class ConfideHomeEventImpl(context: Context, var confideHomeView: IConfideHomeCo
...
@@ -201,10 +204,14 @@ class ConfideHomeEventImpl(context: Context, var confideHomeView: IConfideHomeCo
val
itemView
=
LayoutInflater
.
from
(
mContext
).
inflate
(
R
.
layout
.
confide_bottom_two
,
null
,
false
)
val
itemView
=
LayoutInflater
.
from
(
mContext
).
inflate
(
R
.
layout
.
confide_bottom_two
,
null
,
false
)
val
layoutCall
=
itemView
.
findViewById
<
View
>(
R
.
id
.
layoutCall
)
val
layoutCall
=
itemView
.
findViewById
<
View
>(
R
.
id
.
layoutCall
)
val
layoutChange
=
itemView
.
findViewById
<
View
>(
R
.
id
.
layoutChange
)
val
layoutChange
=
itemView
.
findViewById
<
View
>(
R
.
id
.
layoutChange
)
val
layout_change_text
=
itemView
.
findViewById
<
View
>(
R
.
id
.
layout_change_text
)
val
confide_progress
=
itemView
.
findViewById
<
View
>(
R
.
id
.
confide_progress
)
layoutCall
.
setOnClickListener
{
layoutCall
.
setOnClickListener
{
callJsFun
(
wv_content
,
"layoutCall()"
)
callJsFun
(
wv_content
,
"layoutCall()"
)
}
}
layoutChange
.
setOnClickListener
{
layoutChange
.
setOnClickListener
{
layout_change_text
.
visibility
=
View
.
GONE
confide_progress
.
visibility
=
View
.
VISIBLE
callJsFun
(
wv_content
,
"layoutCall()"
)
callJsFun
(
wv_content
,
"layoutCall()"
)
}
}
val
layoutParams
=
FrameLayout
.
LayoutParams
(
val
layoutParams
=
FrameLayout
.
LayoutParams
(
...
...
m-confide/src/main/res/drawable/confide_progress.xml
0 → 100644
View file @
a6628b40
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:pivotX=
"50%"
android:pivotY=
"50%"
android:fromDegrees=
"0"
android:toDegrees=
"360"
>
<shape
android:shape=
"ring"
android:innerRadiusRatio=
"3"
android:thicknessRatio=
"8"
android:useLevel=
"false"
>
<gradient
android:type=
"sweep"
android:useLevel=
"false"
android:startColor=
"#ffffff"
android:centerColor=
"#ffffff"
android:centerY=
"0.50"
android:endColor=
"@color/transparent"
/>
</shape>
</animated-rotate>
\ No newline at end of file
m-confide/src/main/res/layout/confide_bottom_two.xml
View file @
a6628b40
...
@@ -61,8 +61,17 @@
...
@@ -61,8 +61,17 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"再换一位"
android:text=
"再换一位"
android:id=
"@+id/layout_change_text"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"17sp"
/>
android:textSize=
"17sp"
/>
<ProgressBar
android:layout_width=
"@dimen/platform_dp_20"
android:layout_height=
"@dimen/platform_dp_20"
android:id=
"@+id/confide_progress"
android:visibility=
"gone"
android:indeterminateDrawable=
"@drawable/confide_progress"
>
</ProgressBar>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
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