首页
话题
动态
专家
文章
作者
公告
更多
积分规则
登录 或 注册
首页
话题
动态
专家
文章
作者
公告
积分规则
发表新帖
发表新帖
Defining Drawable Shape with in JAVA code
后端
未结
关注
1
1516
忘掉有多难
2020-12-20 03:06
Hi Can I define this shape without using xml code
<
相关标签:
1条回答
半阙折子戏
2020-12-20 03:56
Yes
use a ShapeDrawable to draw your rectangle with the padding you require
using a Paint with the appropriate color and stroke width
using a Linear gradient and adding this to the Paint as a shader
0
讨论(0)
发布评论:
提交评论
加载中...
验证码
看不清?
提交回复
热议问题