java - 按钮效果实现方法?
问题描述

请问各位那个已签到的按钮是怎么做出来的(背景透明但是外围有一圈不透明的环绕线)。
问题解答
回答1:已经解决了可以通过设置背景shape图片来解决 shape代码如下<?xml version='1.0' encoding='utf-8'?><shape xmlns:android='http://schemas.android.com/apk/res/android'
android:shape='rectangle'><corners
android:topLeftRadius='100dp'android:topRightRadius='100dp'android:bottomRightRadius='100dp'android:bottomLeftRadius='100dp'>
</corners><stroke
android:width='3dp'android:color='#bebebe'>
</stroke></shape>
回答2:用 shape 画
<?xml version='1.0' encoding='utf-8'?><shape android:shape='rectangle' xmlns:android='http://schemas.android.com/apk/res/android'> <solidandroid:color='@android:color/transparent'/> <strokeandroid:color='@android:color/darker_gray'android: /> <cornersandroid:radius='20dp'/></shape>
相关文章:
1. node.js - yo webapp构建项目时报错了,如图2. MYSQL代码执行错误:FUNCTION any_value does not exist3. python - Win7调用flup报错’module’ object has no attribute ’fromfd’4. javascript - 在vuejs中如何根据变量去引用不同的css样式呢5. javascript - 求赐教:网易邮箱Web端模拟登录看信的加密参数_ntes_nnid、_ntes_nuid6. css - 图片的宽度发生变化而高度却没有相应变?7. python打包代码上传PYPI出现错误500,虚心求教8. 请问老师的PS编辑器,安装了哪些插件?感觉自己显示的风格太原始了!谢谢!9. mysql怎么表示两个字段的差10. 网页爬虫 - 关于python3.x 编写爬虫异常问题请各位大神帮忙!

网公网安备