- 浏览: 7863828 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (2425)
- 软件工程 (75)
- JAVA相关 (662)
- ajax/web相关 (351)
- 数据库相关/oracle (218)
- PHP (147)
- UNIX/LINUX/FREEBSD/solaris (118)
- 音乐探讨 (1)
- 闲话 (11)
- 网络安全等 (21)
- .NET (153)
- ROR和GOG (10)
- [网站分类]4.其他技术区 (181)
- 算法等 (7)
- [随笔分类]SOA (8)
- 收藏区 (71)
- 金融证券 (4)
- [网站分类]5.企业信息化 (3)
- c&c++学习 (1)
- 读书区 (11)
- 其它 (10)
- 收藏夹 (1)
- 设计模式 (1)
- FLEX (14)
- Android (98)
- 软件工程心理学系列 (4)
- HTML5 (6)
- C/C++ (0)
- 数据结构 (0)
- 书评 (3)
- python (17)
- NOSQL (10)
- MYSQL (85)
- java之各类测试 (18)
- nodejs (1)
- JAVA (1)
- neo4j (3)
- VUE (4)
- docker相关 (1)
最新评论
-
xiaobadi:
jacky~~~~~~~~~
推荐两个不错的mybatis GUI生成工具 -
masuweng:
(转)JAVA获得机器码的实现 -
albert0707:
有些扩展名为null
java 7中可以判断文件的contenttype了 -
albert0707:
非常感谢!!!!!!!!!
java 7中可以判断文件的contenttype了 -
zhangle:
https://zhuban.me竹板共享 - 高效便捷的文档 ...
一个不错的网络白板工具
下文演示了android中的一些字体的效果,其中留意下最后的阴影效果:
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5sp"
android:typeface="monospace"
android:text="Hello Red Monospace"
android:textSize="16sp"
android:textColor="#ff0000"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Sans Font:"
android:textSize="16sp"
android:paddingLeft="5sp"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5sp"
android:typeface="sans"
android:text="Hello Blue Sans"
android:textSize="16sp"
android:textColor="#0000ff"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Serif Font:"
android:textSize="16sp"
android:paddingLeft="5sp"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5sp"
android:paddingRight="2sp"
android:typeface="serif"
android:text="Hello Green Serif"
android:textSize="16sp"
android:textColor="#00ff00"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5sp"
android:paddingTop="15sp"
android:typeface="normal"
android:text="I'm normal font but I'm also bold and italic"
android:textSize="16sp"
android:textStyle="bold|italic"
android:textColor="#ffffff"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5sp"
android:paddingTop="15sp"
android:paddingBottom="15sp"
android:typeface="normal"
android:text="I'm normal (bold) font but I have a shadow"
android:textSize="16sp"
android:textStyle="bold"
android:shadowColor ="#0f0f0f"
android:shadowRadius="1.6"
android:shadowDx="1.5"
android:shadowDy="1.3"
android:textColor="#000000"
android:background="#ffffff"
/>
最后部分阴影效果:
android:shadowColor ="#0f0f0f"
android:shadowRadius="1.6"
android:shadowDx="1.5"
android:shadowDy="1.3"
android:textColor="#000000"
android:background="#ffffff"
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5sp"
android:typeface="monospace"
android:text="Hello Red Monospace"
android:textSize="16sp"
android:textColor="#ff0000"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Sans Font:"
android:textSize="16sp"
android:paddingLeft="5sp"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5sp"
android:typeface="sans"
android:text="Hello Blue Sans"
android:textSize="16sp"
android:textColor="#0000ff"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Serif Font:"
android:textSize="16sp"
android:paddingLeft="5sp"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5sp"
android:paddingRight="2sp"
android:typeface="serif"
android:text="Hello Green Serif"
android:textSize="16sp"
android:textColor="#00ff00"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5sp"
android:paddingTop="15sp"
android:typeface="normal"
android:text="I'm normal font but I'm also bold and italic"
android:textSize="16sp"
android:textStyle="bold|italic"
android:textColor="#ffffff"
/>
<TextView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5sp"
android:paddingTop="15sp"
android:paddingBottom="15sp"
android:typeface="normal"
android:text="I'm normal (bold) font but I have a shadow"
android:textSize="16sp"
android:textStyle="bold"
android:shadowColor ="#0f0f0f"
android:shadowRadius="1.6"
android:shadowDx="1.5"
android:shadowDy="1.3"
android:textColor="#000000"
android:background="#ffffff"
/>
最后部分阴影效果:
android:shadowColor ="#0f0f0f"
android:shadowRadius="1.6"
android:shadowDx="1.5"
android:shadowDy="1.3"
android:textColor="#000000"
android:background="#ffffff"
发表评论
-
『Google发布移动Web性能工具PCAP Web Performance Analyzer』
2015-01-06 14:17 2184http://t.cn/RZcCwZS 最近,Google的 ... -
(收藏)在WebView中如何让JS与Java安全地互相调用
2014-11-11 09:59 834在WebView中如何让JS与Java安全地互相调用 http ... -
android中的两端对齐
2013-02-08 18:58 3104在android中的webview中,可以对文本内容进行对 ... -
jQuery Mobile十大常用技巧
2012-10-12 07:23 4227原文发表在: http://mobile.51cto.com/ ... -
Android中使用log4j
2012-10-09 20:22 18280如果要直接在android工程中使用log4j,是有点问题 ... -
收集android的三个小tip
2012-08-25 11:24 2120收集android的三个小tip 1)Android 开发中 ... -
andorid中的html.fromhtml方法
2012-08-19 21:24 8801在android中,有一个容易遗忘的Html.fromht ... -
一个不错的sencha touch MVC教程分享
2012-08-18 10:06 2840http://blog.csdn.net/fyq891014/ ... -
jquery mobile中的按钮大集合
2012-08-14 22:17 3914本文小结了jquery mobile ... -
Andrid中的plurals
2012-08-10 19:29 1719在Android中的字符串资源中,今天留意到一个很特别的东 ... -
Android中listview中的button
2012-08-08 12:56 1950在androd中的listview中,假如每一项是个buu ... -
如何有更好的Android应用创意--从一款新Android应用说起
2012-07-20 14:23 5678现在这个年头,Android ... -
android中判断网络是否连接
2012-07-12 23:19 2903在android中,如何监测网络的状态呢,这个有的时候也是十分 ... -
android中设置手机的语言系
2012-05-19 15:55 2728adb shell 进入Android的Shell,输入以下命 ... -
android 按钮设计中state_selected属性
2012-05-15 22:33 8437在android中,如果搞几个tab,然后想做到当移动到某个T ... -
android中从图库中选取图片
2012-05-11 21:03 10259在android中,如何从图库gallary中挑选图片呢, ... -
android 模拟器中启用相机API支持
2012-05-10 22:37 3160android 模拟器中启用相机支持,否则如果应用中用到相关的 ... -
(转)向android模拟器打电话发短信的简单方法
2012-04-13 13:00 1958http://blog.csdn.net/pku_androi ... -
android 中让activity全屏幕显示
2012-04-12 09:06 1660android 中让activity全屏幕显示,这是一个小ti ... -
在Android中加入GOOGLE统计系统
2012-03-31 20:43 3429Google的统计分析系统,不仅在传统WEB统计中应用很广 ...
相关推荐
1.6本章小结 5 第2章 基础知识与开发技术 6 2.1 Android技术简介 6 2.1.1 Android基本知识 6 2.1.2 Android系统特点 8 2.1.3 Android手机平台的优势 8 2.1.4 Android 手机游戏的市场价值 9 2.2 Java技术简介 11 2.3...
主要介绍了Android TextView字体颜色设置方法,结合实例形式总结分析了Android开发中TextView设置字体颜色的常用技巧,需要的朋友可以参考下
本文实例讲述了Android编程实现TextView字体颜色设置的方法。分享给大家供大家参考,具体如下: 对于setTextView(int a)这里的a是传进去颜色的值。例如,红色0xff0000是指0xff0000如何直接传入R.color.red是没有办法...
第1章 androi简介 1.1 初识android 1.1.1 历史背景 1.1.2 android特性 1.1.3 android组件结构 1.1.4 android应用程序框架 1.1.5 android的竞争优势 1.1.6 android模拟器 1.2 搭建android开发环境 ...8.13 小结
1.10 小结 第2章 从android sdk开始 2.1 搭建开发环境 2.1.1 安装jdk 2.1.2 安装android sdk 2.1.3 安装eclipse 2.1.4 安装adt eclipse插件 2.1.5 eclipse快速浏览 2.1.6 一些实用的eclipse快捷键 ...
1.10 小结 16 第2章 开始入手 17 2.1 Android开发 18 2.1.1 开始前的准备工作 18 2.1.2 创建第一个Android活动 22 2.1.3 Android应用程序的类型 27 2.2 面向移动设备的开发 28 2.2.1 关于硬件设计的考虑事项 ...
1.10 小结 18 第2章 从Android SDK开始 19 2.1 搭建开发环境 19 2.1.1 安装JDK 20 2.1.2 安装Android SDK 20 2.1.3 安装Eclipse 21 2.1.4 安装ADT Eclipse插件 22 2.1.5 Eclipse快速浏览 23 2.1.6...
1.6 本章小结………………………………………...……………………………………………....5 第2章 基础知识与开发技术………………………………………………………………….…...6 2.1 Android技术简介………………...
可以使用setTypeface(Typeface)方法来设置文本框内文本的字体,而Android的 Typeface又使用TTF字体文件来设置字体 所以,我们可以在程序中放入TTF字体文件,在程序中使用Typeface来设置字体:第一步,在assets目录下...
1.3 小结 4 第2章 React Native 工作原理 5 2.1 React Native 是如何工作的 5 2.2 渲染周期 7 2.3 在React Native 中创建组件 2.4 宿主平台接口 11 2.5 小结 12 第3章 构建你的第一个应用 13 3.1 搭建环境 ...
2.4 本章小结 15 第三章 跨域交互缓存处理设计 17 3.1 跨域交互缓存处理需求 17 3.1.1 缓存技术WebStorage 17 3.1.2 跨域交互缓存处理需求 17 3.1.3 页面回退管理需求 17 3.2 缓存处理机制 18 3.2.1 跨域缓存处理 18...
作者介绍刘剑卓 有点文艺的IT男,会做美食的运动男,喜欢电影的80后。拥有八年的游 戏开发经验,精通移动平台以及PC平台游戏的开发,在过往的职业生涯已有 多款上线畅销游戏。...15.6 本章小结 403