Buttons in button bars should be borderless;
Bug起因,要写两个并排的按钮,登录按钮和注册按钮,因为没有背景图,美工在忙别的事,没空理。所以就出了这个问题

Buttons in button bars should be borderless; use style="?android:attr/buttonBarButtonStyle" (and ?android:attr/buttonBarStyle on the parent)


Issue: Ensures that buttons in button bars are borderless

Id: ButtonStyle


Button bars typically use a borderless style for the buttons. Set the style="?android:attr/buttonBarButtonStyle" attribute on each of the buttons, and set style="?android:attr/buttonBarStyle" on the parent layout


[http://developer.android.com/design/building-blocks/buttons.html]


解决办法:

Set the style="?android:attr/buttonBarButtonStyle" attribute on each of the buttons, and set style="?android:attr/buttonBarStyle" on the parent layout.
给每个Button设置style="?android:attr/buttonBarButtonStyle" 属性。同时,给父布局设置style="?android:attr/buttonBarStyle"属性。


文档看的好,大家都好。

更多相关文章

  1. Animator记录一次属性动画实现的逐渐出现和逐渐消失的动画
  2. android textview属性
  3. EditText的各种属性
  4. android ImageView src属性不支持.9图
  5. Android 相关属性
  6. listview常用属性记录
  7. AndroidManifest.xml里面的activity的几个属性简介
  8. TextView属性android:ellipsize实现跑马灯效果
  9. android:imeOptions属性

随机推荐

  1. Shape Drawable的学习
  2. Android合并两个APP的具体做法(掌握)
  3. Android中包含多个Activity的应用退出按
  4. Android上开源的酷炫的交互动画和视觉效
  5. Zxing 竖屏切换 android
  6. Android软件安装工具-APK安装器
  7. android基于opencv的车牌识别,高识别率
  8. Android官方架构组件介绍之LifeCycle
  9. Android串口(SerialPort)开发常遇神坑
  10. android TextView属性的详细介绍 分享