This file contains hidden or 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 MyFragment | |
| extends Fragment { | |
| public MyFragment() { | |
| super(R.layout.my_fragment); | |
| } | |
| private int selectedIndex = 0; | |
| private FirstFragment firstFragment; |
This file contains hidden or 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
| package com.example.protodatastoretest | |
| import androidx.appcompat.app.AppCompatActivity | |
| import android.os.Bundle | |
| import android.util.Log | |
| import androidx.lifecycle.ViewModelProvider | |
| import kotlinx.android.synthetic.main.activity_main.* | |
| class MainActivity : AppCompatActivity() { |