예제 #1
0
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.fragment_headers_params, container, false);

    Ln.e("onCreateView!");
    mMessage = (TextView) rootView.findViewById(R.id.message_noitems);
    mMessage.setText(R.string.message_placeholder_params);
    mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recycler);
    mLayoutManager = new LinearLayoutManager(getActivity());
    mRecyclerView.setLayoutManager(mLayoutManager);
    mAdapter = new ParamsAdapter(getActivity(), mMessage, mRecyclerView);
    mRecyclerView.setAdapter(mAdapter);

    return rootView;
  }
예제 #2
0
 @Override
 protected void populateConnectionInfo(Connection connection) {
   Ln.i("Populating Connection Info on ParamsFragment");
   mAdapter.setHeaders(connection.getQuery());
 }