first commit 12/12/2025
This commit is contained in:
@@ -17,6 +17,7 @@ import androidx.compose.runtime.setValue
|
|||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
|
||||||
import com.example.pagingapp.ui.theme.PagingAppTheme
|
import com.example.pagingapp.ui.theme.PagingAppTheme
|
||||||
|
import com.example.pagingapp.views.AboutView
|
||||||
import com.example.pagingapp.views.SettingView
|
import com.example.pagingapp.views.SettingView
|
||||||
|
|
||||||
class MainActivity : ComponentActivity() {
|
class MainActivity : ComponentActivity() {
|
||||||
@@ -59,6 +60,7 @@ fun App(){
|
|||||||
|
|
||||||
OperationState.About ->{
|
OperationState.About ->{
|
||||||
println("about clicked")
|
println("about clicked")
|
||||||
|
AboutView(modifier = Modifier.padding(innerPadding))
|
||||||
}
|
}
|
||||||
OperationState.Exit -> {
|
OperationState.Exit -> {
|
||||||
// dialog confirmation exit
|
// dialog confirmation exit
|
||||||
|
|||||||
@@ -1,9 +1,32 @@
|
|||||||
package com.example.pagingapp.views
|
package com.example.pagingapp.views
|
||||||
|
|
||||||
|
import androidx.compose.foundation.Image
|
||||||
|
import androidx.compose.foundation.layout.Column
|
||||||
|
import androidx.compose.foundation.layout.Row
|
||||||
|
import androidx.compose.foundation.layout.Spacer
|
||||||
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
|
import androidx.compose.foundation.layout.padding
|
||||||
|
import androidx.compose.foundation.layout.width
|
||||||
|
import androidx.compose.material3.Text
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.res.painterResource
|
||||||
|
import androidx.compose.ui.text.style.TextAlign
|
||||||
|
import androidx.compose.ui.unit.dp
|
||||||
|
import com.example.pagingapp.R
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun AboutView(mod: Modifier = Modifier){
|
fun AboutView(modifier: Modifier = Modifier){
|
||||||
|
Row(modifier = modifier.fillMaxSize().padding(16.dp), verticalAlignment = Alignment.CenterVertically)
|
||||||
|
{
|
||||||
|
Image(painter = painterResource(R.drawable.gtcbackground240), contentDescription = "About Image")
|
||||||
|
Spacer(modifier = Modifier.width(8.dp))
|
||||||
|
Column{
|
||||||
|
Text("VX-3000 Paging App", modifier = Modifier.padding(8.dp).fillMaxWidth(), textAlign = TextAlign.Center)
|
||||||
|
Text("Version 1.0.0", modifier = Modifier.padding(8.dp).fillMaxWidth(), textAlign = TextAlign.Center)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4,6 +4,6 @@ import androidx.compose.runtime.Composable
|
|||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun GroupView(mod: Modifier = Modifier){
|
fun GroupView(modifier: Modifier = Modifier){
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4,6 +4,6 @@ import androidx.compose.runtime.Composable
|
|||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun ZoneView(mod: Modifier = Modifier){
|
fun ZoneView(modifier: Modifier = Modifier){
|
||||||
|
|
||||||
}
|
}
|
||||||
BIN
app/src/main/res/drawable/gtcbackground240.png
Normal file
BIN
app/src/main/res/drawable/gtcbackground240.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Reference in New Issue
Block a user