Clicking on an image (within a Image composable) should open a new screen (using NavHost and NavController). The new screen should display a list of users (using LazyColumn and rememberScrollState() for smooth scrolling). Upon selecting a user (by clicking a Button or similar composable), the app should navigate back to the original screen. A label (using Box or Text composables) should be created and positioned at a specific point on the TextView within the original image. I have attached an image to illustrate the desired functionality.
Technical challenges I am facing:
Positioning the label accurately on the TextView.
Handling the navigation between screens.
Managing the user selection state.
This is the one of reference that I found while doing R&D to print image offset click point
How to detect what image part was clicked in Android Compose
What is current challenge for me is to print or recompose UI with latest text label to screen
Clicking on an image (within a Image composable) should open a new screen (using NavHost and NavController). The new screen should display a list of users (using LazyColumn and rememberScrollState() for smooth scrolling). Upon selecting a user (by clicking a Button or similar composable), the app should navigate back to the original screen. A label (using Box or Text composables) should be created and positioned at a specific point on the TextView within the original image. I have attached an image to illustrate the desired functionality.
Technical challenges I am facing: [list] [*]Positioning the label accurately on the TextView. [*]Handling the navigation between screens. [*]Managing the user selection state. [/list] This is the one of reference that I found while doing R&D to print image offset click point
How to detect what image part was clicked in Android Compose
[b]What is current challenge for me is to print or recompose UI with latest text label to screen[/b]
Я использую Compose-Navigation(alpha09) для управления навигацией между составными объектами
Я хочу удалить Заставку при перемещении к следующему пункту назначения (я не хочу, чтобы нажатие назад возвращалось в Splash)
Следующие попытки не сработали...
Я использую Compose-Navigation(alpha09) для управления навигацией между составными объектами
Я хочу удалить Заставку при перемещении к следующему пункту назначения (я не хочу, чтобы нажатая кнопка назад возвращалась в Splash)
Следующие попытки не...
Я реализовал нижнюю панель с переходом к четырем различным экранам: «Домашняя страница», «Избранное», «Прослушанное» и «О программе». Я также реализовал навигацию отдельно от нижней панели, где вы можете перейти от «HomePage» к «MorePage». Ниже...
В настоящее время я реализую навигацию по отдельным действиям для функции адаптации моего приложения. Я использую однонаправленный поток данных (UDF), как рекомендует Google, и одну ViewModel для управления состоянием. Каждый тип состояния связан с...
Как должна осуществляться навигация в Jetpack Compose? Во всех (и их не так много) примерах (включая официальный образец от Google) используются запечатанные классы и загрузка новых экранов в ответ на наблюдение за изменением текущего экрана. Это...