摘要:
Fragments(片元)译者署名: shadowl译者链接:blueclue.cnblogs.com版本:Android 4.0 r1片元(Fragments)A Fragment represents a behavior or a portion of user interface in an Activity. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. You can think 阅读全文
posted @ 2012-08-13 16:04
lee0oo0
阅读(458)
评论(0)
推荐(0)
摘要:
Demo程序这个程序很简单。他有一个Mic符号按钮。点击之后我们触发Android的Speech To Text意图(Intent)显示一个对话框来接收语音输入。输入的语音然后会被转换成文本并显示到一个text view中。第一步:在Eclipse中创建基本的Android项目在Eclipse中创建一个Hello World Android项目。打开New > Project > Android Project,项目名填SpeechToTextDemo,选择Android运行时2.1或sdk7。我给定了包名:net.viralpatel.android.speechtotextde 阅读全文
posted @ 2012-08-13 11:40
lee0oo0
阅读(5216)
评论(1)
推荐(0)
摘要:
1. 给文字添加阴影——text-shadow属性 text-shadow:length length length color(其中,前面三个length分别指阴影离开文字的横方向、阴影离开文字的纵方向和阴影的模糊半径,color指阴影的颜色)。而且可以指定多个阴影,例 text-shadow:10px 10px #f39800 , 40px 35px #fff100 , 70px 60px #c0ff00; 2. 让文本自动换行——word-break属性 <style type="text/css"> div{ word-break:keep-all; . 阅读全文
posted @ 2012-08-13 11:24
lee0oo0
阅读(493)
评论(0)
推荐(0)
摘要:
1. 使用选择器来插入内容:例, h2:before{ content:‘COLUMN’; color:white; background-color:orange; padding:1px 5px;} 2. 指定个别元素不进行插入:例, h2.sample.before{ content:none;} --表示h2中class为sample的不插入内容-- 3. 使用选择器插入图像:例, h2:before{ content:url(... 阅读全文
posted @ 2012-08-13 11:16
lee0oo0
阅读(939)
评论(0)
推荐(0)