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
921bdbda
Commit
921bdbda
authored
Mar 16, 2020
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复华为设置默认年份异常
parent
508bda76
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
config.gradle
config.gradle
+2
-2
CollectSexAndBirthActivity.kt
m-user/src/main/java/com/yidianling/user/ui/collect/CollectSexAndBirthActivity.kt
+4
-2
No files found.
config.gradle
View file @
921bdbda
ext
{
kotlin_version
=
"1.3.21"
dev_mode
=
fals
e
dev_mode
=
tru
e
ydl_app
=
[
appName
:
"心理咨询壹点灵"
,
...
...
@@ -45,7 +45,7 @@ ext {
"m-confide"
:
"0.0.48.6"
,
"m-consultant"
:
"0.0.57.4"
,
"m-fm"
:
"0.0.29.3"
,
"m-user"
:
"0.0.59.1
4
"
,
"m-user"
:
"0.0.59.1
5
"
,
"m-home"
:
"0.0.19.1"
,
"m-im"
:
"0.0.16.2"
,
"m-dynamic"
:
"0.0.6.1"
,
...
...
m-user/src/main/java/com/yidianling/user/ui/collect/CollectSexAndBirthActivity.kt
View file @
921bdbda
...
...
@@ -114,17 +114,19 @@ class CollectSexAndBirthActivity : BaseActivity() {
val
param
=
RelativeLayout
.
LayoutParams
(
RelativeLayout
.
LayoutParams
.
MATCH_PARENT
,
RxImageTool
.
dp2px
(
175f
))
user_collect_date_pick
.
layoutParams
=
param
user_collect_date_pick
.
value
=
selectedYear
user_collect_date_pick
?.
value
=
selectedYear
}
}
user_collect_date_pick
.
displayedValues
=
yearList
.
toTypedArray
()
user_collect_date_pick
.
value
=
selectedYear
user_collect_date_pick
.
minValue
=
1900
user_collect_date_pick
.
maxValue
=
nowYear
user_collect_date_pick
.
descendantFocusability
=
NumberPicker
.
FOCUS_BLOCK_DESCENDANTS
// 关闭编辑功能
user_collect_date_pick
.
wrapSelectorWheel
=
false
// 关闭循环
user_collect_date_pick
.
value
=
selectedYear
//更新用户选择的年份
user_collect_date_pick
.
setOnValueChangedListener
{
_
,
_
,
newVal
->
selectedYear
=
newVal
}
}
...
...
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