Android Compose: Add top bar title to activity screen

@Composable
fun topBar() {
TopAppBar(title = {
Text(
text = "My Important Dates",
style = MaterialTheme.typography.h6,
textAlign = TextAlign.Center
)
})
}
@Composable
fun HomeScreen(onNavigate: (Todo?) -> Unit) {…

--

--

--

software engineer, read, swim, travel. apps: https://goo.gl/rDuuQw https://goo.gl/15GvfE

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Android Tools Attributes and Sample Data — Must know helpers!

Android — How to test Paging 3 (PagingSource)?

Lifecycle methods of Android Activity — Scenario based Question

Android Shape Your Image: Circle, Rounded Square, or Cuts at the Corner of Image

Complete Kotlin Tutorial For Android Developers

Getter and Setter, Late-Initialized Properties, Interface, Visibility Modifiers, Extension…

Send Device-to-Device Push Notifications Without Server-side Code

React-Native | com.android.build.gradle.internal.tasks.Workers$ActionFacade Build Error

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andres Sandoval

Andres Sandoval

software engineer, read, swim, travel. apps: https://goo.gl/rDuuQw https://goo.gl/15GvfE

More from Medium

Android — Text View

Expert: Integration of HMS Core Kits in Android Jetpack App Part-1

Add AdMob Ad banner using Android Compose

Consuming Activity Results using coroutines: Part 2