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

updated the fragment dashboard #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

schourasia750
Copy link

@schourasia750 schourasia750 commented Mar 28, 2025

BEFORE

Screenshot 2025-03-28 154741

AFTER

Screenshot 2025-03-28 160708

Changes Made:

Gradient Background:

  • Replaced the solid background with a gradient drawable (@drawable/bg_gradient) to create a visually appealing backdrop.

ScrollView Container:

  • Wrapped the entire UI content in a ScrollView to enhance usability on smaller screens by preventing content clipping.

Interactive MaterialCardViews:

  • Made all MaterialCardViews clickable and focusable, adding a ripple effect using android:foreground="?attr/selectableItemBackground". This provides immediate visual feedback to the user.

Responsive Layout Adjustments:

  • For horizontally arranged card groups, changed card widths to 0dp with layout_weight="1" so that they evenly distribute space.

-Increased card heights on grid items (e.g., top row cards now use 120dp height) for a balanced look.

Optimized Spacing & Sizing:

-Adjusted margins and paddings for a more balanced, airy feel.

-Increased icon sizes from 50dp to 60dp to make them more visible.

-Standardized text sizes and used a consistent font (sans-serif-medium) across cards for visual cohesion.

Accessibility Enhancements:

-Added android:contentDescription to each icon for better accessibility support.

Overall Visual Consistency:

-Uniform card styling with updated corner radii, elevation, and spacing contributes to a modern, material-inspired design.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.

None yet

1 participant