草庐IT

Ant-Design

全部标签

android - 如何在 Material Design 中创建后退按钮

我找不到有关在MaterialDesign的操作栏中添加此按钮的教程。如何将其添加到Lollipop的操作栏中? 最佳答案 试试这个在创建中:getSupportActionBar().setDisplayHomeAsUpEnabled(true);在你的Activity类中(假设你想关闭这个Activity)@OverridepublicbooleanonOptionsItemSelected(MenuItemitem){switch(item.getItemId()){caseandroid.R.id.home:finish()

git使用push命令报错-error: failed to push some refs to ‘https://gitee.com/MFLU/graduation_design.git‘

当我们使用git操作向远程仓库push代码时,可能会报错:hint:nothavelocally.Thisisusuallycausedbyanotherrepositorypushinghint:tothesameref.Youmaywanttofirstintegratetheremotechangeshint:(e.g.,'gitpull...')beforepushingagain.hint:Seethe'Noteaboutfast-forwards'in'gitpush--help'fordetails.主要原因如下:       这个错误信息通常是由于远程仓库包含了本地仓库中没有的

Android.Views.InflateException : Binary XML file line #17: Error inflating class android. 支持.design.internal.NavigationMenuItemView

我在使用Xamarin的Android项目中使用Material抽屉导航。我一直在尝试将两个Framelayout添加到drawerlayout中,以便我可以切换不同fragment的内容,请参见下面的xml:主要Activity:protectedoverridevoidOnCreate(Android_OS.Bundlebundle){base.OnCreate(bundle);SetContentView(Resource.Layout.activity_main);drawerLayout=FindViewById(Resource.Id.drawer_layout);//Se

android - DEX 无法使用 Gradle 解析包含 BuildConfig 和 R 的 jar,但可以与 Ant 一起使用

我正在尝试将一个项目迁移到AndroidStudio/Gradle,但我遇到了一个奇怪的问题,该jar使用Ant运行良好。似乎R和BuildConfig包含在jar中,并且它们的包名称被声明为大写,而实际上包结构将其定义为小写。(为了保护开发者的匿名性,我更改了包名,希望没问题)UNEXPECTEDTOP-LEVELEXCEPTION:com.android.dx.cf.iface.ParseException:classname(com/companyname/UI/BuildConfig)doesnotmatchpath(com/companyname/ui/BuildConfig

android - Android 中用于 Material Design 的百分比颜色

在Google的Material设计规范中,我看到颜色指定为百分比:Toconveyahierarchyofinformation,youcanusedifferentshadesfortext.Thestandardalphavaluefortextonawhitebackgroundis87%(#000000).Secondarytext,whichislowerinthevisualhierarchy,shouldhaveanalphavalueof54%(#000000).我不明白这些百分比是如何计算的。例如,如果背景颜色是白色,那么文字的颜色是什么?如果我的背景是#607D8

android - 将 'ant clean test' 与最新的 android sdk 一起使用。 '${renderscript.opt.level}' 不是 com.android.ant.RenderScriptTask$OptLevel 的允许值

在最新的androidsdk上使用'antcleantest'出现错误:build.xml:622:执行此行时发生以下错误:build.xml:642:'${renderscript.opt.level}'不是com.android.ant.RenderScriptTask$OptLevel的允许值 最佳答案 这个怎么样?https://issues.apache.org/jira/browse/CB-974似乎是AndroidSDKAPI16的R20中的一个问题(最新的截至2012年6月28日)。我实际上没有使用RenderScr

android - 使用类加载器 AntClassLoader[] 找不到 taskdef 类 com.android.ant.SetupTask

我正在尝试让“开始Android4”一书中的一些简单的Android应用程序运行。我在其中一个源代码目录上运行ant并收到此错误:#antdebugBuildfile:NowRedux/build.xmlBUILDFAILEDNowRedux/build.xml:49:taskdefclasscom.android.ant.SetupTaskcannotbefoundusingtheclassloaderAntClassLoader[]build.xml中导致此问题的行是:有谁知道我该如何解决这个问题?我尝试在http://ant.apache.org/下载ant并手动安装它,但这没有

android - NoClassDefFoundError : android. support.design.internal.NavigationMenu on Android 4.2.2 (wiko)

我正在尝试使用Android支持设计库(版本23.0.1)和类NavigationMenu(我将此类用作布局中的XML标记)。当我在Android4.3的三星或Android5.x或6.0的Nexus上执行我的应用程序时一切正常,但是当我在Android4.2.2的WikoRainbow上执行应用程序时,它崩溃并显示以下内容异常:java.lang.RuntimeException:UnabletostartactivityComponentInfo{applicationId/package.MainActivity}:android.view.InflateException:Bi

android - 在 Material Design 中呈现的 Android Lollipop 半透明渐变状态栏

我想做这样的事情适用于Android5.0及更高版本?我该如何实现?我在StackOverFlow或Android开发者网站上找不到任何解决方案。我建议可以让状态栏透明,在状态栏下绘制渐变drawable。但是几乎没有问题。第一个问题是shapedrawable的常规渐变不支持MaterialDesign规范http://www.google.com/design/spec/style/imagery.html第二个问题是我无法通过android:fitsSystemWindows="true"使mapfragment适应窗口。 最佳答案

java - 使用 Ant 构建一个包含 ActionbarSherlock 作为库项目的项目

我在使用Apache的Ant构建我的项目时遇到问题,该Ant包括ActionbarSherlock作为项目库。我已经成功地将使用“androidupdatelib-project--path.--targetandroid-13”的库包含在actionbarsherlock库文件夹中,并在我的项目中使用了“androidupdateproject--path.--targetandroid-13--library路径/到/actionbarsherlock/库”使用antdebug可以正确构建库,但是当转到我的项目文件夹并尝试构建项目时,出现以下错误:[aapt]/var/www/vh