Exemplo n.º 1
0
  @Override
  protected void onCreate(@Nullable Bundle data) {
    super.onCreate(data);
    setContentView(R.layout.portal_test);
    Log.d(TAG, "onCreate called");

    if (data != null) {
      Toast.makeText(this, data.getString("key") + " onCreate", Toast.LENGTH_LONG).show();
    }
  }
Exemplo n.º 2
0
  @Override
  protected void onViewCreated() {
    super.onViewCreated();
    Log.d(TAG, "onViewCreated: called");
    ButterKnife.bind(this, getView());
    ButtonListener listener = new ButtonListener(this);
    openButton.setOnClickListener(listener);
    showButton.setOnClickListener(listener);
    hideButton.setOnClickListener(listener);
    closeButton.setOnClickListener(listener);
    closeServiceButton.setOnClickListener(listener);

    activityForResultButton.setOnClickListener(this);
  }
Exemplo n.º 3
0
 @Override
 public void onConfigurationChanged(Configuration newConfig) {
   super.onConfigurationChanged(newConfig);
   Log.i(TAG, "onConfigurationChanged: ");
 }
Exemplo n.º 4
0
 @Override
 protected void onDestroyView() {
   super.onDestroyView();
   RefWatcher watcher = ExampleApplication.getRefWatcher(this);
   watcher.watch(getView());
 }