fix(android): initialize continuous switch text and interaction #250
This commit is contained in:
@@ -11,8 +11,8 @@ android {
|
||||
applicationId = "cn.ilapage.goauto.agent"
|
||||
minSdk = 23
|
||||
targetSdk = 34
|
||||
versionCode = 81
|
||||
versionName = "0.9.68"
|
||||
versionCode = 82
|
||||
versionName = "0.9.69"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
|
||||
@@ -263,6 +263,12 @@ class AgentSettingsFragment : Fragment() {
|
||||
}))
|
||||
addView(context.card(context.cardColumn().apply {
|
||||
continuousCollectionSwitch = MaterialSwitch(context).apply {
|
||||
// MaterialComponents themes may enable SwitchCompat's nullable internal text layout.
|
||||
showText = false
|
||||
textOn = "开启"
|
||||
textOff = "关闭"
|
||||
isClickable = true
|
||||
isFocusable = true
|
||||
text = "连续采集"
|
||||
textSize = 18f
|
||||
setTextColor(context.getColor(R.color.agent_text))
|
||||
|
||||
Reference in New Issue
Block a user