草庐IT

material_status

全部标签

Angular material Chips Autocomplete

ChipsAutocomplete官网的例子我没法正常使用,无法实现搜索我的select是个通用组件,现在贴代码:component.ts import{Component,ElementRef,forwardRef,Input,OnChanges,OnDestroy,OnInit,SimpleChanges,ViewChild,}from'@angular/core';import{Tag}from'../../models/tag/tag';import{map,startWith,takeUntil}from'rxjs/operators';import{ControlValueAcce

Android Material组件库(日期选择和时间选择器)基本使用

原文:AndroidMaterial组件库(日期选择和时间选择器)基本使用-Stars-One的杂货小窝简单的封装下Material组件里的日期选择器和时间选择器的使用方法效果代码需要添加Material组件库的依赖(不过后面新版本AndroidStudio创建的新项目都会有此依赖了...)implementation'com.google.android.material:material:1.4.0'privatefunshowTimeDialog(startDate:Date?=null){valbuilder=MaterialTimePicker.Builder()//设置时间格式为2

Failed to connect to the remote extension host server(Error: WebSocket close with status code 1006)

问题截图解决办法(第一种情况):首先,检查远程服务器上的/etc/ssh/sshd_config里,有没有允许端口转发:AllowTcpForwardingyes更改后,重启sshd服务:systemctlrestartsshd。然后,删除~/.vscode-server目录本地Vscodesettings的user配置里,把remote.SSH.remoteServerListenOnSocket的勾去掉(因为remote配置那里这个remoteServerListenOnSocket是关掉的),Remote:AutoForwardPorts前面的勾确认是打开的。成功连接上以后,本地和远程服

android - 右侧带有图标的 Material 按钮

newmaterialbutton来自Google的服务真的很棒。根据documentation,我们可以设置一个默认显示在左侧的图标。有谁知道如何将其设置在右侧?我找不到任何相关信息。 最佳答案 只需使用app:iconGravity属性或方法setIconGravity()在MaterialButton中。在您的情况下,请使用app:iconGravity="textEnd"或app:iconGravity="end"。同样根据documentation:Ifastart-alignediconisaddedtothisbutt

注册中心报错was unable to refresh its cache! status = Cannot execute request on any known server

错误日志如下:2023-02-1614:37:27.527 WARN119653---[freshExecutor-0]c.n.d.s.t.d.RetryableEurekaHttpClient  :Requestexecutionfailedwithmessage:java.net.SocketTimeoutException:Readtimedout2023-02-1614:37:27.527ERROR119653---[freshExecutor-0]com.netflix.discovery.DiscoveryClient  :DiscoveryClient_WXSMALLPROGRA

android - Material Design 进度对话框

alertDialog=newProgressDialog(this);alertDialog.setMessage(getResources().getString(R.string.loader));alertDialog.setCancelable(false);alertDialog.show();就在我这样做的时候,绿色圆圈旁边出现了加载这个词。但是,当我不使用进度对话框,并且在页面上使用进度条时,我会得到粉红色,因为我在styles.xml中定义了以下内容@color/pink@color/pink@color/pink页面进度条出现圆圈粉红色怎么解决?

android - 如何在旧设备上使用 Theme.Material 启动应用程序

如何在pre-v21设备上运行我的应用程序?compileSdkVersion'android-L'minSdkVersion14targetSdkVersion'L'我只在v21上使用Theme.Material。我没有使用v20支持库,我使用的是com.android.support:support-v4:19.+当从AndroidStudio运行应用程序时,它说设备不兼容:{compatible=NO,reason=minSdk(API20,Lpreview)!=deviceSdk(API16)}它从哪里获取minSdk20?编辑:发生这种情况的原因可能是(如果经过验证)Ifyo

android - 带有 EditText Material 设计的工具栏

我正在尝试像这样制作带有EditText的工具栏:现在我可以做一些类似的事情,但只能使用静态标题,有什么开始的想法吗? 最佳答案 我是这样做的,如下所示:顶部有Toolbar作为AppBar(又名ActionBar),下面有第二个工具栏,有两个EditText。第一个工具栏位于CollapsingToolbarLayout下,以防您希望它折叠。Java:publicclassMainActivityextendsAppCompatActivity{Toolbartoolbar;@OverrideprotectedvoidonCrea

解决ERROR: Command errored out with exit status 128: git clone -q https://github.com/Z-Zheng/SimpleCV.

在安装git+github 网页时出现如下错误:ERROR:Commanderroredoutwithexitstatus128:gitclone-qhttps://github.com/Z-Zheng/SimpleCV.git'C:\Users\LPR\AppData\Local\Temp\pip-req-build-2f5vq7ho'Checkthelogsforfullcommandoutput.解决办法:将 https://github.com/Z-Zheng/SimpleCV.git改为http://github.com/Z-Zheng/SimpleCV.git即将https改为ht

Material UI 自定义 (TypeScript)

-组件定制我在这个项目中使用了多种自定义MaterialUI组件的方法:使用内联属性和样式:import{Typography}from"@mui/material";{textDecoration:"line-through"}}>TEXT使用提供对主题和断点的访问的sx属性以及一些简写属性,例如and而不是and : p``m``padding``marginimport{Typography,SxProps,Theme}from"@mui/material";constMyStyles:SxProps=(theme:Theme)=>({mt:7,fontSize:{xs:theme.ty