
ApiDemo学习
hqdoremi
这个作者很懒,什么都没留下…
展开
-
带链接String
1、text1: This is some text. In this text are some things that are actionable. For instance, you can click on http://www.google.com and it will launch the web browser. You can clic转载 2012-12-10 16:58:23 · 478 阅读 · 0 评论 -
自定义控件
1、在values目录下新建attrs.xml文件,在这之中定义属性。 2、使用时xml中添加域说明 xmlns:app="http://schemas.android.com/apk/res/com.example.android.apis" 包名<LinearLayout xmlns:a转载 2012-12-13 15:46:13 · 506 阅读 · 0 评论 -
LayoutAnimationController
1. LayoutAnimationController用于为一个Layout里面的控件或者是Viewgroup的控件设置动画效果。。2.每一个控件都会有相同的动画效果3.这些动画效果在不同的时间现实出来4.LayoutAnimationController不仅可以在Layout里面实现也可以在代码中实现。。怎么样在xml中使用LayoutAnimati转载 2012-12-14 11:03:02 · 702 阅读 · 0 评论 -
BaseLine
中文翻译是基准线的意思,看似简单又有些不好理解,其实这个baseline相当于笔记本里写文字时候的底下的那条线,在RelativeLayout中baseline举例:比如,加入两个相邻的TextView,给第二个TextView一个大一点的padding(比如20dp),如果加了layout_alignBaseline到第二个TextView中的话,TextView中的文字"world"会转载 2012-12-14 11:13:29 · 1097 阅读 · 1 评论 -
高级绘画
Canvas 提供了绘图方法,可以向底层的位图绘制基本图形。 Paint 也称为"刷子",Paint可以指定如何将基本图形绘制到位图上。 Bitmap 绘图的表面。 Android绘图API支持透明度、渐变填充、圆边矩形和抗锯齿。遗憾的是,由于资源限制,它还不支持矢量图形,它使用的是传统光栅样式的重新绘图。 这种光栅方法的转载 2012-12-12 17:54:45 · 2060 阅读 · 0 评论 -
Shape
shape> 实心 --> solid android:color="#ff9d77"/> 渐变 --> gradient android:startColor="#ff8c00" android:endColor="#FFFFFF" android:angle="270" />转载 2012-12-12 11:43:29 · 418 阅读 · 0 评论 -
ShapeDrawable
package com.example.android.apis.graphics;import com.example.android.apis.R;import android.app.Activity;import android.content.Context;import android.graphics.*;import android.graphics.drawable转载 2012-12-12 11:57:36 · 682 阅读 · 0 评论 -
String.xml
App/Activity/Hello World Hello, World!加粗字体 斜体字体 给字体加下划线 \n 换行 \u0020表示空格 \u2026表示省略号 使用<b>和<b>来打印出 这样的文字;“<”表示“的意思; 使转载 2012-12-10 15:54:59 · 393 阅读 · 0 评论