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:
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user