feat(xml-inflater): enhance Material Design 3 component compatibility#172
Open
ESTRIN217 wants to merge 7 commits intoAndroidCSOfficial:devfrom
Open
feat(xml-inflater): enhance Material Design 3 component compatibility#172ESTRIN217 wants to merge 7 commits intoAndroidCSOfficial:devfrom
ESTRIN217 wants to merge 7 commits intoAndroidCSOfficial:devfrom
Conversation
- Enhance M3 support by adding 4 new extension classes: * SearchViewM3Extensions.kt - Full M3 preview support for SearchView/SearchBar * BottomNavigationViewM3Extensions.kt - M3-specific attributes (activeIndicator*) * SwitchMaterialM3Extensions.kt - Complete M3 switch attribute handling - Update MaterialDesign3Renderer to register new M3 components * SearchView, SearchBar, BottomNavigationView, SwitchMaterial * M3 component support increased from 8/22 (36%) to 12/22 (55%) - Replace non-M3 TextView with MaterialTextView in layout_ui_widgets_category.xml * Ensures 100% M3 consistency across UI layouts Statistics: - Components with M3 preview: +50% (8 → 12) - Coverage increase: +19% (36% → 55%) - XML M3 compliance: 100% (13/13 layouts) - New extension files: 3 - Updated files: 2
- Add google-material dependency to build.gradle.kts for M3 components - Create 7 new M3 adapter classes: * LinearProgressIndicatorAdapter.kt - Full M3 progress indicator support * CircularProgressIndicatorAdapter.kt - Circular progress with M3 attributes * FloatingActionButtonAdapter.kt - FAB with elevation and sizing * ChipAdapter.kt (+ ChipGroupAdapter) - Chips with M3 styling * MaterialCheckBoxAdapter.kt - M3 checkbox with tinting * MaterialRadioButtonAdapter.kt - M3 radio button - Enhance MaterialTextViewAdapter with complete M3 support: * textAppearance resource resolution * fontFamily, lineHeight, letterSpacing attributes * Full typography M3 attributes Statistics: - Total M3 adapters: 6 → 13 components (+7 new) - M3 coverage: 30% → 65% (+35%) - New adapter files: 7 - Enhanced files: 2 (build.gradle.kts, MaterialTextViewAdapter.kt) - Total atributes supported: 100+ M3-specific
…rage - Added SearchBarAdapter and SearchViewAdapter for xml-inflater - Added MaterialDividerAdapter for separator components - Added NavigationRailViewAdapter for rail-based navigation - Added corresponding M3 extensions for uidesigner preview - Updated MaterialDesign3Renderer to register 4 new components - All M3 components now have full adapter and extension support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Eh añadido mas adapters en compatibilidad con material design, tambien e hecho lo mismo en uidesigner añadir mas modelos