Implemented one Button on PSE activity

renamed arlrdbd font
Implementation of a .txt file based alternative for the JSON oopsie (needs work prob wrong while loop)
This commit is contained in:
matthias
2024-04-03 23:07:43 +02:00
parent f187b5899a
commit 29784348e5
13 changed files with 314 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
package com.schoolapp.cleverclass
import android.app.AlertDialog
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
@@ -15,6 +16,7 @@ import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.material3.TopAppBar
import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.runtime.Composable
@@ -44,9 +46,11 @@ fun PSEContent(activity: ComponentActivity){
TopAppBar(
colors = TopAppBarDefaults.centerAlignedTopAppBarColors(MaterialTheme.colorScheme.primaryContainer),
title = {
Text(text = "Periodensystem",
Text(
text = "Periodensystem",
style = MaterialTheme.typography.headlineSmall
)},
)
},
navigationIcon = {
IconButton(onClick = { activity.finish() }) {
Icon(
@@ -60,7 +64,17 @@ fun PSEContent(activity: ComponentActivity){
)
Column() {
//region //Element dialog definitions
val HBuilder = AlertDialog.Builder(activity)
HBuilder.setTitle("EL TITEL")
HBuilder.setMessage(elements[0].data1)
HBuilder.setPositiveButton(R.string.dialog_schließen, null)
//endregion
TextButton(
onClick = { HBuilder.show() }) {
Text(text = "H")
}
}
}
}