草庐IT

supports

全部标签

android - 如何在AppCompat中使用support.v7.preference和潜在的缺点

我试图使用support.v7.preference来实现AppCompat应用程序的首选项。我花了几天的时间来弄弄它,因为support.v7.preference与native首选项有一些显着的区别……一旦知道,这还不错,但是不幸的是,那里几乎没有文档。我以为我会分享我的发现,这样其他人就不必经历同样的痛苦。所以...问题:如何最好地实现AppCompat应用程序的首选项(PreferenceFragment和AppCompatAcitivity不兼容)?以下是几个相关的问题:Preferencesub-screennotopeningwhenusingsupport.v7.pre

Android Gradle Sync 失败找不到 support-core-ui.aar

我已经在这个Android项目上工作了大约一年,突然当我昨天打开它时,AndroidStudio3.1.2无法同步gradle并且项目不再构建给我这个错误:Couldnotfindsupport-core-ui.jar(com.android.support:support-core-ui:27.1.1).Searchedinthefollowinglocations:https://jcenter.bintray.com/com/android/support/support-core-ui/27.1.1/support-core-ui-27.1.1.jarPleaseinstall

android - Intellij : android-support-v4. jar 包含在 actionBarSherlock 和 Project => IllegalArgumentException 中

我目前正在将我的所有项目从Eclipse迁移到IntelliJIdea。当我使用Eclipse时,该包仅包含在ActionBarSherlock库中,当该库包含在我的项目中时,所有内容都会自动添加。使用IntelliJ,一旦将android-support-v4.jar添加到ABS,这似乎还不够,因为我所有的导入都被破坏了。ActionBarSherlock(LibABS)导入的屏幕截图:一切似乎都很好,所有的SherlockActivity都很好,但我的应用程序无法识别所有与支持相关的东西:java:/home/user/workspace/....cannotaccessandro

Android SDK 版本 25 - android.support v7 :25 gives "No resource found that matches @color/hint_foreground_material_light" Adobe Creative SDK?

在将compileSdkVersion切换到25并使用最新的android.support库版本后,我在gradle同步/构建时收到以下错误。compile'com.android.support:appcompat-v7:25.0.0'compile'com.android.support:design:25.0.0'compile'com.android.support:recyclerview-v7:25.0.0'错误:Noresourcefoundthatmatchesthegivenname(at'android:textColorHint'withvalue'@color/

android - 错误 : java. lang.NoClassDefFoundError : android. support.v4.content.LocalBroadcastManager

这个问题在这里已经有了答案:AndroidappcrashesafterSDK-toolsupdateversion(NoClassDefFound,toolversion22)(9个回答)关闭9年前。我已经浏览了所有关于他的错误的相关线程,但我没有成功。应用运行良好,昨天我发现了一些SDK更新。我已通过AndroidSDK工具更新到22(Rev.)并将其他更新也更新到最新。当我运行我的应用程序时,它与日志一起崩溃05-1705:27:37.039:E/AndroidRuntime(1406):FATALEXCEPTION:main05-1705:27:37.039:E/Android

android - Android 上 <supports-screens> 和 <compatible-screens> 之间的区别

我现在对两个list元素之间的区别和我认为仅使用GooglePlay会过滤掉不属于支持屏幕列表的设备。该应用程序不会显示在这些设备上的搜索结果中。我认为使用就足够了,但它似乎不起作用!我也需要包含吗?谁能向我解释一下自然语言的区别。不幸的是,我没有找到清楚的谷歌文档:s干杯 最佳答案 supports-screensHowever,ifyourapplicationdoesnotworkwellwhenresizedtofitdifferentscreensizes,youcanusetheattributesoftheelemen

android - Android Studio 1.1.0 中 android.support.v7.widget.RecyclerView 的渲染问题 : java. lang.NullPointerException

我最近将androidsdk更新为api22和androidstudio1.1.0。之后,我在RecyclerView上遇到了渲染问题。这就是我得到的java.lang.NullPointerExceptionatandroid.support.v7.widget.RecyclerView.computeVerticalScrollRange(RecyclerView.java:1216)atandroid.view.View.onDrawScrollBars(View.java:12943)atandroid.view.View.draw(View.java:15237)atandr

android - 错误 : "The graphics preview in the layout editor may not be accurate: Paint.setShadowLayer is not supported"

我正在使用Eclipse,我刚刚创建了一个带有2个图像按钮的主页(菜单),但是我收到了这个错误:Thegraphicspreviewinthelayouteditormaynotbeaccurate:Paint.setShadowLayerisnotsupported.这是什么意思?我该如何解决?我正在使用API21。 最佳答案 表示预览不知道如何实现setShadowLayer。这意味着预览看起来与设备上呈现的结果不完全相同。这是您不应该信任预览应用程序的众多原因之一-始终在假设它们已完成之前在物理设备上测试您的布局。

android - Cordova 错误仅适用于 Android : com. android.dex.DexException:多个 dex 文件定义 Landroid/support/annotation/AnimRes;

我关注了另外三个关于这个问题的资源,但没有一个有用。我的iOS构建完美,但无论我尝试更改什么,android都会出现此错误。已经尝试创建一个新项目,但android仍然存在同样的问题。已安装所有AndroidSDK以下是错误:FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':dexDebug'.>com.android.ide.common.internal.LoggedErrorException:Failedtoruncommand: /Users/sakai/Library/Andr

android - 异常 : This is not supported, 使用 MenuItemCompat.getActionProvider()

我正在尝试在Android应用程序的操作栏中制作“分享”按钮。这是我的代码:importandroid.content.Intent;importandroid.os.Bundle;importandroid.support.v4.app.Fragment;importandroid.support.v7.app.ActionBarActivity;importandroid.view.LayoutInflater;importandroid.view.Menu;importandroid.view.MenuInflater;importandroid.view.MenuItem;im