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 SampleFragment extends Fragment { | |
/** Fragmentで保持しておくデータ */ | |
private int mData; | |
/** | |
* Fragmentインスタンスを生成した返却. | |
* | |
* コンストラクタに引数を渡すのはダメ。 | |
* Fragmentがメモリ不足で破棄され、そこから復帰する時に空のコンストラクタ呼ばれる。 |