代码格式化

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