content: package com.adafruit.bluefruit.le.connect.app;
  
  import android.os.Bundle;
  import androidx.annotation.NonNull;
  import androidx.annotation.Nullable;
  import androidx.appcompat.app.ActionBar;
  import androidx.appcompat.app.AppCompatActivity;
  import androidx.fragment.app.Fragment;
  
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.TextView;
  
  import com.adafruit.bluefruit.le.connect.R;
  
  public class CommonHelpFragment extends Fragment {
      private static final String ARG_TITLE = "title";
      private static final String ARG_TEXT = "text";
  
      private String mText;
  
      public static CommonHelpFragment newInstance(String title, String text) {
          CommonHelpFragment fragment = new CommonHelpFragment();
          Bundle args = new Bundle();
          args.putString(ARG_TITLE, title);
          args.putString(ARG_TEXT, text);
          fragment.setArguments(args);
          return fragment;
      }
  
      public CommonHelpFragment() {
          // Required empty public constructor
      }
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          String title = null;
          if (getArguments() != null) {
              title = getArguments().getString(ARG_TITLE);
              mText = getArguments().getString(ARG_TEXT);
          }
  
          // Update ActionBar
          AppCompatActivity activity = (AppCompatActivity) getActivity();
          if (activity != null) {
              ActionBar actionBar = activity.getSupportActionBar();
              if (actionBar != null) {
                  actionBar.setTitle(title);
                  actionBar.setDisplayHomeAsUpEnabled(true);
              }
          }
      }
  
      @Override
      public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          // Inflate the layout for this fragment
          return inflater.inflate(R.layout.fragment_commonhelp, container, false);
      }
  
      @Override
      public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
          super.onViewCreated(view, savedInstanceState);
  
          // UI
          TextView infoTextView = view.findViewById(R.id.infoTextView);
          infoTextView.setText(mText);
  
          /*
          WebView infoWebView = view.findViewById(R.id.infoWebView);
          if (infoWebView != null) {
              infoWebView.setBackgroundColor(Color.TRANSPARENT);
              infoWebView.loadUrl("file:///android_asset/help/" + mText);
          }*/
  
      }
  
  }
  