1. First declare context variable
private Context context;
2. In onCreateView()
context = container.getContext();
3. Use it for Toast
Toast.makeText(context, "gogogo", Toast.LENGTH_SHORT).show();
1. First declare context variable
private Context context;
2. In onCreateView()
context = container.getContext();
3. Use it for Toast
Toast.makeText(context, "gogogo", Toast.LENGTH_SHORT).show();
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5