Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor MainActivity Layout and Functionality #1

Merged
merged 8 commits into from
Dec 10, 2023

Conversation

bonig97
Copy link
Owner

@bonig97 bonig97 commented Dec 10, 2023

Refactor MainActivity Layout and Functionality

This pull request introduces significant updates to the MainActivity layout and functionality. We've implemented modern design components and file handling techniques to enhance user experience and code maintainability.

Changes

Layout Refactoring with Material Design Components

  • ConstraintLayout Guidelines: Introduced guidelines for consistent margins and alignment.
  • MaterialButton: Replaced the standard Button with MaterialButton for a modern look and feel.
  • TextView Constraints: Modified layout constraints of TextView for better positioning and readability.
  • TextInputLayouts: Added TextInputLayouts for improved input field handling.
  • Layout Adjustments: Made adjustments to element sizes and constraints for enhanced responsiveness and layout structure.

Modern File Picker and Search Functionality

  • ActivityResultLauncher: Transitioned to ActivityResultLauncher for handling file access, replacing manual permission handling.
  • Modern File Picker: Implemented Intent.ACTION_OPEN_DOCUMENT for a contemporary file picking approach.
  • Search Functionality: Added the ability to count occurrences of a word within the selected file.
  • Cleaner Codebase: Removed deprecated permission check methods for enhanced code efficiency.
  • Refactored onActivityResult: Updated onActivityResult to manage file selection and text processing efficiently.

@bonig97 bonig97 merged commit 85eaad1 into main Dec 10, 2023
1 check passed
@bonig97 bonig97 deleted the feature_read-from-storage branch December 10, 2023 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant