-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlearnFragment.java
More file actions
49 lines (39 loc) · 1.35 KB
/
Copy pathlearnFragment.java
File metadata and controls
49 lines (39 loc) · 1.35 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.example.Fazlay_Rabbi.banglaSignLanguage;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import com.example.Fazlay_Rabbi.camerawork_signlanguage.R;
/**
* Created by Fazlay_Rabbi on 11/23/2017.
*/
public class learnFragment extends Fragment
{
Button exerciseButton;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
View view= inflater.inflate(R.layout.learn_fragment_layout, container, false);
exerciseButton = (Button) view.findViewById(R.id.exerciseBtn);
exerciseButton.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
exerciseBtnPressed();
}
});
return view;
}
public void exerciseBtnPressed()
{
FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();
exerciseModule fragment = new exerciseModule();
fragmentTransaction.replace(R.id.container, fragment);
fragmentTransaction.addToBackStack(null);
fragmentTransaction.commit();
}
}