Skip to main content

All Questions

Tagged with
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. ...
DevinM's user avatar
  • 1,243
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 ...
Cayce K's user avatar
  • 2,318
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 ...
Slbox's user avatar
  • 12k
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 ...
Quatern1on's user avatar
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 ...
Ted's user avatar
  • 20.1k
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 = ...
Cayce K's user avatar
  • 2,318
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, ...
Karan's user avatar
  • 31
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"> ...
Diego Perez's user avatar
  • 2,588
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-...
user22376410's user avatar
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 ...
Anees U's user avatar
  • 1,097
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'...
AHC's user avatar
  • 31
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 ...
Mohamed Sulaimaan's user avatar
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 ...
KarolKVimn's user avatar
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 { ...
kkkkk's user avatar
  • 696
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&...
GHH's user avatar
  • 1,939

15 30 50 per page
1
2 3 4 5
61