Skip to content

Instantly share code, notes, and snippets.

@wiryadev
Created April 23, 2020 04:20
Show Gist options
  • Save wiryadev/94cf9579bb07f3eb5ab434fed8a6944f to your computer and use it in GitHub Desktop.
Save wiryadev/94cf9579bb07f3eb5ab434fed8a6944f to your computer and use it in GitHub Desktop.
package com.wiryatech.gitdroid
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_detail.*
class DetailActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_detail)
val sectionsPagerAdapter = SectionsPagerAdapter(this, supportFragmentManager)
vp_detail.adapter = sectionsPagerAdapter
tab_detail.setupWithViewPager(vp_detail)
supportActionBar?.elevation = 0f
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment