|
@@ -175,6 +175,12 @@ fun AddContactInfoScreen() {
|
|
|
NumberTextFieldACIFS(keyboardController = keyboardController, focusManager = focusManager, labelText = R.string.mobile, placeholder = R.string.mobile, ImeAction.Next)
|
|
|
Spacer(modifier = Modifier.height(20.dp))
|
|
|
NumberTextFieldACIFS(keyboardController = keyboardController, focusManager = focusManager, labelText = R.string.fax, placeholder = R.string.fax, ImeAction.Done)
|
|
|
+
|
|
|
+ Spacer(modifier = Modifier.height(20.dp))
|
|
|
+ NameTextFieldACIFS(keyboardController = keyboardController, focusManager = focusManager, labelText = R.string.username)
|
|
|
+
|
|
|
+ Spacer(modifier = Modifier.height(20.dp))
|
|
|
+ NotesTextFieldACIFS(keyboardController = keyboardController, focusManager = focusManager)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1376,4 +1382,74 @@ fun BoxScope.SaveButtonACIFS(buttonText: Int) {
|
|
|
textAlign = TextAlign.Center
|
|
|
)
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+@Composable
|
|
|
+fun ColumnScope.NotesTextFieldACIFS(
|
|
|
+ keyboardController: SoftwareKeyboardController?,
|
|
|
+ focusManager: FocusManager
|
|
|
+) {
|
|
|
+ var notesText by remember { mutableStateOf("") }
|
|
|
+
|
|
|
+ TextField(
|
|
|
+ value = notesText,
|
|
|
+ onValueChange = {
|
|
|
+ notesText = it
|
|
|
+ },
|
|
|
+ textStyle = MaterialTheme.typography.displayMedium,
|
|
|
+ modifier = Modifier
|
|
|
+ .align(Alignment.Start)
|
|
|
+ .fillMaxWidth()
|
|
|
+ .defaultMinSize(minHeight = 60.dp)
|
|
|
+ .wrapContentHeight()
|
|
|
+ .border(
|
|
|
+ 1.dp,
|
|
|
+ color = colorResource(id = R.color.gray_border_textfield),
|
|
|
+ shape = RoundedCornerShape(16.dp)
|
|
|
+ )
|
|
|
+ .background(color = colorResource(id = R.color.transparent))
|
|
|
+ ,
|
|
|
+ shape = RoundedCornerShape(16.dp),
|
|
|
+// placeholder = {
|
|
|
+// Text(
|
|
|
+// text = stringResource(id = R.string.enter_email_address),
|
|
|
+// color = colorResource(id = R.color.gray_splash),
|
|
|
+// style = MaterialTheme.typography.displayMedium
|
|
|
+// )
|
|
|
+// },
|
|
|
+ label = {
|
|
|
+ Text(text = stringResource(R.string.notes),
|
|
|
+ style = MaterialTheme.typography.titleSmall.copy(
|
|
|
+ color = colorResource(id = R.color.gray_text)
|
|
|
+ )
|
|
|
+ )
|
|
|
+ },
|
|
|
+// leadingIcon = {
|
|
|
+// Image(
|
|
|
+// painter = painterResource(id = R.drawable.profile_circle),
|
|
|
+// contentDescription = "Title Logo",
|
|
|
+// modifier = Modifier
|
|
|
+// .size(24.dp, 24.dp)
|
|
|
+// )
|
|
|
+// },
|
|
|
+ colors = TextFieldDefaults.colors(
|
|
|
+ focusedLabelColor = colorResource(id = R.color.gray_splash),
|
|
|
+ unfocusedContainerColor = colorResource(id = R.color.transparent),
|
|
|
+ focusedContainerColor = colorResource(id = R.color.transparent),
|
|
|
+ focusedIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
+ disabledIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
+ unfocusedIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
+ cursorColor = colorResource(id = R.color.gray_splash),
|
|
|
+ ),
|
|
|
+ keyboardOptions = KeyboardOptions(
|
|
|
+ keyboardType = KeyboardType.Text,
|
|
|
+ imeAction = ImeAction.Default
|
|
|
+ ),
|
|
|
+ keyboardActions = KeyboardActions(
|
|
|
+ onDone = {
|
|
|
+ focusManager.clearFocus()
|
|
|
+ keyboardController?.hide()
|
|
|
+ }
|
|
|
+ ),
|
|
|
+ )
|
|
|
}
|