代码格式化
This commit is contained in:
parent
e21004aa43
commit
1c408598cd
|
|
@ -513,21 +513,21 @@ class NewMainActivity : BaseActivity() {
|
|||
setSometion()
|
||||
}
|
||||
|
||||
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
|
||||
mainPageHorseRaceLamp.ellipsize = TextUtils.TruncateAt.MARQUEE
|
||||
mainPageHorseRaceLamp.setSingleLine()
|
||||
mainPageHorseRaceLamp.isFocusableInTouchMode = true
|
||||
mainPageHorseRaceLamp.setHorizontallyScrolling(true)
|
||||
}else{
|
||||
val llNoticeBackground=findViewById<LinearLayout>(R.id.llNoticeBackground)
|
||||
llNoticeBackground.visibility=View.GONE
|
||||
}
|
||||
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
|
||||
mainPageHorseRaceLamp.ellipsize = TextUtils.TruncateAt.MARQUEE
|
||||
mainPageHorseRaceLamp.setSingleLine()
|
||||
mainPageHorseRaceLamp.isFocusableInTouchMode = true
|
||||
mainPageHorseRaceLamp.setHorizontallyScrolling(true)
|
||||
} else {
|
||||
val llNoticeBackground = findViewById<LinearLayout>(R.id.llNoticeBackground)
|
||||
llNoticeBackground.visibility = View.GONE
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue