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

文档看的好,大家都好。

更多相关文章

  1. Android(安卓)ImageButton Example 图片按钮
  2. android 键盘 send按钮
  3. 【Android(安卓)Developers Training】 7. 添加Action Buttons
  4. Android——Fragment A点击一个按钮跳转到 FragmentB
  5. android 在xml中指定按钮点击事件
  6. Android(安卓)Jetpack-Navigation改造使用
  7. 【Android(安卓)studio】为按钮添加简单事件
  8. 使android dialog点击按钮dialog不消失的方法
  9. android之通过SurfaceView以及SurfaceHolder进行视频播放

随机推荐

  1. Android SQLite框架greenDAO的使用
  2. Android 开发IDE之(Eclipse 和 Android St
  3. Android启动之bluetooth
  4. 初学者关于学习android中关于实现用户输
  5. Android的相关文件类型
  6. Android语音识别方法
  7. 《疯狂Android讲义》笔记整理
  8. android bluetooth开发基础-1
  9. Android selector状态选择器的使用详解
  10. Android其它新控件