草庐IT

material-calendarview

全部标签

Material 设计中的Android EditText View float 提示

API21是否提供使用以下功能的方法:http://www.google.com/design/spec/components/text-fields.html#text-fields-floating-labels我正在尝试floatEditText提示。谢谢! 最佳答案 float提示EditText:在gradle中添加以下依赖项:compile'com.android.support:design:22.2.0'在布局中: 关于Material设计中的AndroidEditTex

android - 创建一个看起来像 Material 设计指南的 SearchView

我目前正在学习如何将我的应用程序转换为MaterialDesign,我现在有点卡住了。我已经添加了工具栏,并让我的抽屉导航覆盖了所有内容。我现在正在尝试创建一个看起来像materialguidelines中的可扩展搜索。:这就是我现在所拥有的,我无法弄清楚如何使它像上面那样:这是我的菜单xml:这行得通,我得到一个扩展到SearchView的菜单项,我可以很好地过滤我的列表。不过它看起来一点也不像第一张照片。我尝试在R.id.action_search上使用MenuItemCompat.setOnActionExpandListener()所以我可以将主页图标更改为后退箭头,但这似乎不

Android Material 和 appcompat Manifest 合并失败

我有下一个年级dependencies{implementationfileTree(dir:'libs',include:['*.jar'])implementation'com.android.support:appcompat-v7:28.0.0-rc01'implementation'com.android.support.constraint:constraint-layout:1.1.2'testImplementation'junit:junit:4.12'androidTestImplementation'com.android.support.test:runner:

android - 使用 Material Design 和 AppCompat 在 Android 中为按钮着色

在今天发布AppCompat更新之前,我能够更改AndroidL中按钮的颜色,但不能在旧版本上更改。包含新的AppCompat更新后,我无法更改任一版本的颜色,当我尝试时,按钮就会消失。有谁知道如何更改按钮颜色?以下图片显示了我想要实现的目标:白色按钮是默认的,红色的是我想要的。这是我之前在styles.xml中更改按钮颜色的方法:insertcolorhere并动态执行:button.getBackground().setColorFilter(getResources().getColor(insertcolorhere),PorterDuff.Mode.MULTIPLY);我也确

mongodb - Angular 5/Material 2 - 选择选项后字段中的值错误

我的AngularMaterial2Autocomplete遇到问题字段。这是我的设置:hardwareCreate.component.tsmyControl:FormControl=newFormControl();availableFirmware=[];filteredFirmware:Observable;selectedFirmware=null;selectedFirmwareName='';this.availableFirmware=[];this.terminalService.getFirmware().subscribe(firmware=>{this.avai

css - 使用 materialize rails 4.2 时无法添加 collection_select

我创建了一个带有category_id迁移的类别模型(基本上是MackenzieChild在他的视频https://www.youtube.com/watch?v=814gCeOpM4o25分钟内所做的一切),我希望它显示在我的表单中。它不起作用,我的collection_select不会出现在屏幕上,但它会出现在源代码中,并且当我“删除”css-框架时会出现。我的代码:它在源代码中的显示方式:ChooseacategoryMarketingTechnologyProgrammingHealthandFitness 最佳答案 我查看

ruby-on-rails - 使用 mini_magick 指定复合 Material 的几何形状

我基本上是在尝试用mini_magick编写这个命令。gmcomposite-composeCopy-geometry+0+210note-transparent1.pngnote-rugby.pngnote-rugby-e.png这是我的代码:image=MiniMagick::Image.open("note-transparent1.png")result=image.composite(MiniMagick::Image.open("note-rugby.png")do|c|c.compose="Copy"c.geometry="+0+210"end)result.write"

java - 如何更改 Material 设计抽屉导航中汉堡图标的颜色

我正在关注这个例子http://www.androidhive.info/2015/04/android-getting-started-with-material-design/在此示例中,它显示汉堡图标为白色,我想对其进行自定义并将其设置为黑色,但我无法找到如何更改它的任何内容,谁能告诉如何自定义它?list风格truefalse@color/colorPrimary@color/colorPrimaryDark@color/colorAccent@drawable/hamburger主ActivitypublicclassMainActivityextendsAppCompatA

java - 如何更改 Material 设计抽屉导航中汉堡图标的颜色

我正在关注这个例子http://www.androidhive.info/2015/04/android-getting-started-with-material-design/在此示例中,它显示汉堡图标为白色,我想对其进行自定义并将其设置为黑色,但我无法找到如何更改它的任何内容,谁能告诉如何自定义它?list风格truefalse@color/colorPrimary@color/colorPrimaryDark@color/colorAccent@drawable/hamburger主ActivitypublicclassMainActivityextendsAppCompatA

java - 如何更改新 Material 主题中后退箭头的颜色?

我已将我的SDK更新到API21,现在备份/后退图标是一个指向左侧的黑色箭头。我希望它是灰色的。我该怎么做?例如,在Play商店中,箭头是白色的。我这样做是为了设置一些样式。我已将@drawable/abc_ic_ab_back_mtrl_am_alpha用于homeAsUpIndicator。该drawable是透明的(只有alpha),但箭头显示为黑色。我想知道我是否可以像在DrawerArrowStyle中那样设置颜色。或者,如果唯一的解决方案是创建我的@drawable/grey_arrow并将其用于homeAsUpIndicator。@style/MyActionBar@st