Esempio n. 1
0
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

    View view = inflater.inflate(R.layout.fragment_my, null);

    T.showShort(getActivity(), "FragmentMy==onCreateView");

    return view;
  }
 @Override
 public View onCreateView(
     LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
   T.showShort(getActivity(), "SubFragment1==onCreateView");
   TextView tv = new TextView(getActivity());
   tv.setTextSize(25);
   tv.setBackgroundColor(Color.parseColor("#FFA07A"));
   tv.setText("пбне");
   tv.setGravity(Gravity.CENTER);
   return tv;
 }