@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(); } }
@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); }
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); Log.i(TAG, "onConfigurationChanged: "); }
@Override protected void onDestroyView() { super.onDestroyView(); RefWatcher watcher = ExampleApplication.getRefWatcher(this); watcher.watch(getView()); }