diff --git a/app/src/main/java/io/github/sankalp/lunox/dialogs/OnboardingTutorialDialog.java b/app/src/main/java/io/github/sankalp/lunox/dialogs/OnboardingTutorialDialog.java
index 765fb0c..40c35cf 100644
--- a/app/src/main/java/io/github/sankalp/lunox/dialogs/OnboardingTutorialDialog.java
+++ b/app/src/main/java/io/github/sankalp/lunox/dialogs/OnboardingTutorialDialog.java
@@ -28,35 +28,27 @@ public class OnboardingTutorialDialog extends Dialog implements View.OnClickList
private final LauncherActivity launcherActivity;
private final Context context;
-
+
private TextView titleView;
private TextView stepIndicatorView;
private TextView contentView;
private TextView skipButton;
private TextView previousButton;
private TextView nextButton;
-
+
private int currentStep = 1;
private static final int TOTAL_STEPS = 7;
-
- // Tutorial step data
- private final int[] stepTitles = {
- R.string.tutorial_step_1_title,
- R.string.tutorial_step_2_title,
- R.string.tutorial_step_3_title,
- R.string.tutorial_step_4_title,
- R.string.tutorial_step_5_title,
- R.string.tutorial_step_6_title,
+
+ // Tutorial step data - using static arrays to reduce memory footprint
+ private static final int[] STEP_TITLES = {
+ R.string.tutorial_step_1_title, R.string.tutorial_step_2_title, R.string.tutorial_step_3_title,
+ R.string.tutorial_step_4_title, R.string.tutorial_step_5_title, R.string.tutorial_step_6_title,
R.string.tutorial_step_7_title
};
-
- private final int[] stepContents = {
- R.string.tutorial_step_1_content,
- R.string.tutorial_step_2_content,
- R.string.tutorial_step_3_content,
- R.string.tutorial_step_4_content,
- R.string.tutorial_step_5_content,
- R.string.tutorial_step_6_content,
+
+ private static final int[] STEP_CONTENTS = {
+ R.string.tutorial_step_1_content, R.string.tutorial_step_2_content, R.string.tutorial_step_3_content,
+ R.string.tutorial_step_4_content, R.string.tutorial_step_5_content, R.string.tutorial_step_6_content,
R.string.tutorial_step_7_content
};
@@ -92,7 +84,7 @@ public class OnboardingTutorialDialog extends Dialog implements View.OnClickList
// Update content for first step
updateStepContent();
-
+
// Prevent dismissing by tapping outside
setCancelable(false);
}
@@ -120,21 +112,21 @@ public class OnboardingTutorialDialog extends Dialog implements View.OnClickList
private void updateStepContent() {
// Update title
- titleView.setText(stepTitles[currentStep - 1]);
-
+ titleView.setText(STEP_TITLES[currentStep - 1]);
+
// Update step indicator
- stepIndicatorView.setText(currentStep + " / " + TOTAL_STEPS);
-
+ stepIndicatorView.setText(currentStep + "/" + TOTAL_STEPS);
+
// Update content
- contentView.setText(stepContents[currentStep - 1]);
-
+ contentView.setText(STEP_CONTENTS[currentStep - 1]);
+
// Update button visibility and text
if (currentStep == 1) {
previousButton.setVisibility(View.GONE);
} else {
previousButton.setVisibility(View.VISIBLE);
}
-
+
if (currentStep == TOTAL_STEPS) {
nextButton.setText(R.string.onboarding_finish);
skipButton.setVisibility(View.GONE);
@@ -148,7 +140,7 @@ public class OnboardingTutorialDialog extends Dialog implements View.OnClickList
// Mark tutorial as completed
DbUtils.setTutorialCompleted(true);
DbUtils.setFirstTimeUser(false);
-
+
// Dismiss dialog
dismiss();
}
diff --git a/app/src/main/res/layout/dialog_onboarding_tutorial.xml b/app/src/main/res/layout/dialog_onboarding_tutorial.xml
index 4d327b0..a696759 100644
--- a/app/src/main/res/layout/dialog_onboarding_tutorial.xml
+++ b/app/src/main/res/layout/dialog_onboarding_tutorial.xml
@@ -26,9 +26,9 @@
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:gravity="center"
- android:text="1 / 7"
+ android:text="1/7"
android:textColor="@android:color/white"
- android:textSize="14sp"
+ android:textSize="12sp"
android:alpha="0.7" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 18ef733..5ed9b2b 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -116,26 +116,26 @@
Close
- Welcome to Lunox Launcher
- Lunox is a minimalist text-based launcher that puts simplicity first. All your apps are displayed as text in a clean, distraction-free interface.
+ Welcome to Lunox
+ A minimalist text-based launcher. Apps are displayed as text in a clean interface.
Opening Apps
- Simply tap on any app name to open it. Apps are sorted alphabetically by default, but you can change the sorting in settings.
+ Tap any app name to open it. Apps are sorted alphabetically by default.
- Search Functionality
- Swipe down to up anywhere on the screen to open the search bar. Start typing to quickly find and launch any app.
+ Search
+ Swipe down to up to open search. Start typing to find apps quickly.
App Options
- Long press on any app to access options like rename, hide, uninstall, change colors, and more customization features.
+ Long press any app for options: rename, hide, colors, and more.
- Launcher Settings
- Long press on empty space to access launcher settings. Here you can change themes, fonts, sorting options, and other preferences.
+ Settings
+ Long press empty space for launcher settings: themes, fonts, sorting.
Customization
- Personalize your launcher with different themes, custom colors for apps, font options, and various sorting methods to make it truly yours.
+ Personalize with themes, colors, fonts, and sorting methods.
- You\'re All Set!
- That\'s all you need to know to get started with Lunox. Enjoy your clean, minimalist launcher experience!
+ Ready!
+ You\'re all set. Enjoy your minimalist launcher!
Show Tutorial