프래그먼트에서 액티비티로 넘어가야하는데 dispalyPicture라는 메소드가 안 먹히네요ㅠㅠ
어떻게 해야할까요??
public class Meun_Fragment_Hot extends Fragment {
public Meun_Fragment_Hot() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.meun_fragment_hot, container, false);
}
public void displayPicture(View v) {
int id = v.getId();
LinearLayout layout = (LinearLayout) v.findViewById(id);
String tag = (String) layout.getTag();
Intent it = new Intent(this, Order.class);
it.putExtra("it_tag", tag);
startActivity(it);
}
}