Here is a screenshot of
application.
As you can see the green color is not covering the full screen but I want the green color cover the entire screen and the menu bar should be transparent to see the green color (I want a blur effect).
Here is the code:
Here is a screenshot of application. As you can see the green color is not covering the full screen but I want the green color cover the entire screen and the menu bar should be transparent to see the green color (I want a blur effect). Here is the code: [code] @composable fun BlurredBottomBar(selectedItemIndex: Int, onItemSelected: (Int) -> Unit) { val iconList = IconLists() var itemList = iconList.itemList var selectedItemList = iconList.selectedItemList Box( modifier = Modifier .padding(top = 0.dp, start = 10.dp, end = 10.dp, bottom = 20.dp) .fillMaxWidth() .graphicsLayer(shadowElevation = 50f, shape = RoundedCornerShape(50.dp), clip = true) .background( Color.Black.copy(0.09f) ) ) { Row( modifier = Modifier .height(60.dp) .padding(10.dp) .fillMaxWidth(), verticalAlignment = Alignment.Bottom, horizontalArrangement = Arrangement.SpaceBetween ) { itemList.forEachIndexed { index, icon -> var iconResId = if (index == selectedItemIndex) selectedItemList[index] else itemList[index] IconButton( modifier = if(selectedItemIndex == index) Modifier.background( Color.White.copy(alpha = 0.25f), shape = CircleShape ) else { Modifier }, onClick = { onItemSelected(index) }) { Icon( painter = painterResource(id = iconResId), contentDescription = "", modifier = Modifier.size(25.dp), ) } } } } } < /code> и в основной деятельности: < /p> @Composable fun MainMethod() { var selectedItemIndex by remember { mutableStateOf(0) }
, поскольку вы можете видеть, что зеленый цвет не покрывает полный экран, но я хочу, чтобы зеленый цвет покрывал весь экран, и панель меню должна быть прозрачной, чтобы увидеть зеленый цвет (я хочу эффект размытия).
Вот...
Here is a screenshot of
application.
As you can see the green color is not covering the full screen but I want the green color cover the entire screen and the menu bar should be transparent to see the green color (I want a blur effect).
Here is the...
В моем проекте была создана система журналирования для регистрации всех действий в приложении. Теперь, когда мы создаем .xcframework для регистратора, я вижу, что добавляется ссылка на Metal framework; что делает невозможным запуск приложения на...
как добавить экран, когда экран выключен, как экран будильника по умолчанию, когда звонок будильника с трепетающим экраном будильника не появляется даже без экрана без блокировки.
без экрана блокировки открывается приложение, а когда блокировка...
Для Minecraft, использующего API Spigot, у меня есть LivingEntity Villager, по которому я хотел бы указать путь или «пройти» до местоположения.
Я видел несколько старых примеров использования PathEntity для достижения этого эффекта с разной степенью...