Blame view

C5/other/com/sunvote/xpadapp/fragment/BaseFragment.java 589 Bytes
fac86401   孙向锦   初始化C5 Vote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  package com.sunvote.xpadapp.fragment;
  
  import android.app.Fragment;
  import android.widget.Toast;
  
  import com.sunvote.xpadapp.R;
  
  /**
   * Created by Elvis on 2017/11/30 11:33
   * Email:Eluis@psunsky.com
   * 版权所有:长沙中天电子设计开发有限公司
   * Description: 人大通用版XPadAppRD
   */
  public class BaseFragment extends Fragment {
  
      public void showToast(int resId){
          Toast.makeText(getActivity(),resId,Toast.LENGTH_SHORT).show();
      }
  
      public void showToast(String toast){
          Toast.makeText(getActivity(), toast,Toast.LENGTH_SHORT).show();
      }
  }