Skip to content
Snippets Groups Projects
Unverified Commit 440b4e8f authored by AC5636's avatar AC5636 :ghost:
Browse files

Update readme

parent 91ad9f71
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ I have spent a lot of time to understand the basics of Android development and N ...@@ -19,6 +19,7 @@ I have spent a lot of time to understand the basics of Android development and N
## Features ## Features
- [x] Read data from an NFC tag - [x] Read data from an NFC tag
- [x] Selectable text after the NFC tag is read
- [x] Write data to an NFC tag - [x] Write data to an NFC tag
- [x] Observe NFC tag state change - [x] Observe NFC tag state change
- [x] Survive configuration changes - [x] Survive configuration changes
......
...@@ -26,6 +26,7 @@ import androidx.compose.foundation.layout.fillMaxWidth ...@@ -26,6 +26,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.width
import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.text.selection.SelectionContainer
import androidx.compose.foundation.verticalScroll import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Check import androidx.compose.material.icons.filled.Check
...@@ -123,7 +124,7 @@ class MainActivity : ComponentActivity() { ...@@ -123,7 +124,7 @@ class MainActivity : ComponentActivity() {
if (uiState.value.isNFCAvailable) { if (uiState.value.isNFCAvailable) {
AssistChip( AssistChip(
onClick = { /*TODO*/ }, onClick = { /*TODO*/ },
label = { Text(text = if(uiState.value.isNFCEnabled) "Enabled" else "Disabled") }, label = { Text(text = if (uiState.value.isNFCEnabled) "Enabled" else "Disabled") },
leadingIcon = { leadingIcon = {
Icon( Icon(
imageVector = if (uiState.value.isNFCEnabled) Icons.Filled.Check else Icons.Filled.Close, imageVector = if (uiState.value.isNFCEnabled) Icons.Filled.Check else Icons.Filled.Close,
...@@ -172,12 +173,15 @@ class MainActivity : ComponentActivity() { ...@@ -172,12 +173,15 @@ class MainActivity : ComponentActivity() {
} }
Divider(modifier = Modifier.padding(top = 16.dp, bottom = 4.dp)) Divider(modifier = Modifier.padding(top = 16.dp, bottom = 4.dp))
Column(modifier=Modifier.verticalScroll(state = rememberScrollState())) { SelectionContainer {
// TechList Column(modifier = Modifier.verticalScroll(state = rememberScrollState())) {
Text(text = getSection("TechList", uiState.value.techList))
Divider(modifier = Modifier.padding(vertical = 4.dp)) // TechList
// Records Text(text = getSection("TechList", uiState.value.techList))
Text(text = getSection("Records", uiState.value.records)) Divider(modifier = Modifier.padding(vertical = 4.dp))
// Records
Text(text = getSection("Records", uiState.value.records))
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment