-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- detail team pager untuk menampilkan overview dan player fragment
- Loading branch information
Showing
17 changed files
with
320 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/example/wijaya_pc/footballapps/adapter/pager/DetailTeamPagerAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.example.wijaya_pc.footballapps.adapter.pager | ||
|
||
import android.support.v4.app.Fragment | ||
import android.support.v4.app.FragmentManager | ||
import android.support.v4.app.FragmentPagerAdapter | ||
|
||
class DetailTeamPagerAdapter(manager: FragmentManager) : FragmentPagerAdapter(manager) { | ||
private val mFragmentList = ArrayList<Fragment>() | ||
private val mFragmentTitleList = ArrayList<String>() | ||
|
||
override fun getItem(position: Int): Fragment { | ||
return mFragmentList[position] | ||
} | ||
|
||
override fun getCount(): Int { | ||
return mFragmentList.size | ||
} | ||
|
||
fun addFrag(fragment: Fragment, title: String) { | ||
mFragmentList.add(fragment) | ||
mFragmentTitleList.add(title) | ||
} | ||
|
||
override fun getPageTitle(position: Int): CharSequence { | ||
return mFragmentTitleList[position] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.