android警告——Buttons in button bars should be border

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

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


Issue: Ensures that buttons in button bars are borderlessless

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 layoutui


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


解决办法:htm

 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" 属性。文档


文档看的好,你们都好。
登录

相关文章
相关标签/搜索