草庐IT

preview-components

全部标签

android - 如何将 Material Components 库中的芯片添加到 android 中的输入字段?

我已经看到在android-P谷歌中添加了包含Material芯片的新Material组件库:MaterialcomponentsforandroidMaterial.iochipsusageMaterialcomponentsonGitHub所以我决定在我的项目中添加Material输入芯片,但不幸的是没有找到任何制作教程。我想创建类似Gmail芯片的东西,但一开始没有图像。因为我正在使用appcompat库,所以我尝试使用android.support.design.chip.Chip和android.support.design.chip.ChipGroup的Material芯片

Android Studio 3.0 金丝雀 5 - 错误 :Unable to load class 'org.gradle.api.internal.component.Usage'

我已经通读了所有与此相关的现有堆栈问题,他们的解决方案对我没有帮助。自从所有AS更新到2.3以上后,这个问题就很明显了。创建一个新项目就OK了我试图从“新项目”复制所有值,但它仍然存在错误:Error:Unabletoloadclass'org.gradle.api.internal.component.Usage'.Possiblecausesforthisunexpectederrorinclude:Gradle'sdependencycachemaybecorrupt(thissometimesoccursafteranetworkconnectiontimeout.)Re-do

Android Studio 2.1 Preview1 给出 No space left on device 错误

我将我的androidstudio更新到2.1预览版,之后它给出了设备上没有剩余空间错误。如何解决这个问题? 最佳答案 对我来说,这是因为我的/tmp分区太小。在尝试安装大型设备镜像(Android7.1)和尝试启动AVD时,我都遇到了这些错误。AndroidStudio似乎会尝试解压/tmp中的大文件。要在Linux上增加/tmp的大小,请在/etc/fstab中设置size=参数,例如在我的Ubuntu上,我现在有:tmpfs/tmptmpfsdefaults,size=3g00需要重新启动才能应用该更改。请注意tmpfsise

android - 使用 annotationProcessor 而不是 android-apt 的带有 Android Studio 3.0 Preview (Canary 2) 的 Dagger 2

"Alongtimeagoinagalaxyfar,faraway...."好吧,长话短说-我决定试一试AndroidStudio3.0Preview(Canary2),但我无法使用让它与Dagger2一起工作annotationProcessor而不是android-apt。我收到的错误消息很容易消化:Error:(59,24)error:cannotfindsymbolvariableDaggerAppComponent我已经阅读了文档(我猜那里没什么特别的):https://developer.android.com/studio/preview/features/new-and

android - 无法在 Android Studio 2.0 Preview 中启动应用程序

我的gradle是//Top-levelbuildfilewhereyoucanaddconfigurationoptionscommontoallsub-projects/modules.buildscript{repositories{jcenter()maven{url'https://maven.fabric.io/public'}}dependencies{classpath'com.android.tools.build:gradle:2.0.0-alpha1'classpath'com.jakewharton.hugo:hugo-plugin:1.2.1'}}allpro

android - 我们如何在 Android N Developer Preview 上尝试自由格式多窗口模式?

NDeveloperPreviewdocumentation引用一个自由形式的多窗口模式选项:Manufacturersoflargerdevicescanchoosetoenablefreeformmode,inwhichtheusercanfreelyresizeeachactivity.Ifthemanufacturerenablesthisfeature,thedeviceoffersfreeformmodeinadditiontosplit-screenmode.文档还建议您应该在自由形式的多窗口模式下测试您的应用。但是,我加载NDeveloperPreview图像的两个设备

C++/WinRT,部分 Windows SDK 17134 与 Visual Studio 15.8 Preview 3 不兼容

尝试编译以下代码:#includeintmain(){}使用以下编译器选项:/permissive-/std:c++latest最近发布的VisualStudio15.8Preview3.0导致以下编译错误:1>------Buildstarted:Project:test1,Configuration:Debugx64------1>Source.cpp1>c:\programfiles(x86)\windowskits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(2185):errorC3861:'from_abi':identifi

c++ - 如何修复 Visual Studio 2015 Preview 上 Unresolved SDL 2.0.3 外部问题?

所以我收到以下错误:1>SDL2main.lib(SDL_windows_main.obj):errorLNK2019:unresolvedexternalsymbol__imp__fprintfreferencedinfunction_ShowError1>SDL2main.lib(SDL_windows_main.obj):errorLNK2019:unresolvedexternalsymbol__imp____iob_funcreferencedinfunction_ShowError我的代码很简单:#include#include"SDL2\SDL.h"intmain(int

android - 为什么 Android Architecture Components 的 Observer 中的 value 参数可以为空?

来自架构组件的LiveData为接收者回调定义了一个具有可为空值的Observer:publicinterfaceObserver{/***Calledwhenthedataischanged.*@paramtThenewdata*/voidonChanged(@NullableTt);}为什么会有显式可为空的注解?LiveData.observe()的文档还说:IfLiveDataalreadyhasdataset,itwillbedeliveredtotheobserver.例如观察者等待不可为空的更新或立即接收以前的不可为空值,尤其是在Kotlin中,直到我将T定义为可空。代码似

android - 为什么 Android Architecture Components 的 Observer 中的 value 参数可以为空?

来自架构组件的LiveData为接收者回调定义了一个具有可为空值的Observer:publicinterfaceObserver{/***Calledwhenthedataischanged.*@paramtThenewdata*/voidonChanged(@NullableTt);}为什么会有显式可为空的注解?LiveData.observe()的文档还说:IfLiveDataalreadyhasdataset,itwillbedeliveredtotheobserver.例如观察者等待不可为空的更新或立即接收以前的不可为空值,尤其是在Kotlin中,直到我将T定义为可空。代码似