草庐IT

have_library

全部标签

android - 如何在 Eclipse 中将源附加到 Google Drive API 或 `Android Private Library`

我已经使用AddGoogleAPIs...菜单选项安装了DriveAPI。在DriveAPI下手动钻取任何一个jar时,源代码打开正常。但是在AndroidPrivateLibraries下手动钻取同一个jar会导致“找不到源”。因此,例如,当使用openDeclaration(F3)时,我会看到“找不到源”页面。构建系统使用名为AndroidPrivateLibraries的库链接所有jar。我找不到将源代码或文档附加到DriveAPI的方法。所有附加任何内容的选项都被禁用。有什么建议吗? 最佳答案 找到了一个方法...我在“构建

android - 请安装包 : 'Android Support Library'

我正在编写Xamarin应用程序,这些是我在构建应用程序时遇到的错误:C:\ProgramFiles(x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2):ErrorXA5206:Pleaseinstallpackage:'AndroidSupportLibrary'availableinSDKinstaller.AndroidresourcedirectoryC:\Users\Simon\Documents\Xamarin\SimpleOnePageViewPager\SimpleOnePageViewPag

android - Volley-Library 请求队列的最大大小是多少

我在Android中使用Volley库,我想知道使用Volley库允许的最大队列大小是多少。我没有发现与此相关的任何内容。据我所知,您需要将网络请求添加到队列中,但我不知道可以将其并行放入队列的最大大小是多少。RequestQueuerequestQueue=Volley.newRequestQueue(this);....//blockofcoderequestQueue.add(jsonObjectRequest); 最佳答案 您可能混淆了两件事:等待队列大小最大并行网络请求数等待队列大小:/**Thequeueofreques

android - 错误 :Must have one-pixel frame that is either transparent or white in Android Studio

我刚刚将一个项目从eclipse导入到Androidstudio。几乎每第二张图片,androidstudio都会出现以下错误。Error:Musthaveone-pixelframethatiseithertransparentorwhite.过去几个小时我一直在尝试编辑我的图像,但无法做到。谁能指导我什么是最好的解决方案。为什么它只在AndroidStudio中,为什么不在Eclipse中。 最佳答案 显示此信息是因为您正在尝试编辑没有适当1像素边框的9-Patch图像。Android使用一种称为9-Patch的图像格式,它允许

android - 如何使用 ADT 插件将 "Android Design Support Library"添加到 Eclipse?

TheAndroidDevelopersBlog2015年5月宣布:TheDesignlibraryisavailablenow,somakesuretoupdatetheAndroidSupportRepositoryintheSDKManager.我正在使用Eclipse(版本:Luna4.4.2)和最新的ADT插件,在SDK管理器中看不到任何“设计”:尝试使用android.support.design.widget.FloatingActionButton时或android.support.design.widget.NavigationView在我的项目中,例如thisone

android - 支持 v7 MenuPopupHelper 现在已隐藏并仅限于 LIBRARY_GROUP

最近我在使用android.support.v7.view.menu.MenuPopupHelper时遇到了lint错误,它现在被隐藏并限制只能在其库组中使用。确切消息:MenuPopupHelper构造函数只能从同一库组(groupId=com.android.support)中调用摘自MenuPopupHelper.java类:/***Presentsamenuasasmall,simplepopupanchoredtoanotherview.**@hide*/@RestrictTo(LIBRARY_GROUP)publicclassMenuPopupHelperimplement

android - 使用 Jack 编译器时出错 - app/build/intermediates/packaged/debug/classes.zip' is an invalid library

我在使用Jack编译器时遇到这些错误,但我不明白是什么问题:Error:Libraryreadingphase:file'/Users/daniele.vitali/Development/android-studio/INTROCKAND/app/build/intermediates/packaged/debug/classes.zip'isaninvalidlibrarycom.android.jack.api.v01.CompilationException:Libraryreadingphase:file'/Users/daniele.vitali/Development/a

android - 如何在 Eclipse 的 Android Library 项目中引用外部 jar

哦安卓。我多么喜欢你的废话。我有一个工作区,里面有几个项目。App1和App2是Android应用程序。Common是一个Android库项目。App1和App2依赖于Common(通过Android选项卡链接)。Common有一些外部依赖项,即httpmime和apache-mime4j,它们以jar文件的形式存在。出于某种原因,似乎我需要将我的mimejar添加到App1和App2的构建路径中才能成功编译。这看起来真的很愚蠢。在普通的Java中,我会将Common添加到App1和App2的构建路径中,这样就可以正常工作了。这是不是我必须将我的jar添加到每个Android应用程序?

android - 编辑文本 : Center hint but have entered text start from top

您好,我有一个带有提示的编辑文本,我使用android:gravity:"center"将提示设为中间。当我从编辑文本中开始打字时,打字是从中间开始的,如何使打字从左角开始,同时仍然提示居中 最佳答案 我认为这不可能“开箱即用”,但您可以通过编程方式实现:yourEditText.addTextChangedListener(newTextWatcher(){publicvoidafterTextChanged(Editables){}publicvoidbeforeTextChanged(CharSequences,intstar

android - 约束布局 : how to have a view be half the screen width and centered?

长话短说View宽度必须正好是屏幕的一半,并且居中。使用ConstraintLayout。请注意,View没有任何内部宽度。原始问题我想实现一个布局,其中View大小是屏幕大小的一半,并且水平居中。像这样:|--view--|我找不到任何使用ConstraintLayout的方法。我发现的最好的方法是在分别位于最左和最右的2个假View上使用app:layout_constraintHorizo​​ntal_weight="1",并且app:layout_constraintHorizo​​ntal_weight="1.5"在我看来。有什么更好的方法吗? 最