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" 屬性。文檔


文檔看的好,你們都好。
登錄

相關文章
相關標籤/搜索