This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun setupUI() { | |
sign_out_button.setOnClickListener { | |
signOut() | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Column( | |
horizontalAlignment = Alignment.CenterHorizontally, | |
verticalArrangement = Arrangement.Center | |
) { | |
Text( | |
text = "Enter Movie title", | |
fontSize = 30.sp, | |
fontWeight = FontWeight.Bold | |
) | |
Spacer(modifier = Modifier.height(10.dp)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val country = countryId?.let { it1 -> CountryRepository.findCountry(it1) } | |
Column( | |
horizontalAlignment = Alignment.CenterHorizontally, | |
verticalArrangement = Arrangement.Center | |
) { | |
Text( | |
text = "${country?.name} ", | |
fontSize = 30.sp, | |
fontWeight = FontWeight.Bold |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TopAppBar(backgroundColor = Color.Transparent, elevation = 0.dp) { | |
Row( | |
horizontalArrangement = Arrangement.Start, | |
modifier = Modifier.padding(start = 8.dp) | |
) { | |
Icon( | |
imageVector = Icons.Default.ArrowBack, | |
contentDescription = "Arrow Back", | |
modifier = Modifier.clickable { | |
navController.popBackStack() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setContent { | |
CountriesApp { | |
Navigation() | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scanner.getStartScanIntent(this@MainActivity).addOnSuccessListener { | |
scannerLauncher.launch( | |
IntentSenderRequest.Builder(it).build() | |
) | |
}.addOnFailureListener { | |
it.message?.let { errorMessage -> showToast(errorMessage) } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val options = configureDucumentScannerOptions() | |
val scanner = GmsDocumentScanning.getClient(options) | |
scanner.getStartScanIntent(this@MainActivity).addOnSuccessListener { | |
scannerLauncher.launch( | |
IntentSenderRequest.Builder(it).build() | |
) | |
}.addOnFailureListener { | |
it.message?.let { errorMessage -> showToast(errorMessage) } | |
} |
OlderNewer