我正在使用AppCompat编写一个材质设计风格的应用程序.由于AppCompat不会影响对话框,因此我将对对话框进行外观设置:
styles.xml:
<style name="AppTheme.Base" parent="Theme.AppCompat">
<!-- Set AppCompat’s color theming attrs -->
<item name="colorPrimary">@color/green</item>
<item name="colorPrimaryDark">@color/green_darker</item>
<item name="colorAccent">@color/accent</item>
<item name="android:alertDialogTheme">@style/alertDialog</item>
<item name="android:dialogTheme">@style/alertDialog</item>
</style>
<style name="alertDialog" parent="Theme.AppCompat.Dialog">
<item name="colorPrimary">@color/green</item>
<item name="colorPrimaryDark">@color/green_darker</item>
<item name="colorAccent">@color/accent</item>
</style>
Run Code Online (Sandbox Code Playgroud)
我在android api> = 21时得到了我想要的东西,但在其他设备上我最终在对话框周围有一个"框".
有没有办法摆脱对话框周围的"盒子",甚至在api <21上应用颜色和材质主题,最好没有任何额外的依赖?
App <Api <21:

API> = 21上的应用:

android android-appcompat android-support-library material-design
在对类似问题的回答中,这已经超过一年了,我读到了在Dart(和聚合物 - 飞镖)中使用数据绑定禁用按钮的简单方法.
我当前的代码如下所示:
HTML:
...
<button id="btnPointDown" on-click="{{decrement}}" disabled="{{points == 0}}">\/</button>
...
Run Code Online (Sandbox Code Playgroud)
.dart:
...
@published int points = 0;
void increment() {
points++;
}
void decrement() {
points--;
}
...
Run Code Online (Sandbox Code Playgroud)
然而Dart似乎不再对残疾元素"聪明"了.
如何使用最新的Dart和Polymer来禁用使用数据绑定的按钮(或者如果不可能以编程方式)?