解决方案 »
- 如何制作安卓软件 用什么语言 和什么工具
- 闹钟标签重新设置后,闹铃时确没有更新,请高手帮忙。
- Android的openGL编程中的事件监听问题。
- 客户端意外关闭情况
- android 图片浏览器 开发
- froyo android 2.2 for samsung A8 哪里能下载
- Andriod ViewPgae Fragment UDP监听的问题
- android 如何实现连接蓝牙打印机来实现打印功能
- 求高手!!同一个Activity中上下两层SurfaceView,如何在上面一层画画?
- 新手求教Android Studio的问题
- Android 上传照片 报错: java.lang.OutOfMemoryError
- android 4.0 的系统 options menu 与 android 2.3 不一样
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="小刷子刷出大文章"
android:gravity="center"
android:textColor="@android:color/black"
android:background="@drawable/bg" />bg.xml 在drawable文件夹下<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid
android:color="#a8ffffff" /> <size
android:width="220dp"
android:height="80dp" />
<stroke
android:width="1dp"
android:color="#f80100" />
</shape>
android 向这种效果怎么布局,关键是下面小刷子出大文章怎么搞的,请高手指点
也就是描边和填充颜色不一样,并且填充颜色具有一定的透明度,还要在填充的透明层上写上文字
可能会用到paint.setStyle(Paint.Style.FILL_AND_STROKE);
但是不管怎么设置就是不行啊,请高人指点下,麻烦贴出代码,我将不胜感激