Created
February 22, 2023 17:41
-
-
Save veroanggra/80960f2a45925faa53f0c97713466268 to your computer and use it in GitHub Desktop.
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
package com.veroanggra.migratingsample | |
import android.os.Bundle | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.material.Surface | |
import androidx.compose.material3.Text | |
import androidx.compose.runtime.Composable | |
import com.veroanggra.composesubmission.ui.theme.PlayingWithComposeTheme | |
class MainActivity : ComponentActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContent { | |
PlayingWithComposeTheme{ | |
Surface { | |
ColumnArrange() | |
} | |
} | |
} | |
} | |
} | |
@Composable | |
fun ColumnArrange() { | |
Column() { | |
Text(text = "Column1") | |
Text(text = "Column2") | |
Text(text = "Column3") | |
Text(text = "Column4") | |
Text(text = "Column5") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment