override fun getCount(): Int {...} override fun getItem(position: Int): Fragment {...} override fun setPrimaryItem(container: ViewGroup?, position: Int, obj: Any?) { if (currentFragment != obj) { currentFragment = obj as Fragment } super.setPrimaryItem(container, position, obj) } } ݱࡏͷFragmentΛอ࣋