-
Notifications
You must be signed in to change notification settings - Fork 0
/
ThorFragment.java
33 lines (28 loc) · 965 Bytes
/
ThorFragment.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.example.joseph.avengersquiz;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
/**
* Created by Joseph on 6/15/2015.
*/
public class ThorFragment extends Fragment {
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.thor_fragment, container, false);
Button btn = (Button) view.findViewById(R.id.playagain_button);
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getActivity(), Question1.class);
startActivity(intent);
}
});
return view;
}
}