Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TestFragment extends Fragment {
- @Nullable
- @Override
- public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
- return inflater.inflate(R.layout.fragment_layout, container, false);
- }
- @Override
- public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
- super.onViewCreated(view, savedInstanceState);
- Button btn = (Button) this.getActivity().findViewById(R.id.button);
- btn.setText("123");
- }
- @Override
- public void onCreate(@Nullable Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement