/* (non-Javadoc) * @see com.aviary.android.feather.effects.AbstractEffectPanel#onActivate() */ @Override public void onActivate() { super.onActivate(); mPreview = BitmapUtils.copy(mBitmap, Config.ARGB_8888); ImageButtonRadioGroup radio = (ImageButtonRadioGroup) getOptionView().findViewById(R.id.radio); radio.setOnCheckedChangeListener(this); }
/* * (non-Javadoc) * * @see com.aviary.android.feather.effects.AbstractEffectPanel#onActivate() */ @Override public void onActivate() { super.onActivate(); disableHapticIsNecessary(mWheel); int ticksCount = mWheel.getTicksCount(); mWheelRadio.setTicksNumber(ticksCount / 2, mWheel.getWheelScaleFactor()); mWheel.setOnScrollListener(this); // we intercept the touch event from the whole option panel // and send it to the wheel, so it's like the wheel component // interacts with the entire option view getOptionView() .setOnTouchListener( new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { return mWheel.onTouchEvent(event); } }); }