All Questions
908
questions
0
votes
0
answers
19
views
Compose focus requester never works
Despite all the examples here, even the hacky solutions using a delay, nothing seems to work.
The focus needs to happen on recomposition when an error flag is true validating a username or a password. ...
0
votes
0
answers
16
views
Compose Focus Order Not making any sense
I have a pretty basic layout.
val focusRequesters = List(3) { FocusRequester() }
Column(
modifier = Modifier.
focusProperties {
next = focusRequesters[0]
}
) {
Box ...
0
votes
0
answers
9
views
Prevent checking checkbox input in contentEditable from stealing focus from editor in Android webview?
Unfortunately event.preventDefault inside of mousedown doesn't do the trick. I tried the same inside of pointerdown (no luck) and touchstart (it says the event is not cancellable)
I can't insert any ...
0
votes
0
answers
28
views
How to avoid keyboard flickering when opening AlertDialog with EditText while another EditText is already focused?
I'm trying to open an AlertDialog containing an EditText field. I want the EditText in the AlertDialog to automatically receive focus and show soft keyboard when the dialog opens. I achieve it this ...
0
votes
0
answers
92
views
React Native on Android: Pressable does not register 'focused' or fires onFocus event
I admit, I am not a React Native dev, but I have been looking into a project where the devs has a problem getting onFocus triggered when attaching a keyboard to a phone (yes, it sounds strange, but it ...
0
votes
0
answers
53
views
FocusRequester / requestFocus inconsistent / Not working
Trying to use the FocusRequester on a Snackbar item and get it to gain focus on entry. But for some reason nothing I’m doing works.
val focusRequester = remember { FocusRequester() }
val modifier = ...
0
votes
0
answers
29
views
Android Camera 2 API , Focus Distance and EV Control query
I'm developing an Android app that requires taking multiple photos at various focal distances, with each focal distance having a range of exposure values for focus stacking and exposure bracketing, ...
0
votes
0
answers
33
views
Android: outer EditText border stroke
I'm using the following XML shape to add a coloured border to any EditText of my app to indicate it is focused:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
...
0
votes
1
answer
1k
views
In Jetpack Compose, how can you check to see if a screen has re-composed?
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-...
0
votes
0
answers
110
views
Accessibility focus does not go to next view on DPAD_RIGHT key from the last item in ScrollView in Andorid
As mentioned in the image, I have a Scrollview and LinearLayout2 inside a horizontal LinearLayout Parent in TV screen. The problem is that when there are more items and Scroll is required in ...
0
votes
0
answers
73
views
How can I set infinity focus on Androidk NDK
I'm currently working about to develop a camera application with android ndk c++. I'm working on Samsung devices and I need totally infinity focus with good resolution. I tried some solutions but they'...
1
vote
0
answers
281
views
EditText loses focus on text change even though I have not set it to lose focus
I'm a noob in Android Development, trying to learn it.
The issue is that I have an edit text that appears upon clicking a button and gains focus and also opens up the keypad.
I have used a TextWatcher ...
1
vote
0
answers
285
views
Composable that reacts to parent's focus state
I am working on Android TV app with use of Jetpack Compose. I wanted to create a reusable Composable Icon that animates when focus state changes. I've managed to get something that reacts to focus ...
1
vote
0
answers
311
views
Jetpack Compose TextField in LazyColumn
I'd like to not show "First item" when TextField is in focus. However refresh make TextField to loose focus.
var addFirstItem by remember { mutableStateOf(true) }
LazyColumn {
...
0
votes
0
answers
15
views
nextFocusDown won't show keyboard if next edittext inputType="textPassword"
<EditText
android:id="@+id/account"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true&...