Skip to content

Commit 176c93a

Browse files
committed
Readme writing Init & Project Cleaning
1 parent ed61c78 commit 176c93a

37 files changed

Lines changed: 68 additions & 98 deletions

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Arabic Math Solver - Android App
2+
<img src="/readme/sen.png" align="right"
3+
width="200" hspace="10" vspace="10">
4+
Arabic Math Solver is Android Application that has the Ability to recognize and solve handwritten equations in Arabic notation.
5+
6+
The application provides support to solve a wide range of mathematical problems e.g. (Simplifying Solving Polynomials - Integration - Differentiation)
7+
8+
## Features
9+
1. Drawing Tools
10+
The user has the ability to use Pen and Eraser to draw the equation he wants freely.
11+
<img src="/readme/pen.gif" align="left"
12+
width="200" hspace="10" vspace="10">
13+
<img src="/readme/eraser.gif" align="center"
14+
width="200" hspace="10" vspace="10">

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
android:allowBackup="true"
1515
android:icon="@drawable/ic_sen"
1616
android:label="@string/app_name"
17-
android:roundIcon="@mipmap/ic_launcher_round"
17+
android:roundIcon="@drawable/ic_sen"
1818
android:supportsRtl="false"
1919
android:theme="@style/Theme.ArabicMathSolver"
2020
android:usesCleartextTraffic="true"

app/src/main/java/com/arabic/math/solver/CanvasFragment.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,10 @@ private Resources getResourcesRef() {
371371

372372
@Override
373373
public void onDialogPositiveClick(DialogFragment dialog) {
374+
TextView predTextView = rootView.findViewById(R.id.pred_textview);
375+
predTextView.setText(R.string.pred_textview_str);
374376
drawViewManager.deleteAll();
377+
375378
}
376379

377380
@Override
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<vector android:height="153.04347dp" android:viewportHeight="88"
2+
android:viewportWidth="115" android:width="200dp" xmlns:android="http://schemas.android.com/apk/res/android">
3+
<path android:fillColor="#000000"
4+
android:pathData="M27,9.2c-4.5,2.3 -8.5,7.1 -9.7,11.6 -0.7,3.1 1.7,5.7 4.7,4.7 3.6,-1.1 4.8,-7.5 1.4,-7.5 -2.3,-0 -1.6,-2.7 1.2,-4.9 5.7,-4.5 14,-4.9 19.5,-1 5.4,3.8 7.5,16 4.7,27.7l-1.1,5 -2.1,-4.1c-5.2,-10.3 -18.7,-9.8 -30.6,0.9 -9.3,8.4 -12.5,23.6 -6.8,32.2 3.6,5.4 7.9,7.5 14.9,7.5 13,-0 23.9,-10.4 30.5,-29.4 3.1,-9.1 4.2,-21.9 2.4,-28.4 -3.8,-13.7 -17.1,-20.3 -29,-14.3zM40.9,37.6c6.1,5.1 6.1,15.4 0.1,27.5 -8.1,16 -25.4,18.9 -28.5,4.8 -0.9,-3.8 2,-17 5,-22.9 5.4,-10.6 16.6,-15.1 23.4,-9.4z" android:strokeColor="#00000000"/>
5+
<path android:fillColor="#000000"
6+
android:pathData="M74.3,36.9c-3.3,2 -8.3,9.5 -8.3,12.4 0,3 1.5,1.8 3.4,-2.8 2.2,-5.4 7.1,-9.5 11.2,-9.5 6.2,-0 6.8,4.1 2.8,20.6 -4.2,17.6 -6,20.4 -12.7,20.4 -3.9,-0 -4,-0.1 -2.3,-1.9 3.8,-4.2 -0.3,-9.3 -4.5,-5.5 -4.5,4 -0.6,9.4 6.7,9.4 4,-0 5.1,-0.5 7.8,-3.3l3.1,-3.3 2.8,3.3c2.5,2.9 3.5,3.3 7.8,3.3 4,-0 5.4,-0.5 8.4,-3.2 4,-3.5 7.9,-10.3 6.9,-11.9 -0.3,-0.6 -1.9,1.2 -3.5,4 -3.6,6.7 -6.5,9 -11.1,9.1 -6.8,-0 -7.2,-3.5 -2.7,-21.3 4.2,-16.6 6.2,-19.7 13,-19.7 3.3,-0 3.5,0.5 1.3,2.7 -2.2,2.2 -1.4,5.7 1.4,6.1 5.1,0.7 7.3,-6.2 3,-9.2 -4,-2.8 -9.3,-2 -13.6,1.9l-3.9,3.5 -1.3,-2.4c-2.5,-4.8 -10.1,-6 -15.7,-2.7z" android:strokeColor="#00000000"/>
7+
</vector>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="200dp"
3+
android:height="200dp"
4+
android:viewportWidth="228"
5+
android:viewportHeight="228">
6+
<path
7+
android:pathData="M82.7,9.4c-5.8,1.6 -9.3,4.7 -11.9,10.5 -1.8,3.9 -1.8,4.5 -0.5,5.8 2.1,2.1 6.4,0.9 7.3,-1.9 0.5,-1.6 0.1,-2.7 -1.6,-4 -2.2,-1.8 -2.2,-1.9 -0.5,-3.7 5,-5.6 15.3,-6.8 20.5,-2.5 5,4.2 6.4,7.9 6.3,16.4 0,4.1 -0.6,9.5 -1.2,11.9l-1.3,4.4 -1.8,-4.1c-2.2,-5 -6.2,-7.2 -12.7,-7.2 -15.8,0.1 -31,19.4 -27.1,34.5 3,12 15,16.9 27.3,11.1 11.1,-5.2 20.5,-21 23.5,-39.9 3.3,-20.7 -9.4,-35.8 -26.3,-31.3zM92.8,38.6c5.6,3.9 6.6,11.8 2.7,22.8 -4.2,11.9 -11.2,18.6 -19.5,18.6 -9.5,-0 -12.8,-6 -10.3,-18.2 2.5,-12.4 6.1,-18.8 12.8,-22.9 3.7,-2.3 11.2,-2.5 14.3,-0.3z"
8+
android:fillColor="#000000"
9+
android:strokeColor="#00000000"/>
10+
<path
11+
android:pathData="M150.5,13.3c-3.5,3.5 -5.9,10.1 -7.1,18.8l-0.7,4.9 -4.8,-0c-3.7,-0 -4.9,0.4 -4.9,1.5 0,1.1 1.2,1.5 4.5,1.5 4.2,-0 4.5,0.2 4,2.2 -0.3,1.3 -2.3,11.8 -4.5,23.3 -5.9,31.3 -7.6,35.6 -13.5,34.1 -2.7,-0.7 -3.5,-2.6 -1,-2.6 1.6,-0 3.1,-4.3 2,-5.9 -0.8,-1.5 -4.8,-1.4 -6.3,0.1 -1.8,1.8 -1.5,6.3 0.6,8.1 4.4,4 10.4,2.9 14.6,-2.6 4,-5.2 6.3,-12.9 10.8,-35.8l4.1,-20.8 5.6,-0.3c6.9,-0.4 7,-2.2 0.1,-2.6 -2.7,-0.2 -5,-0.7 -5,-1.1 0,-0.5 0.9,-5.3 2,-10.6 1.1,-5.3 2,-9.9 2,-10 0,-1.4 3.7,-3.5 6,-3.5 3.4,-0 4.8,1.6 2.1,2.5 -2.5,0.8 -3.3,4.2 -1.4,6 1.8,1.9 2.3,1.9 5.1,-0.1 5.3,-3.7 1.2,-10.4 -6.4,-10.4 -3.9,-0 -5.1,0.5 -7.9,3.3z"
12+
android:fillColor="#000000"
13+
android:strokeColor="#00000000"/>
14+
<path
15+
android:pathData="M54,124c0,2 0.7,2 58.5,2 57.8,-0 58.5,-0 58.5,-2 0,-2 -0.7,-2 -58.5,-2 -57.8,-0 -58.5,-0 -58.5,2z"
16+
android:fillColor="#000000"
17+
android:strokeColor="#00000000"/>
18+
<path
19+
android:pathData="M81,149.2c-4.5,2.3 -8.5,7.1 -9.7,11.6 -0.7,3.1 1.7,5.7 4.7,4.7 3.6,-1.1 4.8,-7.5 1.4,-7.5 -2.3,-0 -1.6,-2.7 1.2,-4.9 5.7,-4.5 14,-4.9 19.5,-1 5.4,3.8 7.5,16 4.7,27.7l-1.1,5 -2.1,-4.1c-5.2,-10.3 -18.7,-9.8 -30.6,0.9 -9.3,8.4 -12.5,23.6 -6.8,32.2 3.6,5.4 7.9,7.5 14.9,7.5 13,-0 23.9,-10.4 30.5,-29.4 3.1,-9.1 4.2,-21.9 2.4,-28.4 -3.8,-13.7 -17.1,-20.3 -29,-14.3zM94.9,177.6c6.1,5.1 6.1,15.4 0.1,27.5 -8.1,16 -25.4,18.9 -28.5,4.8 -0.9,-3.8 2,-17 5,-22.9 5.4,-10.6 16.6,-15.1 23.4,-9.4z"
20+
android:fillColor="#000000"
21+
android:strokeColor="#00000000"/>
22+
<path
23+
android:pathData="M128.3,176.9c-3.3,2 -8.3,9.5 -8.3,12.4 0,3 1.5,1.8 3.4,-2.8 2.2,-5.4 7.1,-9.5 11.2,-9.5 6.2,-0 6.8,4.1 2.8,20.6 -4.2,17.6 -6,20.4 -12.7,20.4 -3.9,-0 -4,-0.1 -2.3,-1.9 3.8,-4.2 -0.3,-9.3 -4.5,-5.5 -4.5,4 -0.6,9.4 6.7,9.4 4,-0 5.1,-0.5 7.8,-3.3l3.1,-3.3 2.8,3.3c2.5,2.9 3.5,3.3 7.8,3.3 4,-0 5.4,-0.5 8.4,-3.2 4,-3.5 7.9,-10.3 6.9,-11.9 -0.3,-0.6 -1.9,1.2 -3.5,4 -3.6,6.7 -6.5,9 -11.1,9.1 -6.8,-0 -7.2,-3.5 -2.7,-21.3 4.2,-16.6 6.2,-19.7 13,-19.7 3.3,-0 3.5,0.5 1.3,2.7 -2.2,2.2 -1.4,5.7 1.4,6.1 5.1,0.7 7.3,-6.2 3,-9.2 -4,-2.8 -9.3,-2 -13.6,1.9l-3.9,3.5 -1.3,-2.4c-2.5,-4.8 -10.1,-6 -15.7,-2.7z"
24+
android:fillColor="#000000"
25+
android:strokeColor="#00000000"/>
26+
</vector>

app/src/main/res/drawable/ic_gallery_2.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/src/main/res/drawable/ic_gallery_background.xml

Lines changed: 0 additions & 74 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="500dp"
3+
android:height="500dp"
4+
android:viewportWidth="500"
5+
android:viewportHeight="500">
6+
<path
7+
android:pathData="M205.5,163.7c-11.1,27.2 -10.4,24.4 -7,28.9 8.5,11 14.6,23.6 18.7,38.4 1.8,7 2.3,11.1 2.3,22.5 0,13.6 -0.1,14.2 -3.1,20.5 -5.9,12.3 -15.7,21 -32.9,29.1 -11.5,5.4 -25.4,9.8 -40,12.5 -8,1.5 -14.5,1.9 -32.5,1.8 -19.8,-0 -23.4,-0.3 -30.3,-2.2 -21.8,-6 -35.8,-18.7 -39.8,-35.9 -1.4,-6.2 -1.4,-21.8 0.1,-30.8 2.1,-13.5 8.1,-30.8 17.4,-50.9 2.6,-5.5 4.3,-10.3 3.9,-10.6 -1.2,-1 -7.3,-3.3 -7.6,-2.9 -0.9,1.2 -11.5,24.7 -14.7,32.4 -13.8,33.3 -19.7,66.4 -15.6,87.8 2.3,11.9 6.4,19.8 15,28.3 8.6,8.6 18.4,13.8 32.6,17.3 30.2,7.3 74,4.8 100.7,-5.9 29.8,-12 47.5,-34.5 55.2,-70.4 1.2,-5.5 2.4,-10.3 2.7,-10.8 0.3,-0.4 55.7,-0.8 123,-0.8l122.6,-0 -0.4,-34.3 -0.4,-34.2 -2.7,-7.9c-9.2,-26.2 -28.6,-36.5 -63,-33.5 -24.4,2.1 -37.7,8.5 -81.7,39.4 -26.2,18.4 -36.8,24.2 -53.5,29.3 -11.8,3.7 -18.4,4.8 -32.2,5.7l-10.3,0.6 0,-6.3c0,-18.3 -3.8,-42.4 -8.2,-52.8 -3.1,-7.4 -10.2,-21 -10.8,-21 -0.4,-0 -3.7,7.5 -7.5,16.7zM414.1,190c20.4,3.7 32.2,14.3 27.3,24.5 -2,4.3 -6.8,7.1 -16.4,9.7 -7.1,2 -10.9,2.1 -64.5,2.5 -31.3,0.3 -56.7,0.2 -56.3,-0.3 1.1,-1.1 16.9,-9.3 37.3,-19.4 18.4,-9.1 31.7,-14.2 43.4,-16.5 8.1,-1.6 22,-1.8 29.2,-0.5z"
8+
android:fillColor="#000000"
9+
android:strokeColor="#00000000"/>
10+
</vector>

app/src/main/res/layout/fragment_canvas.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
android:layout_width="96dp"
6060
android:layout_height="96dp"
6161
android:contentDescription="@string/gallery_str"
62-
android:src="@mipmap/ic_gallery"
6362
android:text="@string/gallery_str"
6463
android:visibility="gone" />
6564

app/src/main/res/menu/methods_menu.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<menu xmlns:android="http://schemas.android.com/apk/res/android">
33
<group android:checkableBehavior="single">
4-
<item
5-
android:id="@+id/polynomial_method"
6-
android:enabled="true"
7-
android:icon="@drawable/ic_move"
8-
android:title="@string/polynomial_str"
9-
android:titleCondensed="@string/polynomial_method_name" />
104
<item
115
android:id="@+id/simplify_method"
126
android:enabled="true"
137
android:icon="@drawable/ic_sen"
148
android:title="@string/simplify_str"
159
android:titleCondensed="@string/simplify_method_name" />
10+
<item
11+
android:id="@+id/polynomial_method"
12+
android:enabled="true"
13+
android:icon="@drawable/ic_sad"
14+
android:title="@string/polynomial_str"
15+
android:titleCondensed="@string/polynomial_method_name" />
1616
<item
1717
android:id="@+id/differentiate_method"
1818
android:enabled="true"
19-
android:icon="@drawable/ic_eraser"
19+
android:icon="@drawable/ic_diff_2"
2020
android:title="@string/differentiate_str"
2121
android:titleCondensed="@string/differentiate_method_name" />
2222
<item

0 commit comments

Comments
 (0)