0Pricing
Jetpack Compose Academy · Ders

Text Composable'ı

Bir dize gösterin ve temel özelliklerini denetleyin.

Text Composable'ı, CoddyKit'te ücretsiz bir Jetpack Compose Academy dersidir. Bu, 4 dersinin 1. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Jetpack Compose Academy öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Jetpack Compose Academy kursu toplamda 4 dersten oluşur.

Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.

Meet Text

In Compose, you put words on screen with the Text composable. It is the simplest building block you will use in almost every screen.

Pass a String

Give Text a string and it renders instantly. No XML, no findViewById, just a function call describing what you want shown.

Text("Hello, Compose!")

It Is Just a Function

Text is a composable function, not a class you inflate. You call it inside other composables, exactly like calling any Kotlin function. 🙂

Where Text Lives

You write Text inside a composable function such as your screen. Compose reads your code top to bottom and draws each element it finds.

@Composable
fun Greeting() {
    Text("Welcome")
}

Default Styling

With no extra arguments, Text uses sensible defaults from your theme: a readable size, the on-surface color, and the standard font.

Strings from Resources

For real apps, pull text from stringResource instead of hardcoding. This keeps your app translatable into every language you ship.

Text(stringResource(R.string.greeting))

Combine with Variables

Because it is plain Kotlin, you can build the string from variables and templates before passing it to Text. Logic and UI live together.

val name = "Ada"
Text("Hi, " + name)

Many Texts, One Screen

Need several lines? Just call Text multiple times. Each call is one independent element you can style on its own later.

maxLines Keeps It Tidy

Long content can be capped with maxLines so a label never grows taller than you expect. It simply stops drawing extra lines.

Text("A very long bio...", maxLines = 1)

Reacts to State

When the string you pass changes, Text redraws automatically. You never call an update method; Compose tracks the value for you.

Your First Words

That is the whole idea: describe the text you want, and Compose paints it. Everything fancier is just extra arguments on this same call.

Quick Check

Which line correctly shows a greeting in Compose?

Recap

You met Text, the core composable for showing words. Pass it a string, lean on theme defaults, and it redraws whenever the value changes. 🎉

Sıkça Sorulan Sorular

“Text Composable'ı” dersi ücretsiz mi?

Evet — “Text Composable'ı” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Jetpack Compose Academy kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Jetpack Compose Academy kursu toplamda 4 dersten oluşur.

“Text Composable'ı” dersinde ne öğreneceğim?

Bir dize gösterin ve temel özelliklerini denetleyin. Jetpack Compose Academy ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.

Jetpack Compose Academy öğrenmeye başlamak için deneyim gerekli mi?

Önceden deneyim gerekmez. CoddyKit'te Jetpack Compose Academy, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 1. dersidir.

“Text Composable'ı” dersi ne kadar sürer?

Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.

Bu Jetpack Compose Academy dersinde kod yazıp çalıştırabilir miyim?

Evet. Her Jetpack Compose Academy dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.

Bu kursun tüm dersleri

  1. Text Composable'ı
  2. Yazı Tipi Boyutu, Kalınlığı ve Stili
  3. Renk, Hizalama ve Taşma
  4. AnnotatedString: Biçimlendirilmiş Karışık Metin
← Jetpack Compose Academy Sayfasına Dön