Borderless button
来源:互联网 发布:java中数据类型最长 编辑:程序博客网 时间:2024/04/30 04:16
读Google的文档的时候发现的这个,想起来,我之前在即时通讯项目是这样干的,直接在button的xml属性中指定下面的属性:
android:background=null;
One design that can be useful is a "borderless" button. Borderless buttons resemble basic buttons except that they have no borders or background but still change appearance during different states, such as when clicked.
To create a borderless button, apply the borderlessButtonStyle
style to the button. For example:
<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" />
获取焦点时:
0 0
- Borderless button
- Buttons in button bars should be borderless
- Buttons in button bars should be borderless
- Android 实现borderless的Button并设置分界线
- Android中Button控件Buttons in button bars should be borderless;警告信息
- Android中Button控件警告信息Buttons in button bars should be borderless
- Buttons in button bars should be borderless; use style="?android:attr/buttonBarButtonStyle" (and ?an
- Buttons in button bars should be borderless; use style="?android:attr/buttonBarButtonStyle" (and ?an
- 解决编译出现TextAppearance.Material.Widget.Button.Borderless.Colored not found的问题
- button.
- button
- button
- button
- button
- button
- Button
- button
- Button
- ListView 滑动边界的模糊效果
- 机器学习&深度学习经典资料汇总
- Android TTS使用实例
- kinetic-swift--auditor
- 简介:每周记录自己学过的新东西的初衷
- Borderless button
- 机制#004 - Environment Tree(环境树)
- ESB架构之企业实施案例
- SVN + 美工划分
- java随机加法游戏
- 【Github教程】史上最全github使用方法:github入门到精通
- Java深度历险(六)——Java注解
- gcc与g++的区别
- unity3d利用sharesdk分享内容至微信、新浪微博、qq空间等国内主流社交平台(ios篇)