Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SmsList extends Fragment{
- @Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState) {
- // Inflate the layout for this fragment
- View rootview = inflater.inflate(R.layout.fragment_sms_list, container, false);
- Button button1 = (Button)rootview.findViewById(R.id.btinboxsms);
- Button button2 = (Button)rootview.findViewById(R.id.btsetetime);
- button1.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v)
- {
- Intent i = new Intent(getActivity(), InboxSms.class);
- startActivity(i);
- }
- });
- return rootview;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment