Buttons in button bars should be borderless;
16lz
2021-01-26
Bug起因,要写两个并排的按钮,登录按钮和注册按钮,因为没有背景图,美工在忙别的事,没空理。所以就出了这个问题
Buttons in button bars should be borderless; use style="?android:attr/buttonBarButtonStyle" (and ?android:attr/buttonBarStyle on the parent)
解决办法:
<Button
android:id="@+id/button_send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send"
android:onClick="sendMessage"
style="?android:attr/borderlessButtonStyle" />
http://developer.android.com/guide/topics/ui/controls/button.html
文档看的好,大家都好。
Buttons in button bars should be borderless; use style="?android:attr/buttonBarButtonStyle" (and ?android:attr/buttonBarStyle on the parent)
解决办法:
<Button
android:id="@+id/button_send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send"
android:onClick="sendMessage"
style="?android:attr/borderlessButtonStyle" />
http://developer.android.com/guide/topics/ui/controls/button.html
文档看的好,大家都好。
更多相关文章
- Android(安卓)ImageButton Example 图片按钮
- android 键盘 send按钮
- 【Android(安卓)Developers Training】 7. 添加Action Buttons
- Android——Fragment A点击一个按钮跳转到 FragmentB
- android 在xml中指定按钮点击事件
- Android(安卓)Jetpack-Navigation改造使用
- 【Android(安卓)studio】为按钮添加简单事件
- 使android dialog点击按钮dialog不消失的方法
- android之通过SurfaceView以及SurfaceHolder进行视频播放