Фиолетовая часть представляет собой время, затраченное на передачу ресурсов рендеринга потока.
Как уменьшить это время (фиолетовой части)? Код активити:class ObjectActivity : AppCompatActivity(){
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_object)
val bundle = intent.getBundleExtra("bundle")
val tabTitles = bundle!!.getStringArray(ARGUMENT_DESC_TITLES)
val info = bundle.getStringArray(ARGUMENT_DESC_INFO)
val image = bundle.getInt(ARGUMENT_DESC_IMAGE)
val desc = bundle.getString(ARGUMENT_DESC_NAME)
val imageView: ImageView = findViewById(R.id.desc_image)
val toolbarName: CollapsingToolbarLayout = findViewById(R.id.desc_name)
val viewPager: ViewPager = findViewById(R.id.viewpager)
val tabLayout: TabLayout = findViewById(R.id.sliding_tabs)
Picasso.get().load(image).into(imageView)
toolbarName.title = desc
val fragmentPagerAdapter = SampleFragmentPagerAdapter(supportFragmentManager, tabTitles!!, info, image)
viewPager.adapter = fragmentPagerAdapter
tabLayout.setupWithViewPager(viewPager)
val toolbar = findViewById<View>(R.id.flexible_example_toolbar) as android.support.v7.widget.Toolbar
toolbar.setNavigationOnClickListener { onBackPressed() }
}
}