![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微博
文章平均质量分 65
yuanfenwuyue1989
这个作者很懒,什么都没留下…
展开
-
android Animation 动画效果介绍
Android的animation由四种类型组成 XML中 alpha 渐变透明度动画效果 scale 渐变尺寸伸缩动画效果 translate 画面转换位置移动动画效果 rotate 画面转移旋转动画效果 JavaCode中 AlphaAnimation原创 2012-05-23 08:43:44 · 473 阅读 · 0 评论 -
Android 图片平铺实现方式
我们大家都看过平铺的效果,那么我们都是怎么样才能实现的那,我们其实主要用到的就是api,我们一开始new一个bitmap,就可以了,但是,大家都没有想过,我们还可以用什么方法来做这个事情那,那么我们就来说说第二种方法,那就在用到了xml,上面我们说了两个方法,但android是非常强大的,也就是说我们还有第三个方法,那就是我们自己画出来,那么我们就来看看代码吧: 1)第一种利用原创 2012-07-11 16:53:55 · 434 阅读 · 0 评论 -
android ListView美化-->几个比较特别的属性
由于这两天在做listView的东西,所以整理出来一些我个人认为比较特别的属性,通过设置这样的属性可以做出更加美观的列表 首先是stackFromBottom属性,这只该属性之后你做好的列表就会显示你列表的最下面,值为true和false android:stackFromBottom="true" 第二是transciptMode属性,需要用ListView或原创 2012-07-11 16:52:34 · 461 阅读 · 0 评论 -
Android ImageView 的scaletype属性详细介绍
android:scaleType是控制图片如何 resized/moved来匹对ImageView的size,我们可以这样啦使用 android:layout_width="fill_parent" android:layout_height="fill_parent" android:visibility="gone" android原创 2012-07-11 16:58:25 · 444 阅读 · 0 评论 -
TextView控件属性列表
在网上收集到了TextView 的属性,在开发过程中还是挺有用的。 android:autoLink 设置是否当文本为URL链接/email/电话号码/map时,文本显示为可点击的链接。可选值(none/web/email/phone/map/all) android:autoText 如果设置,将自动执行输入值的拼写纠正。此处无效果,在显示输入法并输入的时候起作用。 and原创 2012-06-28 13:42:23 · 404 阅读 · 0 评论 -
Android ListView实现通讯录的例子
现过程。 第一步:布局 list_items.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TableLa原创 2012-06-26 12:32:43 · 858 阅读 · 0 评论 -
Android访问权限大全
(一) android.permission.ACCESS_CHECKIN_PROPERTIES 允许读写访问”properties”表在checkin数据库中,改值可以修改上传( Allows read/write access to the “properties” table in the checkin database, to change values that get upl原创 2012-06-25 13:56:35 · 501 阅读 · 0 评论 -
Android selector item 属性大全(按钮按下不同效果)
必须。必须是根元素。包含一个或多个元素。 Attributes: xmlns:android String,必须。定义XML的命名空间,必须是 “http://schemas.android.com/apk/res/android”.原创 2012-06-24 16:01:37 · 9487 阅读 · 3 评论 -
Android WebView 实例
新浪微博Android客户端开发视频中OAuth认证要使用WebView作为嵌入浏览器进行OAuth认证,所以现在我也把代码贴出来一下 首先是布局文件,webview.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" a原创 2012-05-24 17:08:12 · 667 阅读 · 0 评论 -
Android 漂亮的 Dialog (弹出框)
第一步:在res/layout目录下新创建一个布局文件: authorize_dialog.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"原创 2012-05-24 16:31:59 · 3277 阅读 · 0 评论 -
Android Handler 异步消息机制
Handler基本概念: Handler主要用于异步消息的处理:当发出一个消息之后,首先进入一个消息队列,发送消息的函数即刻返回,而另外一个部分逐个的在消息队列中将消息取出,然后对消息进行出来,就是发送消息和接收消息不是同步的处理。 这种机制通常用来处理相对耗时比较长的操作。 Handler 常用方法: post(Runnable) postAtTime(R原创 2012-05-23 14:04:12 · 561 阅读 · 0 评论 -
android Animation 动画效果介绍 续
Android动画解析--JavaCode AlphaAnimation ① AlphaAnimation类对象定义 private AlphaAnimation myAnimation_Alpha; ② AlphaAnimation类对象构造 AlphaAnimation(float fromAlpha, float toAlpha) //第一个参数fromAlpha原创 2012-05-23 08:49:51 · 2807 阅读 · 1 评论 -
Android Service 服务详细讲解
下面我们具体讲解一下Service: Service概念及用途: Service 是 Android 系统中的一种组件,它和Activity 的级别差不多,但又Activity不同,它是不能与用户交互的,但可以和其他组件进行交互。它不能自己运行,只能后台运行。 如果我们退出应用时,Service进程并没有结束,它仍然在后台运行,那我们什么时候会用到Service呢?比如我们播放音乐的时候原创 2012-05-23 14:05:43 · 286 阅读 · 0 评论 -
Android AlertDialg 对话框详细介绍
Android为我们提供几种对话框,主要有:AlertDialog、ProgressDialog、DataPickerDialog、TimePickerDialog。 一般来说,系统的对话框分为两种,一种是阻塞型对话框,一种是非阻塞型对话框。那么什么是阻塞型对话框和非阻塞型对话框呢?就是说当对话框出现的时候,当前线程是否还在进行操作,不是则为前者,是则为后者。 An原创 2012-07-11 17:00:21 · 3875 阅读 · 0 评论