[MWA-5265] Meta Demo: Theming via xml
{Update actionId placeholder and add theming strings}
This commit is contained in:
parent
68bd499c09
commit
1a7854af19
@ -51,7 +51,7 @@ private val config = VideoOptionsConfig(
|
||||
)
|
||||
|
||||
// TODO insert your Action id
|
||||
private const val actionId = "347397703"
|
||||
private const val actionId = "<9_digit_webid_transaction_id>"
|
||||
|
||||
// TODO choose your environment
|
||||
private val chosenEnvironment: EWebIDEnv = EWebIDEnv.TEST
|
||||
|
||||
@ -95,27 +95,25 @@ fun MetaPluginDemoScene(
|
||||
|
||||
SpacingV4.S.VSpacer()
|
||||
|
||||
Column {
|
||||
CheckboxWithLabel(
|
||||
checked = useXmlTheming == ThemingChoice.COMPOSE,
|
||||
onCheckedChange = { isChecked ->
|
||||
if (isChecked) {
|
||||
useXmlTheming = ThemingChoice.COMPOSE
|
||||
}
|
||||
},
|
||||
label = stringResource(R.string.choose_theming_compose)
|
||||
)
|
||||
CheckboxWithLabel(
|
||||
checked = useXmlTheming == ThemingChoice.COMPOSE,
|
||||
onCheckedChange = { isChecked ->
|
||||
if (isChecked) {
|
||||
useXmlTheming = ThemingChoice.COMPOSE
|
||||
}
|
||||
},
|
||||
label = stringResource(R.string.choose_theming_compose)
|
||||
)
|
||||
|
||||
CheckboxWithLabel(
|
||||
checked = useXmlTheming == ThemingChoice.XML,
|
||||
onCheckedChange = { isChecked ->
|
||||
if (isChecked) {
|
||||
useXmlTheming = ThemingChoice.XML
|
||||
}
|
||||
},
|
||||
label = stringResource(R.string.choose_theming_xml)
|
||||
)
|
||||
}
|
||||
CheckboxWithLabel(
|
||||
checked = useXmlTheming == ThemingChoice.XML,
|
||||
onCheckedChange = { isChecked ->
|
||||
if (isChecked) {
|
||||
useXmlTheming = ThemingChoice.XML
|
||||
}
|
||||
},
|
||||
label = stringResource(R.string.choose_theming_xml)
|
||||
)
|
||||
|
||||
SpacingV4.L.VSpacer()
|
||||
|
||||
|
||||
@ -10,4 +10,6 @@
|
||||
<string name="validate_action_id">Validiere Vorgangsnummer…</string>
|
||||
<string name="action_id_not_valid">Fehler: Die Vorgangsnummer (Action-ID) wurde in der Datei „MainActivity.kt“ nicht auf eine 9-stellige Zahlenfolge gesetzt.</string>
|
||||
<string name="choose_theming">Theme auswählen:</string>
|
||||
<string name="choose_theming_compose">Theme mit Compose</string>
|
||||
<string name="choose_theming_xml">Theme mit XML</string>
|
||||
</resources>
|
||||
@ -10,4 +10,6 @@
|
||||
<string name="validate_action_id">Validar número de operación…</string>
|
||||
<string name="action_id_not_valid">Error: El número de operación («action-ID») no se ha establecido en una secuencia numérica de 9 dígitos en el archivo «MainActivity.kt».</string>
|
||||
<string name="choose_theming">Elige un tema</string>
|
||||
<string name="choose_theming_compose">Theming with Compose</string>
|
||||
<string name="choose_theming_xml">Theming with XML</string>
|
||||
</resources>
|
||||
@ -10,4 +10,6 @@
|
||||
<string name="validate_action_id">Valider le numéro d\'opération…</string>
|
||||
<string name="action_id_not_valid">Erreur : le numéro d\'opération (ActionID) n\'a pas été défini sur une séquence de 9 chiffres dans le fichier « MainActivity.kt ».</string>
|
||||
<string name="choose_theming">Choisir le thème</string>
|
||||
<string name="choose_theming_compose">Theming with Compose</string>
|
||||
<string name="choose_theming_xml">Theming with XML</string>
|
||||
</resources>
|
||||
@ -10,4 +10,6 @@
|
||||
<string name="validate_action_id">Convalida numero operazione…</string>
|
||||
<string name="action_id_not_valid">Errore: il numero dell\'operazione (ActionID) non è stato impostato su una sequenza di 9 cifre nel file “MainActivity.kt”.</string>
|
||||
<string name="choose_theming">Scegli il tema</string>
|
||||
<string name="choose_theming_compose">Theming with Compose</string>
|
||||
<string name="choose_theming_xml">Theming with XML</string>
|
||||
</resources>
|
||||
@ -10,4 +10,6 @@
|
||||
<string name="validate_action_id">Valideer transactienummer…</string>
|
||||
<string name="action_id_not_valid">Fout: het actienummer (ActionID) is in het bestand “MainActivity.kt” niet ingesteld op een reeks van 9 cijfers.</string>
|
||||
<string name="choose_theming">Thema kiezen</string>
|
||||
<string name="choose_theming_compose">Theming with Compose</string>
|
||||
<string name="choose_theming_xml">Theming with XML</string>
|
||||
</resources>
|
||||
@ -10,4 +10,6 @@
|
||||
<string name="validate_action_id">Zatwierdź numer operacji…</string>
|
||||
<string name="action_id_not_valid">Błąd: Numer operacji (Action-ID) nie został ustawiony na 9-cyfrową sekwencję cyfr w pliku „MainActivity.kt”.</string>
|
||||
<string name="choose_theming">Wybierz motyw</string>
|
||||
<string name="choose_theming_compose">Theming with Compose</string>
|
||||
<string name="choose_theming_xml">Theming with XML</string>
|
||||
</resources>
|
||||
@ -10,4 +10,6 @@
|
||||
<string name="validate_action_id">Validați numărul operațiunii…</string>
|
||||
<string name="action_id_not_valid">Eroare: Numărul operațiunii („Action-ID”) nu a fost setat la o secvență de 9 cifre în fișierul „MainActivity.kt”.</string>
|
||||
<string name="choose_theming">Alege tema</string>
|
||||
<string name="choose_theming_compose">Theming with Compose</string>
|
||||
<string name="choose_theming_xml">Theming with XML</string>
|
||||
</resources>
|
||||
@ -10,4 +10,6 @@
|
||||
<string name="validate_action_id">İşlem numarasını doğrula…</string>
|
||||
<string name="action_id_not_valid">Hata: İşlem numarası (Action-ID) “MainActivity.kt” dosyasında 9 basamaklı bir sayı dizisi olarak ayarlanmamıştır.</string>
|
||||
<string name="choose_theming">Tema seç</string>
|
||||
<string name="choose_theming_compose">Theming with Compose</string>
|
||||
<string name="choose_theming_xml">Theming with XML</string>
|
||||
</resources>
|
||||
Loading…
x
Reference in New Issue
Block a user