Skip to content

Instantly share code, notes, and snippets.

@CodingWithTashi
Created February 23, 2021 17:14
Show Gist options
  • Save CodingWithTashi/6c589543548731ab22c5ebf77230fdb7 to your computer and use it in GitHub Desktop.
Save CodingWithTashi/6c589543548731ab22c5ebf77230fdb7 to your computer and use it in GitHub Desktop.
public class TestFragment extends Fragment {
FragmentTestBinding fragmentTestBinding;
public TestFragment() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
fragmentTestBinding = FragmentTestBinding.inflate(getLayoutInflater(),container,false);
fragmentTestBinding.textData.setText("TestData");
return fragmentTestBinding.getRoot();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment