为了账号安全,请及时绑定邮箱和手机立即绑定

Android Material Design按钮样式

Android Material Design按钮样式

MMMHUHU 2019-08-06 12:39:29
Android Material Design按钮样式我对材料设计的按钮样式感到困惑。我想得到彩色凸起的按钮,如附带的链接,就像在使用部分下看到的“强制停止”和“卸载”按钮一样。是否有可用的样式或我需要定义它们?http://www.google.com/design/spec/components/buttons.html#buttons-usage我找不到默认的按钮样式。例: <Button style="@style/PrimaryButton"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:text="Calculate"     android:id="@+id/button3"     android:layout_below="@+id/editText5"     android:layout_alignEnd="@+id/editText5"     android:enabled="true" />如果我尝试通过添加更改按钮的背景颜色    android:background="@color/primary"所有的风格都消失了,比如触摸动画,阴影,圆角等。
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 1047 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信