android警告——Buttons in button bars should be border
2021腾讯云限时秒杀,爆款1核2G云服务器298元/3年!(领取2860元代金券),
地址:https://cloud.tencent.com/act/cps/redirect?redirect=1062
2021阿里云最低价产品入口+领取代金券(老用户3折起),
入口地址:https://www.aliyun.com/minisite/goods
推荐:Buttons in button bars should be borderless; use style="android:attr/buttonBarButtonStyle" (and an
这个问题的话需要提供下面的解决方式: Buttons in button bars should be borderless 原因:两个 Buttons 放在一个布局里会被判断为按钮栏,需要添加样式取消它
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" 属性。
推荐:Buttons in button bars should be borderless;
Bug起因,要写两个并排的按钮,登录按钮和注册按钮, 因为没有背景图,美工在忙别的事,没空理。所以就出了这个问题 Buttons in button bars should be borderle
相关阅读排行
- 1Android Https相关完全解析 当OkHttp遇到Https
- 2Android APK反编译详解(附图)
- 3[置顶] Android APK反编译就这么简单 详解(附图)
- 4Android Fragment 真正的完全解析(上)
- 5Android RecyclerView 使用完全解析 体验艺术般的控件