GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Replace ViewPager2 with Native Morphing Carousel & Refine Touch Feedback by Dhangofa · Pull Request #20 · Dhangofa/NetToggle Conversation
Owner
🚀 OverviewThis PR significantly reduces the application's UI bloat and dependency footprint by entirely ripping out the heavyweight Additionally, this PR meticulously polishes the touch feedback (ripples) across the UI, ensuring all click animations perfectly respect the custom border radiuses of their respective components without any square edge bleeding. ✨ Key Features & Improvements🏗️ Architecture & Dependency Reduction
🎨 Premium Morphing Animations
🧠 Smart Auto-Cycling & Lifecycle Management
👆 Touch Feedback & Ripple Polish
🗑️ Removed Files
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions- Removed ViewPager2 & TabLayout: Completely excised the heavyweight androidx.viewpager2.widget.ViewPager2 and TabLayout nodes from the layout hierarchy, significantly reducing structural depth and UI bloat. - Implemented Native Morphing Container: Introduced a custom, native LinearLayout structure with internal TextView and ImageView components (carouselTitle, carouselDesc, carouselButton, carouselIcon) to act as a unified, single-layer morphing canvas. - Added Custom Pill Ripple Masking: Added android:foreground="@drawable/ripple_pill_mask" to the Carousel "Read Guide" button to ensure its dynamically tinted click feedback perfectly respects the 20dp pill-shaped bounding box without square edge bleeding. - Restored Native Social Ripples: Removed experimental foreground overlays from the Footer Social Links (GitHub, Telegram, FAQ), allowing them to correctly utilize their native 12dp rounded background ripples. - Removed ViewPager2 & TabLayout: Deleted the ViewPager2 and TabLayout definitions from the landscape layout configuration to ensure consistency with the portrait architecture. - Implemented Native Morphing Container: Replicated the new custom LinearLayout morphing structure (containing the title, description, button, and icon elements) to maintain the lightweight UI approach in landscape. - Added Custom Pill Ripple Masking: Applied android:foreground="@drawable/ripple_pill_mask" to the Carousel action button to enforce perfect pill-shaped touch boundaries. - Restored Native Social Ripples: Removed experimental rectangular foreground overrides on the social links, allowing their native, perfectly clipped rounded-corner ripples to function as intended. - Created a new XML ripple drawable containing a strict 20dp corner radius bounding mask. - Ensures that interactive foreground touch feedback accurately conforms to the rounded bounds of pill-shaped buttons instead of bleeding into the default rectangular bounds. - Deleted item_carousel.xml from the resource directory. - The layout structure for individual pages has been integrated directly into activity_main.xml to facilitate the morphing animations, making this separate file obsolete. - Removed the androidx.viewpager2:viewpager2 dependency from the build configuration. - Eliminated unnecessary library bloat, ensuring the application remains as lightweight as possible. - Deleted CarouselAdapter.java from the codebase entirely. - Removed the RecyclerView.Adapter implementation, as data binding is now handled directly by MainActivity within the native view architecture. - Removed all ViewPager2 initialization logic, page change callbacks, and adapter binding code. - Implemented setupCarousel() and renderCarouselPage() to natively bind data and construct the UI. - Integrated ArgbEvaluator to mathematically transition the background color between states. - Implemented ViewPropertyAnimator to handle directional slide-out and slide-in physical animations for the internal content. - Built a smart auto-cycling timer using Handler and Runnable that cycles every 5 seconds. - Implemented touch listeners to detect manual user swipes, pausing the auto-cycler and resuming it after 10 seconds of inactivity. - Connected the carousel state to updateAuthorizationUI(), dynamically locking to the first page when unauthorized, and cycling the setup steps when authorized. - Added onResume() and onPause() lifecycle hooks to automatically pause the timer when the app is in the background. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |