[6.5.0] random change
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.mogo.eagle.core.function.view
|
||||
|
||||
import android.content.Context
|
||||
import android.util.Log
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
@@ -40,12 +41,14 @@ class RoadCrossRoamListAdapter(private val mContext: Context) : RecyclerView.Ad
|
||||
holder.progressBar.visibility = View.VISIBLE
|
||||
holder.checkIcon.visibility = View.GONE
|
||||
|
||||
val r = Random.nextInt(1,6)
|
||||
val r0 = Random.nextInt(0,3)
|
||||
val r1 = Random.nextInt(1,9)
|
||||
Log.i("emArrow","random:${r0 * 1000L + r1 * 100L}")
|
||||
// 模拟加载完成
|
||||
holder.itemView.postDelayed({
|
||||
holder.progressBar.visibility = View.GONE
|
||||
holder.checkIcon.visibility = View.VISIBLE
|
||||
},r * 1000L)
|
||||
},r0 * 1000L + r1 * 100L)
|
||||
// } else {
|
||||
// holder.progressBar.visibility = View.GONE
|
||||
// holder.checkIcon.visibility = View.VISIBLE
|
||||
|
||||
Reference in New Issue
Block a user