@Override public void setUtilityPanelUI(View actionButton, View editControl) { if (useCompact(mContext)) { super.setUtilityPanelUI(actionButton, editControl); return; } mActionButton = actionButton; mEditControl = editControl; mEditTitle.setCompoundDrawables(null, null, null, null); LinearLayout group = (LinearLayout) editControl; LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); LinearLayout controls = (LinearLayout) inflater.inflate(R.layout.filtershow_vignette_controls, group, false); ViewGroup.LayoutParams lp = new LinearLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); controls.setLayoutParams(lp); group.removeAllViews(); group.addView(controls); mVignetteBar = (SeekBar) controls.findViewById(R.id.mainVignetteSeekbar); mVignetteBar.setMax(200); mVignetteBar.setOnSeekBarChangeListener(this); mVignetteValue = (TextView) controls.findViewById(R.id.mainVignetteValue); mExposureBar = (SeekBar) controls.findViewById(R.id.exposureSeekBar); mExposureBar.setMax(200); mExposureBar.setOnSeekBarChangeListener(this); mExposureValue = (TextView) controls.findViewById(R.id.exposureValue); mSaturationBar = (SeekBar) controls.findViewById(R.id.saturationSeekBar); mSaturationBar.setMax(200); mSaturationBar.setOnSeekBarChangeListener(this); mSaturationValue = (TextView) controls.findViewById(R.id.saturationValue); mContrastBar = (SeekBar) controls.findViewById(R.id.contrastSeekBar); mContrastBar.setMax(200); mContrastBar.setOnSeekBarChangeListener(this); mContrastValue = (TextView) controls.findViewById(R.id.contrastValue); mFalloffBar = (SeekBar) controls.findViewById(R.id.falloffSeekBar); mFalloffBar.setMax(200); mFalloffBar.setOnSeekBarChangeListener(this); mFalloffValue = (TextView) controls.findViewById(R.id.falloffValue); }