content: package com.alibaba.android.arouter.demo.module1;
  
  
  import android.os.Bundle;
  import android.support.v4.app.Fragment;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.TextView;
  
  import com.alibaba.android.arouter.demo.service.model.TestObj;
  import com.alibaba.android.arouter.demo.service.model.TestParcelable;
  import com.alibaba.android.arouter.demo.service.model.TestSerializable;
  import com.alibaba.android.arouter.facade.annotation.Autowired;
  import com.alibaba.android.arouter.facade.annotation.Route;
  
  import java.util.List;
  import java.util.Map;
  
  /**
   * A simple {@link Fragment} subclass.
   */
  @Route(path = "/test/fragment")
  public class BlankFragment extends Fragment {
  
      @Autowired
      String name;
  
      @Autowired(required = true)
      TestObj obj;
  
      @Autowired
      int age = 10;
  
      @Autowired
      int height = 175;
  
      @Autowired(name = "boy", required = true)
      boolean girl;
  
      @Autowired
      char ch = 'A';
  
      @Autowired
      float fl = 12.00f;
  
      @Autowired
      double dou = 12.01d;
  
      @Autowired
      TestSerializable ser;
  
      @Autowired
      TestParcelable pac;
  
      @Autowired
      List<TestObj> objList;
  
      @Autowired
      Map<String, List<TestObj>> map;
  
      public BlankFragment() {
          // Required empty public constructor
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          TextView textView = new TextView(getActivity());
          return textView;
      }
  
  }
  