代码格式化

This commit is contained in:
level 2024-07-30 16:22:07 +08:00
parent e21004aa43
commit 1c408598cd
1 changed files with 15 additions and 15 deletions

View File

@ -513,10 +513,10 @@ class NewMainActivity : BaseActivity() {
setSometion() setSometion()
} }
private fun initMainPageHorseRaceLamp(noticeData:String) { private fun initMainPageHorseRaceLamp(noticeData: String) {
val mainPageHorseRaceLamp=findViewById<TextView>(R.id.mainPageHorseRaceLamp) val mainPageHorseRaceLamp = findViewById<TextView>(R.id.mainPageHorseRaceLamp)
if(noticeData.length>20){ if (noticeData.length > 20) {
mainPageHorseRaceLamp.text=noticeData mainPageHorseRaceLamp.text = noticeData
mainPageHorseRaceLamp.requestFocus() mainPageHorseRaceLamp.requestFocus()
mainPageHorseRaceLamp.marqueeRepeatLimit = Integer.MAX_VALUE mainPageHorseRaceLamp.marqueeRepeatLimit = Integer.MAX_VALUE
mainPageHorseRaceLamp.isFocusable = true mainPageHorseRaceLamp.isFocusable = true
@ -524,9 +524,9 @@ class NewMainActivity : BaseActivity() {
mainPageHorseRaceLamp.setSingleLine() mainPageHorseRaceLamp.setSingleLine()
mainPageHorseRaceLamp.isFocusableInTouchMode = true mainPageHorseRaceLamp.isFocusableInTouchMode = true
mainPageHorseRaceLamp.setHorizontallyScrolling(true) mainPageHorseRaceLamp.setHorizontallyScrolling(true)
}else{ } else {
val llNoticeBackground=findViewById<LinearLayout>(R.id.llNoticeBackground) val llNoticeBackground = findViewById<LinearLayout>(R.id.llNoticeBackground)
llNoticeBackground.visibility=View.GONE llNoticeBackground.visibility = View.GONE
} }
} }