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. 设置TextView文字居中
  2. 安卓第三天---ViewPager控件实现滑动切换图片
  3. Android笔记-3
  4. 【Android(安卓)开发】:Android五种布局的使用方法
  5. android背景选择器selector用法汇总
  6. Animator记录一次属性动画实现的逐渐出现和逐渐消失的动画
  7. Android自动完成文本框
  8. Android中ProgressBar的使用
  9. Android(安卓)layout xml总结

随机推荐

  1. android用户界面-组件Widget-地图视图Map
  2. 编译android的linux内核
  3. Android开发——Android搜索框架(二)
  4. Android(安卓)Vibrator使用
  5. android 创建桌面快捷方式 、插件
  6. Ubuntu下查找.android/avd
  7. [android]编译时出现/usr/bin/ld: skippi
  8. android图表ichartjs
  9. Android(安卓)Activity的启动
  10. Android调用天气预报的WebService简单例