Untitled
unknown
plain_text
20 days ago
1.7 kB
1
Indexable
Never
package com.example.cabinees import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.material3.Card import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp import com.example.cabinees.ui.theme.CabineesTheme import androidx.compose.ui.Modifier class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) enableEdgeToEdge() setContent { CabineesTheme { CabinessItemMainScreen() } } } } @Composable fun CabinessItemMainScreen() { Column(modifier = Modifier.fillMaxSize().padding(16.dp)) { Row { Text(text = "Cabiness Items") } Row { Card(modifier = Modifier.padding(8.dp)) { Text(text = "Item 2") } } Row { Card(modifier = Modifier.padding(8.dp)) { Text(text = "Item 3", modifier = Modifier.padding(16.dp)) } } // Add more rows and cards as needed } } @Preview(showBackground = true) @Composable fun GreetingPreview() { CabineesTheme { CabinessItemMainScreen() // Display the main screen in the preview } }
Leave a Comment