草庐IT

CHECK_WRONG

全部标签

Android 辅助功能 : Talkback traverses elements in wrong order

我有一个带有工具栏的布局和一个将承载其他控件的View:使用FrameLayout使具有正“高度”的工具栏可以是半透明的,并且View可以延伸到工具栏下方。工具栏和View的顶部位置相同但高度不同。当Talkback构建View层次结构时,它会将工具栏放在底部,即使它是最先定义的。“accessibilityTraversalBefore”和“accessibilityTraversalAfter”对View没有影响。到目前为止,我找到的唯一解决方案是向ViewStub添加1px或0.1px的上边距。这可能与此处的代码有关:https://github.com/google/talkb

android - Visual Studio Android SDK 管理器 Android 8.1.0 API 27 错误 "Download finished with wrong size. Expected 65606517 bytes, got 65738431 bytes"

在Windows10上安装VisualStudio2017。尝试使用AndroidSDK管理器安装新的AndroidAPI时,出现标题错误。搜索得到了这个答案:EditTravis.yml这个答案没有告诉编辑哪一个。在C:\中搜索此文件时,我得到8个结果:C:\ProgramData\Microsoft\VisualStudio\NodeAdapter\844e64fa\node_modules\agent-base.travis.ymlC:\ProgramData\Microsoft\VisualStudio\NodeAdapter\844e64fa\node_modules\ws.

java - Appium : how to check device name using automation test cases in java

我正在为一个应用程序实现自动化测试用例。我想概括一些测试用例,以便根据某些条件在每台设备上运行。所以,为了做到这一点,我必须使用一些代码来获取设备名称。我无法获取用于检查设备名称的代码。欢迎任何帮助!!! 最佳答案 在设置appium功能时,您还必须设置设备名称。你可以使用相同的 关于java-Appium:howtocheckdevicenameusingautomationtestcasesinjava,我们在StackOverflow上找到一个类似的问题:

Java异常 #Number of lines annotated by Git is not equal to number of lines in the file, check file …

1.异常现象在项目中某个java文件左边栏右键查看代码版本履历(Annotate)时无法显示,IDEA提示:NumberoflinesannotatedbyGitisnotequaltonumberoflinesinthefile,checkfileencodingandlineseparators. 2.异常原因这个问题涉及到不同操作系统下文本文件的换行符差异引起的。在不同操作系统中,文本文件的换行符可能是不同的:Windows使用CRLF(CarriageReturn+LineFeed),而Unix和Mac使用LF(LineFeed)。 3.排查分析1)为什么会出现无法查看代码的版本管理?

android - 对于非默认语言,在 2.1 中使用 TextToSpeech.Engine.ACTION_CHECK_TTS_DATA 的正确方法是什么?

Intentintent=newIntent();intent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);startActivityForResult(intent,0);@OverrideprotectedvoidonActivityResult(intrequestCode,intresultCode,Intentdata){if(requestCode==0){if(resultCode==TextToSpeech.Engine.CHECK_VOICE_DATA_PASS){Toast.makeText(getApp

java - 如何在 Windows 中 check out 和构建 UIAutomator 源代码

我正在尝试在UiAutomator.jar中使用UiAutomatorTestRunner.java。androidsdk自带的默认UiAutomator.jar里面没有UiAutomatorTestRunner.java。所以我打算从https://android.googlesource.com/platform/frameworks/testing/+/99937ceb604da144fd88c028d79fd3b2478f059d/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/UiAu

android - 推特数字 : how to check if the user is already registered

我正在试验DigitsTwitter的API,用于在我的Android应用程序上注册用户。目前在我的启动Activity中,我显示一个按钮(com.digits.sdk.android.DigitsAuthButton),要求用户输入他们的电话号码,以便可以发送确认码。一旦他们输入确认码并通过身份验证,我就会在回调方法中收到一个user_id。现在,下次如果我在启动Activity中单击同一个按钮,它不会显示输入电话号码的选项,只会返回已注册的相同user_id。我想在我的Java代码中复制同样的东西,而无需额外单击com.digits.sdk.android.DigitsAuthBu

【开源技术随笔】005 - Android编译报错:check_vintf.cpp For kernel requirements at matrix level 6

【开源技术随笔】005-Android编译报错:check_vintf.cppForkernelrequirementsatmatrixlevel6解决方法未订阅的兄弟,不建议订阅专栏了已订阅的兄弟,请关注下本文末尾,加联系方式进行技术交流最近添加NFS的Kernel宏控,单编bootimage没问题,下载验证NFS功能也开启OK,但整编Android时就报错如下:[check_vintf.cpp:620]Forkernelrequirementsatmatrixlevel6,ForconfigCONFIG_NFS_FS,value=ybutrequirednLog如下:checkvintfI

安卓测试 : 'Multiple dex files' when using 'gradle check connectedCheck'

当我运行基于android模拟器的测试时:gradlewcheckconnectedCheck...它失败了:com.android.dx.util.DexException:MultipledexfilesdefineLorg/hamcrest/Description;这是我的build.gradle文件:buildscript{repositories{mavenCentral()maven{url'https://oss.sonatype.org/content/repositories/snapshots/'}}dependencies{classpath'com.androi

android - 谷歌播放服务 : how to check if there is currently "active" pending intent callback registered to location updates/activity recognition?

我的应用程序在后台执行定期位置更新和Activity识别检测。我正在使用GooglePlayServicesAPI这样做:例如-要注册到位置更新,我提供接收更新的未决Intent:mLocationClient.requestLocationUpdates(mLocationRequest,pendingInent);要注销位置更新,我正在执行以下操作:mLocationClient.removeLocationUpdates(pendingInent);这很好,而且效果很好。但是我如何才能知道当前是否有一个pendingIntent持有我的应用程序组件的Intent当前是否已在Goo