August 2025
Intermediate to advanced
270 pages
6h 16m
English
To convert our text to a tappable button, replace the contents of setContent with a Button().
| | // ... |
| | import android.view.Gravity |
| | import android.view.ViewGroup |
| | import androidx.appcompat.widget.Toolbar |
| » | import androidx.compose.material3.Button |
| | import androidx.compose.material3.Text |
| | import androidx.compose.ui.platform.ComposeView |
| | // ... |
| | |
| | class ButtonComponent( |
| | name: String, |
| | private val bridgeDelegate: BridgeDelegate<HotwireDestination> |
| | ) : BridgeComponent<HotwireDestination>(name, bridgeDelegate) { |
| | private val fragment: HotwireFragment |
| | get() = bridgeDelegate.destination.fragment ... |
Read now
Unlock full access