草庐IT

that-dont-suck

全部标签

java - "Header" View 和按钮 : how do I attach listeners to Buttons in a "header" that does not have its own Activity?

我已经谈到了这个问题here,Christopher对此给出了答案,但我不太明白,所以我认为是时候把它变成一个真正的问题,而不仅仅是一个“跟进”=)就目前而言,我正在编写的应用程序有4个不同的屏幕:屏幕1-节点列表(主屏幕)屏幕2-选项菜单,带按钮的tableLayout屏幕3-导航屏幕4-版本等的文本详细信息可以使用放置在顶部的“标题”View来导航这些屏幕。然后标题有4个不同的按钮:+--------------------+|menuwithbuttons|+--------------------+|||||||CONTENT|||||||+------------------

android - 错误 :No resource found that matches the given name (at 'minHeight' with value '?attr/actionBarSize' )

我正在尝试构建androidstudio项目,但出现以下错误:Error:(11,28)Noresourcefoundthatmatchesthegivenname(at'minHeight'withvalue'?attr/actionBarSize').Error:(12,29)Noresourcefoundthatmatchesthegivenname(at'background'withvalue'?attr/colorPrimary').下面是我的XML文件:-我的gradle.properties文件包含这个:-ANDROID_BUILD_TARGET_SDK_VERSION

android - admob 说 "Server replied that no ads are available"

我已经在我的应用程序中添加了admob测试,因为pdf说明是指导的,一切都很好(在模拟器和我的设备中)。为了停止测试模式并在市场上上传我的新apk,我必须删除来self的.java文件的测试代码,对吗?我已经尝试过了,并且我在我的设备中上传了我的.apk文件(从大容量存储)但是我看不到任何admob...我错了什么?测试代码:AdManager.setTestDevices(newString[]{AdManager.TEST_EMULATOR,"xxxxxxxxxxxxxxxxxxxxxxxxx",});AdViewadView=(AdView)findViewById(R.id.a

安卓工作室 : “libpng warning: iCCP: Not recognizing known sRGB profile that has been edited”

我从:升级了gradledependencies{classpath'com.android.tools.build:gradle:1.3.1'}到:dependencies{classpath'com.android.tools.build:gradle:1.4.0-beta3'}但我收到错误:AAPTerr(Facadefor1057495093):E:\android_studio_workspace\P2JN\p2jn\src\main\res\drawable-mdpi\reload_data.png:libpngwarning:iCCP:Notrecognizingknow

c# - : Error CS1729: 'SQLiteConnection' does not contain a constructor that takes 1 arguments (CS1729)

有没有人知道如何解决这个错误消息错误CS1729:“SQLiteConnection”不包含采用1个参数的构造函数(CS1729)这是发生的文件usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingAndroid.App;usingAndroid.Content;usingAndroid.OS;usingAndroid.Runtime;usingAndroid.Views;usingAndroid.Widget;usingSQLite;usingAndroid.Util;us

android - Android 上的 Facebook 分享视频异常 "ShareVideo must reference a video that is on the device"

我正在通过Gradle使用FacebookAndroidsdk4.6.0。根据SharingonFacebookguidenline配置facebook后,我正在尝试从移动目录上传视频,但我在调用sharedialog.show后遇到异常“ShareVideo必须引用设备上的视频”。异常是通过`onError(FacebookException异常)的回调向我报告的。/**firstcheckingiffileexistthanexecutecode,fileexitsandcodeexecutebutafterexecutingcallbackwithexception"ShareV

android - 错误 :No resource found that matches the given name (at 'resource' with value '@xml/provider_paths' )

我正在开发一个用于谷歌服务文本检测的应用程序,遇到使用File_PROVIDER共享文件的问题。AndroidManifest.xml:对于res/xml/provider_paths.xml:但是我总是得到这个编译错误:错误:找不到与给定名称匹配的资源(在值为“@xml/provider_paths”的“资源”处)。出了什么问题? 最佳答案 我只是在同一个问题上花了很长时间。有些人建议拼写错误(那里没有拼写错误)有些人提到了其他可能性,例如错误的文件夹或修改config.xml或检查sdk版本的建议技术....我缺少的是“prov

android - 编辑文本框的计时器 : Only the original thread that created a view hierarchy can touch its views

如果输入错误的密码,我正在尝试使编辑文本框振动并立即更改颜色finalDrawableoldBackground=findViewById(R.id.email).getBackground();TimerTasktimerTask=newTimerTask(){@Overridepublicvoidrun(){MainActivty.this.findViewById(R.id.password).setBackground(oldBackground);MainActivty.this.findViewById(R.id.email).setBackground(oldBackgr

android - 为什么我会收到 "Error Retrieving parent for item: No resource found that matches the given name ' @android :style/Theme. Dialog.Alert'”?

在我的项目属性中,我有Android2.2,团队中的另一个人能够很好地构建。我在res->values下的themes.xml文件中收到错误ErrorRetrievingparentforitem:Noresourcefoundthatmatchesthegivenname'@android:style/Theme.Dialog.Alert'.因此我无法构建我的项目。这是一个正确的项目,我从SVN存储库获取并导入到Eclipse中。@style/DA.TextView 最佳答案 我遇到了同样的问题。尝试增加list文件中的min-s

android - “无法解析符号”和 'No resource found that matches the given name' - 不重复

我昨天在AndroidStudio中打开了我的项目,到处都是红色的,描述为“无法解析符号”。这完全是随机的,因为自从我上次打开项目以来,项目或AS都没有发生任何变化。我最终将AndroidStudio更新到2.0并尝试了一系列我在网上找到的解决方案,但没有任何效果。赞this伙计,我已经试过了:重建项目清理项目与Gradle文件同步关闭项目,关闭AS并重新启动/重新打开文件>使缓存无效/重新启动检查Lint,没有看到任何明显的东西仔细检查SDK管理器中的所有支持库都是最新的检查我的Build.gradle,虽然没有任何变化,但它和往常一样,一直都是这样工作的。我还尝试了以下步骤(来自已