Regression - can no longer click on EditText in v4.12.3
See original GitHub issueSomething happened in v4.12.3 (likely in 6cf1e05) that has made it so I can no longer click on some EditText elements for month, day, and year in an app I am automating.
I am still able to find the elements, but when I try to click on them nothing happens. Normally when clicking on them the element becomes focused and the text gets highlighted as seen in the screenshot below.
I’m not sure why I can no longer click on these because they are EditText elements and they do have clickable true attribute.
The screenshot and scene tree below are after clicking on day “01” using uiautomator2 v4.12.2. With v4.12.3 I can’t click on it.
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<hierarchy index="0" class="hierarchy" rotation="3" width="720" height="1232">
<android.widget.FrameLayout index="0" package="com.test" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[18,335][702,618]" displayed="true">
<android.widget.FrameLayout index="0" package="com.test" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[18,335][702,618]" displayed="true">
<android.widget.FrameLayout index="0" package="com.test" class="android.widget.FrameLayout" text="" resource-id="android:id/content" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[18,335][702,618]" displayed="true">
<android.widget.LinearLayout index="0" package="com.test" class="android.widget.LinearLayout" text="" resource-id="android:id/parentPanel" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[26,335][694,618]" displayed="true">
<android.widget.FrameLayout index="0" package="com.test" class="android.widget.FrameLayout" text="" resource-id="android:id/customPanel" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[26,335][694,555]" displayed="true">
<android.widget.FrameLayout index="0" package="com.test" class="android.widget.FrameLayout" text="" resource-id="android:id/custom" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[34,343][686,555]" displayed="true">
<android.widget.DatePicker index="0" package="com.test" class="android.widget.DatePicker" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[34,343][686,555]" displayed="true">
<android.widget.LinearLayout index="0" package="com.test" class="android.widget.LinearLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[236,343][484,555]" displayed="true">
<android.widget.LinearLayout index="0" package="com.test" class="android.widget.LinearLayout" text="" resource-id="android:id/pickers" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[236,343][484,555]" displayed="true">
<android.widget.NumberPicker index="0" package="com.test" class="android.widget.NumberPicker" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="true" selected="false" bounds="[244,359][308,539]" displayed="true">
<android.widget.Button index="0" package="com.test" class="android.widget.Button" text="Dec" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" long-clickable="true" password="false" scrollable="false" selected="false" bounds="[244,359][308,425]" displayed="true" />
<android.widget.EditText index="1" package="com.test" class="android.widget.EditText" text="Jan" resource-id="android:id/numberpicker_input" checkable="false" checked="false" clickable="true" enabled="true" focusable="true" focused="false" long-clickable="true" password="false" scrollable="false" selected="false" bounds="[244,425][308,473]" displayed="true" />
<android.widget.Button index="2" package="com.test" class="android.widget.Button" text="Feb" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" long-clickable="true" password="false" scrollable="false" selected="false" bounds="[244,473][308,539]" displayed="true" />
</android.widget.NumberPicker>
<android.widget.NumberPicker index="1" package="com.test" class="android.widget.NumberPicker" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="true" selected="false" bounds="[324,359][388,539]" displayed="true">
<android.widget.Button index="0" package="com.test" class="android.widget.Button" text="31" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" long-clickable="true" password="false" scrollable="false" selected="false" bounds="[324,359][388,425]" displayed="true" />
<android.widget.EditText index="1" package="com.test" class="android.widget.EditText" text="01" resource-id="android:id/numberpicker_input" checkable="false" checked="false" clickable="true" enabled="true" focusable="true" focused="true" long-clickable="true" password="false" scrollable="false" selection-start="0" selection-end="2" selected="false" bounds="[324,425][388,473]" displayed="true" />
<android.widget.Button index="2" package="com.test" class="android.widget.Button" text="02" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" long-clickable="true" password="false" scrollable="false" selected="false" bounds="[324,473][388,539]" displayed="true" />
</android.widget.NumberPicker>
<android.widget.NumberPicker index="2" package="com.test" class="android.widget.NumberPicker" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="true" selected="false" bounds="[404,359][468,539]" displayed="true">
<android.widget.Button index="0" package="com.test" class="android.widget.Button" text="1969" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" long-clickable="true" password="false" scrollable="false" selected="false" bounds="[404,359][468,425]" displayed="true" />
<android.widget.EditText index="1" package="com.test" class="android.widget.EditText" text="1970" resource-id="android:id/numberpicker_input" checkable="false" checked="false" clickable="true" enabled="true" focusable="true" focused="false" long-clickable="true" password="false" scrollable="false" selected="false" bounds="[404,425][468,473]" displayed="true" />
<android.widget.Button index="2" package="com.test" class="android.widget.Button" text="1971" checkable="false" checked="false" clickable="true" enabled="true" focusable="false" focused="false" long-clickable="true" password="false" scrollable="false" selected="false" bounds="[404,473][468,539]" displayed="true" />
</android.widget.NumberPicker>
</android.widget.LinearLayout>
</android.widget.LinearLayout>
</android.widget.DatePicker>
</android.widget.FrameLayout>
</android.widget.FrameLayout>
<android.widget.LinearLayout index="1" package="com.test" class="android.widget.LinearLayout" text="" resource-id="android:id/buttonPanel" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[26,555][694,618]" displayed="true">
<android.widget.LinearLayout index="0" package="com.test" class="android.widget.LinearLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[34,556][686,610]" displayed="true">
<android.widget.Button index="0" package="com.test" class="android.widget.Button" text="Cancel" resource-id="android:id/button2" checkable="false" checked="false" clickable="true" enabled="true" focusable="true" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[34,556][359,610]" displayed="true" />
<android.widget.Button index="1" package="com.test" class="android.widget.Button" text="OK" resource-id="android:id/button1" checkable="false" checked="false" clickable="true" enabled="true" focusable="true" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[360,556][686,610]" displayed="true" />
</android.widget.LinearLayout>
</android.widget.LinearLayout>
</android.widget.LinearLayout>
</android.widget.FrameLayout>
</android.widget.FrameLayout>
</android.widget.FrameLayout>
</hierarchy>
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
How to make edit text not editable but clickable in JAVA
The trick here is :- et.setFocusable(false); et.setClickable(true);.
Read more >EditText - Android Developers
This widget does not support auto-sizing text. XML attributes ... android:longClickable, Defines whether this view reacts to long click events.
Read more >SigmaPlot 12.5 User's Guide
You can't delete ribbons, but you can minimize them to create more work space on the. SigmaPlot desktop. 1. Click Customize Quick Access...
Read more >Cisco TelePresence CE Software Release Notes (CE9)
CE9.13.0 – Deprecated settings are no longer persistent when ... CE9.12.3 – SpeakerTrack not working using Cisco TelePresence SX80 and Cisco ...
Read more >Working with the EditText | CodePath Android Cliffnotes
The EditText is the standard text entry widget in Android apps. If the user needs to enter text into an app, this is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mykola-mokhnach it works!
Cool, I’ve published the patch