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
f0c45081
Commit
f0c45081
authored
Jul 29, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI修改
parent
a981a8fd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
RegionRecyclerViewAdapter.kt
m-consultant/src/main/java/com/yidianling/consultant/adapter/RegionRecyclerViewAdapter.kt
+3
-0
consultant_item_consult_type.xml
m-consultant/src/main/res/layout/consultant_item_consult_type.xml
+2
-2
consultant_item_region.xml
m-consultant/src/main/res/layout/consultant_item_region.xml
+5
-4
consultant_ui_region_popup_window.xml
m-consultant/src/main/res/layout/consultant_ui_region_popup_window.xml
+2
-2
No files found.
m-consultant/src/main/java/com/yidianling/consultant/adapter/RegionRecyclerViewAdapter.kt
View file @
f0c45081
...
@@ -30,11 +30,14 @@ class RegionRecyclerViewAdapter(
...
@@ -30,11 +30,14 @@ class RegionRecyclerViewAdapter(
holder
.
itemView
.
tvRegionName
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
holder
.
itemView
.
tvRegionName
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
holder
.
itemView
.
tvRegionName
.
setTextColor
(
context
.
resources
.
getColor
(
R
.
color
.
platform_main_theme
))
holder
.
itemView
.
tvRegionName
.
setTextColor
(
context
.
resources
.
getColor
(
R
.
color
.
platform_main_theme
))
holder
.
itemView
.
view_select
.
visibility
=
View
.
VISIBLE
holder
.
itemView
.
view_select
.
visibility
=
View
.
VISIBLE
holder
.
itemView
.
setBackgroundColor
(
context
.
resources
.
getColor
(
R
.
color
.
white
))
}
else
{
}
else
{
//未选中状态
//未选中状态
holder
.
itemView
.
tvRegionName
.
setTypeface
(
Typeface
.
DEFAULT
)
holder
.
itemView
.
tvRegionName
.
setTypeface
(
Typeface
.
DEFAULT
)
holder
.
itemView
.
tvRegionName
.
setTextColor
(
context
.
resources
.
getColor
(
R
.
color
.
platform_default_text_color
))
holder
.
itemView
.
tvRegionName
.
setTextColor
(
context
.
resources
.
getColor
(
R
.
color
.
platform_default_text_color
))
holder
.
itemView
.
view_select
.
visibility
=
View
.
INVISIBLE
holder
.
itemView
.
view_select
.
visibility
=
View
.
INVISIBLE
holder
.
itemView
.
setBackgroundColor
(
context
.
resources
.
getColor
(
R
.
color
.
platform_color_F7F7F7
))
}
}
}
}
...
...
m-consultant/src/main/res/layout/consultant_item_consult_type.xml
View file @
f0c45081
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:background=
"
?android:attr/selectableItemBackground
"
android:background=
"
@color/white
"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingLeft=
"16dp"
android:paddingLeft=
"16dp"
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
android:text=
"授权"
android:text=
"授权"
android:textColor=
"@color/platform_main_theme"
android:textColor=
"@color/platform_main_theme"
android:textSize=
"@dimen/platform_sp_14"
android:textSize=
"@dimen/platform_sp_14"
android:visibility=
"gone"
></TextView
>
android:visibility=
"gone"
/
>
<ImageView
<ImageView
android:id=
"@+id/ivCheckCircle"
android:id=
"@+id/ivCheckCircle"
...
...
m-consultant/src/main/res/layout/consultant_item_region.xml
View file @
f0c45081
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:background=
"@color/platform_white"
>
android:background=
"@color/platform_color_F7F7F7"
>
<View
<View
android:id=
"@+id/view_select"
android:id=
"@+id/view_select"
android:layout_width=
"4dp"
android:layout_width=
"4dp"
android:layout_height=
"21dp"
android:layout_height=
"21dp"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:background=
"@color/platform_main_theme"
android:background=
"@color/platform_main_theme"
android:visibility=
"invisible"
/>
android:visibility=
"invisible"
/>
<TextView
<TextView
android:id=
"@+id/tvRegionName"
android:id=
"@+id/tvRegionName"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
m-consultant/src/main/res/layout/consultant_ui_region_popup_window.xml
View file @
f0c45081
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
android:id=
"@+id/rvRegion"
android:id=
"@+id/rvRegion"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/platform_
white
"
android:background=
"@color/platform_
color_F7F7F7
"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:paddingTop=
"10dp"
android:paddingTop=
"10dp"
android:overScrollMode=
"never"
/>
android:overScrollMode=
"never"
/>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
android:id=
"@+id/rvSub"
android:id=
"@+id/rvSub"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/
platform_color_F7F7F7
"
android:background=
"@color/
white
"
android:layout_weight=
"2"
android:layout_weight=
"2"
android:paddingTop=
"10dp"
android:paddingTop=
"10dp"
android:overScrollMode=
"never"
/>
android:overScrollMode=
"never"
/>
...
...
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