Android(安卓)5.0以上版本去掉Button自带阴影效果的方法
16lz
2021-01-24
关键代码:
style=”?android:attr/borderlessButtonStyle”
参考文章:
http://stackoverflow.com/questions/28756035/how-to-remove-button-shadow-android
具体配置:
<Buttonandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:text="@string/button_send"android:onClick="sendMessage"style="?android:attr/borderlessButtonStyle" />
设置该属性就可以去掉自带的阴影。
该属性在API 11及以上可用。
更多相关文章
- android animator
- Android的资源获取的相关方法
- (android)关于ListFragment使用
- Flutter底部导航栏BottomNavigationBar
- 让View只显示下边框
- android:快速搜索手机中文件
- android 在java代码中动态设置控件的位置和设置片大小
- RelativeLayout实现百分比布局
- Android(安卓)DSL简介