Skip to content

Add MaterialTextView binding#44

Merged
colemancda merged 2 commits into
masterfrom
feature/material-textview
Jul 22, 2026
Merged

Add MaterialTextView binding#44
colemancda merged 2 commits into
masterfrom
feature/material-textview

Conversation

@colemancda

Copy link
Copy Markdown
Member

Overview

Adds a binding for com.google.android.material.textview.MaterialTextView to the AndroidMaterial module, alongside the existing MaterialButton and MaterialDivider bindings.

  • Sources/AndroidMaterial/swift-java.config: registers the class with the wrapper generator.
  • Sources/AndroidMaterial/MaterialTextView.swift: the binding — the four standard widget constructors plus the class's declared setTextAppearance(_:_:) and setLineHeight(_:) overrides, extending TextView (consistent with MaterialButton extending Button).

Motivation

Enables Material 3 text rendering for view-based consumers; in particular, AndroidSwiftUI's Text can render with MaterialTextView once this is available, completing its Material Components migration alongside MaterialButton and MaterialDivider.

Testing

  • Package builds on the host toolchain.
  • Verified at runtime on an emulator (API 36, arm64) with Material Components 1.14.0 under a Theme.Material3.DayNight theme: instances construct via JNI and render text correctly.

@colemancda
colemancda merged commit 69d1e74 into master Jul 22, 2026
4 checks passed
@colemancda
colemancda deleted the feature/material-textview branch July 22, 2026 00:12
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