Commit 921bdbda by 徐健

修复华为设置默认年份异常

parent 508bda76
ext {
kotlin_version = "1.3.21"
dev_mode = false
dev_mode = true
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.14",
"m-user" : "0.0.59.15",
"m-home" : "0.0.19.1",
"m-im" : "0.0.16.2",
"m-dynamic" : "0.0.6.1",
......
......@@ -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 }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment