diff --git a/app/src/main/ic_launcher-playstore.png b/app/src/main/ic_launcher-playstore.png
index 5fb167a..61370fa 100644
Binary files a/app/src/main/ic_launcher-playstore.png and b/app/src/main/ic_launcher-playstore.png differ
diff --git a/app/src/main/java/com/example/xwriter/Counter.java b/app/src/main/java/com/example/xwriter/Counter.java
index aab7c63..7e91105 100644
--- a/app/src/main/java/com/example/xwriter/Counter.java
+++ b/app/src/main/java/com/example/xwriter/Counter.java
@@ -6,18 +6,22 @@
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
+import android.widget.RadioButton;
import android.widget.Toast;
public class Counter extends AppCompatActivity {
EditText et;
+ RadioButton rb, rb2;
+
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_counter);
et = findViewById(R.id.count);
-
+ rb = findViewById(R.id.incremental);
+ rb2 = findViewById(R.id.nothing);
}
public void print2(View view) {
@@ -28,19 +32,41 @@ public void print2(View view) {
Toast nullInputToast = Toast.makeText(getApplicationContext(), "Input a Number first", Toast.LENGTH_SHORT);
nullInputToast.show();
}
- int checkNumber = Integer.parseInt(holder);
- if (checkNumber > 200000){
- Toast nullInputToast = Toast.makeText(getApplicationContext(), "Can not take more than 200000 input", Toast.LENGTH_SHORT);
- nullInputToast.show();
- }
else{
- int i = Integer.parseInt(holder);
- Intent in = new Intent(Counter.this, printScreen.class);
- in.putExtra("COUNT",i);
- in.putExtra("INPUT",inputHolder);
- startActivity(in);
+ int checkNumber = Integer.parseInt(holder);
+ if (checkNumber > 200000){
+ Toast nullInputToast = Toast.makeText(getApplicationContext(), "Can not take more than 200000 input", Toast.LENGTH_SHORT);
+ nullInputToast.show();
+ }
+ else{
+ int i = Integer.parseInt(holder);
+ Intent in = new Intent(Counter.this, printScreen.class);
+ in.putExtra("COUNT",i);
+ in.putExtra("INPUT",inputHolder);
+ startActivity(in);
+ }
}
+ }
+ public void advanceView(View view){
+ if (rb.getVisibility() == View.VISIBLE){
+ rb.setVisibility(View.INVISIBLE);
+ rb2.setVisibility(View.INVISIBLE);
+ }
+ else{
+ rb.setVisibility(View.VISIBLE);
+ rb2.setVisibility(View.VISIBLE);
+ }
+ }
+
+ public void incremental(View view){
+ if (rb.isChecked()){
+ Toast test = Toast.makeText(getApplicationContext(),"Abir-Tx is Working on it. Will be available Soon", Toast.LENGTH_LONG);
+ test.show();
+ }
+ else{
+ System.out.println("hey bro");
+ }
}
}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/xwriter/printScreen.java b/app/src/main/java/com/example/xwriter/printScreen.java
index b7eb341..1b10057 100644
--- a/app/src/main/java/com/example/xwriter/printScreen.java
+++ b/app/src/main/java/com/example/xwriter/printScreen.java
@@ -4,6 +4,7 @@
import android.content.ClipData;
import android.content.ClipboardManager;
+import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
@@ -44,4 +45,13 @@ public void copy(View view) {
Toast textCopied = Toast.makeText(getApplicationContext(), "Copied to clipboard", Toast.LENGTH_LONG);
textCopied.show();
}
+
+ public void share(View view){
+ Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
+ sharingIntent.setType("text/plain");
+ String shareBody = result.getText().toString();
+ sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject Here");
+ sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
+ startActivity(Intent.createChooser(sharingIntent, "Share via"));
+ }
}
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..e009ebe
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_counter.xml b/app/src/main/res/layout/activity_counter.xml
index 13e2cd2..2346536 100644
--- a/app/src/main/res/layout/activity_counter.xml
+++ b/app/src/main/res/layout/activity_counter.xml
@@ -37,9 +37,51 @@
android:layout_marginTop="20dp"
android:letterSpacing="1"
android:onClick="print2"
- android:text="Submit"
+ android:text=""
android:textColor="@android:color/holo_blue_bright"
android:textSize="20sp"
android:visibility="visible" />
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 60850d1..db3e371 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -28,7 +28,7 @@
android:background="@android:color/darker_gray"
android:outlineProvider="background"
android:outlineAmbientShadowColor="@android:color/holo_blue_dark"
- android:textSize="40dp"
+ android:textSize="40sp"
android:padding="10dp"
android:focusable="true"
android:textIsSelectable="true"
@@ -46,7 +46,7 @@
android:layout_centerHorizontal="true"
android:padding="20dp"
android:text="@string/print"
- android:textSize="25dp"
+ android:textSize="25sp"
android:hapticFeedbackEnabled="true"
android:background="@android:color/black"
android:textColor="@android:color/white"
diff --git a/app/src/main/res/layout/activity_print_screen.xml b/app/src/main/res/layout/activity_print_screen.xml
index ba97182..99df8b6 100644
--- a/app/src/main/res/layout/activity_print_screen.xml
+++ b/app/src/main/res/layout/activity_print_screen.xml
@@ -15,24 +15,42 @@
android:id="@+id/result"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textSize="30dp"
+ android:textSize="30sp"
+ android:layout_gravity="top"
android:textColor="@android:color/white"
- android:layout_alignParentTop="true"
android:textIsSelectable="true"
>
-
+
+ app:backgroundTint="#FFFFFF"
+ android:contentDescription="@string/copyButtonDescription"
+ />
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
index cabf092..136ac39 100644
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
index 013cd07..5951d90 100644
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png and b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
index cabf092..a8dd2f7 100644
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
index fb1dcb0..9856bc6 100644
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
index 63434ad..66a57f6 100644
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png and b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
index fb1dcb0..0e00ada 100644
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
index 78fcfa3..d15e804 100644
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
index 255105e..213cc77 100644
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
index 78fcfa3..3acf93f 100644
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
index 8887e5c..d6dbfdc 100644
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
index 6f24688..533b717 100644
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
index 8887e5c..a67ca7a 100644
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
index 92b9aba..a1bb568 100644
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
index 5649a7c..4ba2764 100644
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
index 92b9aba..f549fa8 100644
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7a52fbf..906f0fd 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -3,4 +3,18 @@
Input the text you want to print
Print
Press To Copy
+ Press To Share
+
+ Opens the share menu for sharing copied text to different apps
+ Copies the text from this windows to the clipboard
+
+
+ Advanced Options
+
+
+ Submit
+
+
+ Incremental
+ Nothing
\ No newline at end of file