Last active
March 23, 2020 21:56
-
-
Save fo2rist/f912adf3ed84d614440460cb884ae3d7 to your computer and use it in GitHub Desktop.
Java To Kotlin Conversion. Step 1. Annotations Before
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
public class NonLazyDemoAdapter extends FragmentStatePagerAdapter { | |
private SomePage[] pages = new SomePage[]{FIRST, SECOND}; | |
private PageFragment[] cachedFragments = new PageFragment[pages.length]; | |
NonLazyDemoAdapter(FragmentManager fm) { | |
... | |
} | |
@Override | |
public Fragment getItem(int position) { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment