1 package mhr.app.fragments.toolbox.transforms;
3 import mhr.app.AppMainActivity;
5 import mhr.appandroid.views.LabelledSeekBar;
6 import mhr.appandroid.views.LabelledSeekBar.LabelledSBChangeListener;
7 import mhr.appcore.commands.core.ResizeImageCommand;
8 import mhr.appcore.commands.core.ResizeImageCommand.ResizeAction;
9 import mhr.appcore.interpolators.InterpolatorType;
10 import android.app.Activity;
11 import android.app.Fragment;
12 import android.os.Bundle;
13 import android.view.LayoutInflater;
14 import android.view.View;
15 import android.view.View.OnClickListener;
16 import android.view.ViewGroup;
17 import android.widget.RadioGroup;
18 import android.widget.RatingBar;
19 import android.widget.ToggleButton;
54 protected View
initView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
55 root = inflater.inflate(
R.layout.fragment_resize_tool_settings, container,
false);
68 root.findViewById(
R.id.ResizeImageBtn).setOnClickListener(
this);
69 root.findViewById(
R.id.PreviewResizeBtn).setOnClickListener(
this);
70 root.findViewById(
R.id.CancelBtn).setOnClickListener(
this);
88 if (
id ==
R.id.FixedRatioTBtn) {
96 switch (
interpType.getCheckedRadioButtonId()) {
97 case R.id.NearestNeighbourR:
108 case R.id.ResizeImageBtn:
112 case R.id.PreviewResizeBtn:
125 super.onAttach(activity);
144 public View
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
155 return initView(inflater, container, savedInstanceState);