Issue I’m making an app with edittext and a button. When I enter something into edittext and then click a button, I want the keyboard and focus on edittext to disappear but I can’t seem to do it. I inserted
Continue readingTag: focus
In Jetpack Compose, how can you check to see if a screen has re-composed?
Issue I want to be able to set accessibility focus on a Text object, but only once it becomes visible (through mutable state boolean that is remembered). This means that the screen needs to finish re-composing before we can do
Continue readingFlutter TextFormField, focusNode.requestFocus works once then keyboard doesn't show
Issue Goal: when send button is pressed, don’t close the keyboard and keep it open/focused Problem: when send button is pressed, keyboard is closed, then reopens because of focusNode.requestFocus, when send button is pressed after that, the keyboard doesn’t open
Continue readingHow to move cursor to the end of the TextField after screen rotation or system theme change and keep keyboard shown?
Issue I have a screen with a Textfield as a Search bar which is autofocused when the screen is first displayed. The problem is, after screen rotation or system theme change (Dark mode/light mode), the cursor moves at the beginning
Continue readinghow to focus on listview items in android tv app on flutter
Issue I want to build an android tv app in flutter almost everything is done but one problem is I’m not able to focus(like some pop-up effect or border change anything that tells the user that you’re on this item
Continue readingHow to modify the background of a Tab Layout tab's text when it is focused?
Issue When I tap on a Tab Layout tab, there’s the focus flash that occurs for the entire tab, except when it does, you can see a black box around the text of the tab itself. I want to get
Continue readingAndroid remove focus of TextEdit when Enter is pressed
Issue I have some TextEdit inside a LinearLayout and I want to remove the cursor after I hit enter on them. Code <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context=".activity.SettingActivity" android:focusableInTouchMode="true" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:id="@+id/txtInterval1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:text="Edit Text
Continue readingHow to know when a LazyColumn (or any Composable for that matter) has been touched?
Issue I have the following screen built in Compose – @Composable fun DashboardScreen(heroesViewModel: HeroesViewModel = get()) { val searchState by heroesViewModel.searchState.collectAsState() val uiState by heroesViewModel.uiState.collectAsState() val focusRequester = remember { FocusRequester() } Column(modifier = Modifier.fillMaxSize()) { SearchBar( searchState = searchState,
Continue readingAndroid custom ListView with ImageButton is not getting focus
Issue I am developing an app for android TV. I have a listview with an ImageButton + Textviews as children. As TV does not take touch events but uses D-PAD or trackball remote I have to get focus on all
Continue readingHow to show soft-keyboard when edittext is focused
Issue I want to automatically show the soft-keyboard when an EditText is focused (if the device does not have a physical keyboard) and I have two problems: When my Activity is displayed, my EditText is focused but the keyboard is
Continue reading