diff --git a/app/src/main/java/org/solovyev/android/calculator/plot/PlotDimensionsFragment.java b/app/src/main/java/org/solovyev/android/calculator/plot/PlotDimensionsFragment.java
index 6cff7f49..eff09e42 100644
--- a/app/src/main/java/org/solovyev/android/calculator/plot/PlotDimensionsFragment.java
+++ b/app/src/main/java/org/solovyev/android/calculator/plot/PlotDimensionsFragment.java
@@ -12,7 +12,6 @@ import android.support.v7.app.AlertDialog;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
-import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
@@ -20,19 +19,13 @@ import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.TextView;
-
-import org.solovyev.android.calculator.App;
-import org.solovyev.android.calculator.AppComponent;
-import org.solovyev.android.calculator.BaseDialogFragment;
-import org.solovyev.android.calculator.BaseFragment;
-import org.solovyev.android.calculator.R;
+import butterknife.Bind;
+import butterknife.ButterKnife;
+import org.solovyev.android.calculator.*;
import org.solovyev.android.plotter.Check;
import org.solovyev.android.plotter.Plot;
import org.solovyev.android.plotter.Plotter;
-import butterknife.Bind;
-import butterknife.ButterKnife;
-
import javax.annotation.Nonnull;
import javax.inject.Inject;
@@ -152,7 +145,7 @@ public class PlotDimensionsFragment extends BaseDialogFragment
@Override
protected void onPrepareDialog(@NonNull AlertDialog.Builder builder) {
builder.setTitle("Dimensions");
- builder.setPositiveButton(android.R.string.ok, null);
+ builder.setPositiveButton(R.string.cpp_done, null);
}
@NonNull
@@ -243,12 +236,12 @@ public class PlotDimensionsFragment extends BaseDialogFragment
final boolean nanRight = Float.isNaN(r);
if (nanLeft || nanRight) {
if (nanLeft) {
- setError(lInput, " ");
+ setError(lInput, R.string.cpp_nan);
} else {
clearError(lInput);
}
if (nanRight) {
- setError(rInput, " ");
+ setError(rInput, R.string.cpp_nan);
} else {
clearError(rInput);
}
@@ -259,8 +252,7 @@ public class PlotDimensionsFragment extends BaseDialogFragment
@NonNull
private RectF collectData() {
- return new RectF(getDimension(xMin), getDimension(yMin), getDimension(xMax),
- getDimension(yMax));
+ return new RectF(getDimension(xMin), getDimension(yMin), getDimension(xMax), getDimension(yMax));
}
private void applyData() {
@@ -272,7 +264,6 @@ public class PlotDimensionsFragment extends BaseDialogFragment
try {
return Float.parseFloat(view.getText().toString().replace(",", ".").replace("−", "-"));
} catch (NumberFormatException e) {
- Log.w(Plot.getTag("MainActivity"), e.getMessage(), e);
return Float.NaN;
}
}
diff --git a/app/src/main/res/drawable-hdpi/ic_3d_rotation_white_24dp.png b/app/src/main/res/drawable-hdpi/ic_3d_rotation_white_24dp.png
new file mode 100644
index 00000000..510504e6
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_3d_rotation_white_24dp.png differ
diff --git a/app/src/main/res/drawable-hdpi/ic_my_location_white_24dp.png b/app/src/main/res/drawable-hdpi/ic_my_location_white_24dp.png
new file mode 100644
index 00000000..745db489
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_my_location_white_24dp.png differ
diff --git a/app/src/main/res/drawable-hdpi/ic_zoom_in_white_24dp.png b/app/src/main/res/drawable-hdpi/ic_zoom_in_white_24dp.png
new file mode 100644
index 00000000..63732940
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_zoom_in_white_24dp.png differ
diff --git a/app/src/main/res/drawable-hdpi/ic_zoom_out_white_24dp.png b/app/src/main/res/drawable-hdpi/ic_zoom_out_white_24dp.png
new file mode 100644
index 00000000..7772ceea
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_zoom_out_white_24dp.png differ
diff --git a/app/src/main/res/drawable-mdpi/ic_3d_rotation_white_24dp.png b/app/src/main/res/drawable-mdpi/ic_3d_rotation_white_24dp.png
new file mode 100644
index 00000000..874a274f
Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_3d_rotation_white_24dp.png differ
diff --git a/app/src/main/res/drawable-mdpi/ic_my_location_white_24dp.png b/app/src/main/res/drawable-mdpi/ic_my_location_white_24dp.png
new file mode 100644
index 00000000..d1c563cc
Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_my_location_white_24dp.png differ
diff --git a/app/src/main/res/drawable-mdpi/ic_zoom_in_white_24dp.png b/app/src/main/res/drawable-mdpi/ic_zoom_in_white_24dp.png
new file mode 100644
index 00000000..36a659dd
Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_zoom_in_white_24dp.png differ
diff --git a/app/src/main/res/drawable-mdpi/ic_zoom_out_white_24dp.png b/app/src/main/res/drawable-mdpi/ic_zoom_out_white_24dp.png
new file mode 100644
index 00000000..e69da0ba
Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_zoom_out_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_3d_rotation_white_24dp.png b/app/src/main/res/drawable-xhdpi/ic_3d_rotation_white_24dp.png
new file mode 100644
index 00000000..8d4120e8
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_3d_rotation_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_my_location_white_24dp.png b/app/src/main/res/drawable-xhdpi/ic_my_location_white_24dp.png
new file mode 100644
index 00000000..ffab865d
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_my_location_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_zoom_in_white_24dp.png b/app/src/main/res/drawable-xhdpi/ic_zoom_in_white_24dp.png
new file mode 100644
index 00000000..ce88ebdd
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_zoom_in_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_zoom_out_white_24dp.png b/app/src/main/res/drawable-xhdpi/ic_zoom_out_white_24dp.png
new file mode 100644
index 00000000..8c6ccea7
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_zoom_out_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_3d_rotation_white_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_3d_rotation_white_24dp.png
new file mode 100644
index 00000000..974abd11
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_3d_rotation_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_my_location_white_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_my_location_white_24dp.png
new file mode 100644
index 00000000..387ecdfb
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_my_location_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_zoom_in_white_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_zoom_in_white_24dp.png
new file mode 100644
index 00000000..30b84706
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_zoom_in_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_zoom_out_white_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_zoom_out_white_24dp.png
new file mode 100644
index 00000000..68aaec6d
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_zoom_out_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_3d_rotation_white_24dp.png b/app/src/main/res/drawable-xxxhdpi/ic_3d_rotation_white_24dp.png
new file mode 100644
index 00000000..3137f7ec
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_3d_rotation_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_my_location_white_24dp.png b/app/src/main/res/drawable-xxxhdpi/ic_my_location_white_24dp.png
new file mode 100644
index 00000000..c55220a5
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_my_location_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_zoom_in_white_24dp.png b/app/src/main/res/drawable-xxxhdpi/ic_zoom_in_white_24dp.png
new file mode 100644
index 00000000..b636f6e3
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_zoom_in_white_24dp.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_zoom_out_white_24dp.png b/app/src/main/res/drawable-xxxhdpi/ic_zoom_out_white_24dp.png
new file mode 100644
index 00000000..d85e242b
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_zoom_out_white_24dp.png differ
diff --git a/app/src/main/res/layout/fragment_plot.xml b/app/src/main/res/layout/fragment_plot.xml
index 5f021cb9..75200082 100644
--- a/app/src/main/res/layout/fragment_plot.xml
+++ b/app/src/main/res/layout/fragment_plot.xml
@@ -16,11 +16,11 @@
a:layout_gravity="top|start"
a:src="@drawable/ic_straighten_white_24dp" />
-
+ a:src="@drawable/ic_3d_rotation_white_24dp" />
-
+ a:src="@drawable/ic_add_white_24dp" />
-
+ a:src="@drawable/ic_zoom_in_white_24dp" />
-
+ a:src="@drawable/ic_my_location_white_24dp" />
-
+ a:src="@drawable/ic_zoom_out_white_24dp" />
\ No newline at end of file