コード例 #1
0
  @Override
  protected void onPostCreate(Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);

    final GestureDetector gd = ForwardableActivityUtil.createFlickGestureDetector(this);

    getExpandableListView()
        .setOnTouchListener(
            new OnTouchListener() {
              @Override
              public boolean onTouch(View v, MotionEvent event) {
                return gd.onTouchEvent(event);
              }
            });
  }
コード例 #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    if (getTuboroidApplication().isFullScreenMode()) {
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
    } else {
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
    }

    setRequestedOrientation(getTuboroidApplication().getCurrentScreenOrientation());

    getTuboroidApplication().applyTheme(this);
    setting_invalidate_checker_ = getTuboroidApplication().getSettingInvalidateChecker();

    super.onCreate(savedInstanceState);
    ForwardableActivityUtil.onCreate(this);
  }
コード例 #3
0
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   ForwardableActivityUtil.onActivityResult(this, data);
   super.onActivityResult(requestCode, resultCode, data);
 }