zoukankan      html  css  js  c++  java
  • a few changes of Android 5.0

    1.Service Intent must be explicit

    Intent serviceIntent = new Intent(context,MyService.class);
    context.startService(serviceIntent);
    Note:Implicit intents with startService are not safe

    2.Button Text is always Uppercase

    <style name="TextAppearance.Material.Button">
    <item name="textSize">@dimen/text_size_button_material</item>
    <item name="fontFamily">@string/font_family_button_material</item>
    <item name="textAllCaps">true</item>
    <item name="textColor">?attr/textColorPrimary</item>
    </style>

    Using <item name="android:textAllCaps">false</item>

    3.Material Design Action Bar 默认是有shadow的,是因为新的elevation API,

    action bar style 的xml中,定义elevation 属性为0

    or getActionBar().setElevation(0)

  • 相关阅读:
    出现Unexpected token, expected ","报错原因
    select属性的作用
    程序员无广告版百度
    VUE核心组件
    ajax的作用
    SSH整合
    Unity安装教程
    bean的生命周期
    BeanFactory
    打印机
  • 原文地址:https://www.cnblogs.com/ZacharyHodgeZou/p/4604434.html
Copyright © 2011-2022 走看看