安卓在代码中设置Textview的shape,怎么设置?,textviewshape
安卓在代码中设置Textview的shape,怎么设置?我知道在res目录的设置方法,但是不知道在代码里面怎么设置Textview的shape
解决方案
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<corners android:radius="3dp"/>
<stroke android:width="0.7dp"
android:color="#000000" />
<!--下面为背景填充色,需要跟上面的进行区别 -->
<solid android:color="#ffffff"/>
</shape>
好吧,我看错了,代码里面注册从没用过,给你找找 http://blog.csdn.net/xingshen58/article/details/13630585
http://blog.csdn.net/mennoa/article/details/42620275
你看看,这类文件百度很多
用户评论