Currently, when clicking into TextField or similar where manual input is requred the android virual keyboard pops up automaticaly, is there a way to prevent it and set it only when i manualy double click into the TextField?
ANDROID: Opening virtual keyboard only when doubleclicked?
112 views Asked by Jiri Zaloudek At
2
There are 2 answers
1
Narendra_Nath
On
Ref: How to stop EditText from gaining focus at Activity startup in Android
<LinearLayout
android:focusable="true" //insert this line in your parent layout
android:focusableInTouchMode="true"//insert this line in your parent layout
android:layout_width="0px"
android:layout_height="0px"/>
<!-- :nextFocusUp and :nextFocusLeft have been set to the id of this component
to prevent the dummy from receiving focus again -->
<AutoCompleteTextView android:id="@+id/autotext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:nextFocusUp="@id/autotext"
android:nextFocusLeft="@id/autotext"/>
What this does is it makes the parent layout get the focus by deafult. Hence the focus will be present on the text view only if you press it twice
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in QML
- Qml table and chart using python
- doxyqml not documenting qml files properly
- how to document QML files inside C++ project?
- Combining Dependent DLL Files with Executable using windeployqt
- How to resolve this loop call caused by property changed in qml, can I stop binding somewhere?
- Object.keys, Object.values and JSON.stringify give empty results in QML
- Qt Quick QML Unit Test linkage module not found/custom component 'not a type' error with createTemporaryQmlObject
- QML WebEngineView doesn't play YouTube video if the video hasn't 480p quality
- SplitView elements both in horizontally and vertically in qml
- Run QML in Beaglebone Black
- Splitview inside a Layout in QML is not working properly
- Qt and Unity Texture Sharing
- Why are my Buttons overlapping in QML ColumnLayout?
- SplitView in Rows in QML
- Color change in Line series chartview in qml
Related Questions in QT5
- module "QtNetwork" is not installed
- Qt Quick QML Unit Test linkage module not found/custom component 'not a type' error with createTemporaryQmlObject
- Securing/Hardening QtRemoteObjects server
- QCustomPlot scaling and re-positioning of all layers of the graph using the mouse
- Error installing Qt5 on Raspberry Pi 4 - Bullseye "Package qt5-default has no installation candidate"
- QTabWidget: Unable to create a label on the tabbar to display tab name
- Facing error in no matching function for call in qdbusabstractinterface
- Qt Addin: Attempt to add newer Qt version "There's no Qt version assigned to project"
- Linux QT-based applications are core dumping with IOT instruction (core dumped)
- Qt 5 project won't compile in Qt 6 despite core5compat and QT_DISABLE_DEPRECATED_BEFORE
- What is the IID in Q_PLUGIN_METADATA(IID "...") and why do I need it
- How to resolve Yocto build error for Glib-2.0 for Qt?
- How could I make a Expand All / Collapse All function for my custom QML TreeView?
- QGraphicsView and QSplitter: collapsing and unfolding area does not restore image
- Get undefined for receiving a signal with parameter from C++ in QML
Related Questions in ANDROID-SOFTKEYBOARD
- How to laod softkeyboard sticker/gifs into imageview using android studio. like whatsapp,imo,etc
- How to avoid keyboard flickering when opening AlertDialog with EditText while another EditText is already focused?
- how to make an EditText fully visible when opening the soft keyboard
- How to disable any input except from Soft Keyboard?
- Prevent soft keyboard to shows up with edittext in flutter
- How to create input connection from Jetpack Compose Text Field?
- How can i achieve displaying the bottombar on top of the soft keyboard in android compose?
- How to automatically scroll LazyColumn when the keyboard goes up or down in Android
- Webview to scroll up when keyboard appear not working as desired
- Keyboard pushes ModalBottomSheet too high
- SoftKeyboard is not showing any keys and it's blank in android
- Trying to display SoftKeyboard on second Android Display
- VirtualKeyboard API - hide() method not working
- Soft Keyboard not opening for second time once closed keyboard in Textfield compose
- InputMethodService onCreateInputView not called
Related Questions in ANDROID-VIRTUAL-KEYBOARD
- VirtualKeyboard API - hide() method not working
- pressing software back button will close entire activity while keyboard is visible
- Android: How to hide/show keyboard while focused on EditText?
- WindowInsetsCompat.isVisible(WindowInsetsCompat.Type.ime()) returns true for Android 23-29, though keyboard is not opened
- ANDROID: Opening virtual keyboard only when doubleclicked?
- Soft keyboard is not visible on Android with Qt 5.15 on any input
- React Native - Is there a way to hide the keyboard completely?
- How to auto scroll the screen up when virtual keyboard appears in react native (on android)
- How to open an activity from the keyboard list?
- How to get number of rows of native Android soft keyboard?
- Close Virtual Keyboard programmatically when user hits enter/done
- Android: floating point virtual keyboard on Samsung Galaxy S5
- How to write a virtual keyboard and share it between android, ios and a web app
- How to detect when virtual keyboar of a SearchView is dismissed
- How to build custom keyboard that would display right under focused text field in Android Studio?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
in Activity