![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
qie7892683
这个作者很懒,什么都没留下…
展开
-
如何姿势正确地开始一个Android项目
转自:http://mp.weixin.qq.com/s?__biz=MzA4MjU5NTY0NA==&mid=400747827&idx=1&sn=bcd8f07d390576aacfdb4eb1f540b44f&scene=23&srcid=01203gMf2j4sR0JJnW6Af40Y#rd 有朋友提到希望我将知乎上的两个回答整理一下,方便大家在微信里收藏与转发。这里提到转载 2016-01-20 16:48:48 · 986 阅读 · 0 评论 -
TextView多种颜色
给TextView添加多种颜色内容,使用SpannableString /** * 给字符串添加颜色,返回SpannableString * * @param str * @param color * @return */ public static SpannableString getSpannableString(String str, int color)原创 2016-01-20 16:38:40 · 303 阅读 · 0 评论 -
Intent的属性以及intent的配置使用
Intent代表了Android应用的启动“意图”,包括启动app内部Activity和启动外部Activity。 Intent通过可以设置Action,data(Uri),component,class来启动指定的Activity; android:name="ShareActivity"> android:name="android.intent.acti原创 2016-01-21 16:37:53 · 1099 阅读 · 0 评论 -
高效加载大图(官方例子)
生成一个Bitmap,主要有两种形式 Bitmap的静态方法和BitmapFactory的静态方法(decode); Bitmap的enum有两个:Bitmap.CompressFormat定义图片格式PNG,JPEG,WEBP;Bitmap.Config定义图片属性,ARGB-8888(4个字节),GRB-565(2个字节),ARGB-4444(弃用建议使用8888),ALPHA-8;原创 2016-01-31 19:54:14 · 729 阅读 · 0 评论 -
Android之Fragment
1、Fragment的生命周期 2、在xml文件中使用fragment "http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" andro原创 2016-03-08 15:45:21 · 237 阅读 · 0 评论