Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState) {
- // Inflate the layout for this fragment
- View v= inflater.inflate(R.layout.fragment_tab3, container, false);
- mapbtn = (Button) v.findViewById(R.id.mapButton);
- mapbtn.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View view) {
- Intent intent = new Intent(getActivity(), MapsActivity.class);
- startActivity(intent);
- }
- });
- return v;
- }
Add Comment
Please, Sign In to add comment